quick question

Home Forums General Using Ctrlr quick question

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #522
    Layzer2
    Participant
      • Topics: 21
      • Replies: 55
      • Total: 76

      anyone besides Atom know if its possible to switch tabs with a modulator? say……a UiImageButton?
      the reason i want to know is i need to switch a group of buttons on the panel to send a diff set of sysex
      messages on the toggle of one switch. the way im going to do it, is make all the tabs transparant so they
      are invisible. but the knob states switch back n forth between the 2 tabs.

      if so how is it done? thanks!

      #3676
      dasfaker
      Keymaster
        • Topics: 80
        • Replies: 793
        • Total: 873
        • ★★★

        Add a LUA method to the uiButton to change the tab:

        tab = panel:getModulatorByName("Tab_Name")

        if tab~= nil then
        if tab:getModulatorValue() ~= newValue then
        tab:setModulatorValue (newValue, false, false, true)
        end
        end

        #3677
        atom
        Keymaster
          • Topics: 159
          • Replies: 2945
          • Total: 3104
          • ★★★★★

          You can do it without LUA, just link the modulator (the controlling modulator buton/combo) to the uiTabs/Component property. It’s shown in the example panel: DEMO – Layers and Tabs.panel it should be in the latest nightly installer, if not download it from http://ctrlrv4.svn.sourceforge.net/view … v4/Panels/

          #3678
          Layzer2
          Participant
            • Topics: 21
            • Replies: 55
            • Total: 76

            awesome! much thanks guys! this is for the Access Matrix 1000 programmer panel…. allthough it would
            be so simple to just make separate knobs and buttons for those that get shifted by the env2 and env3 buttons,
            it would not be an exact replica of how the unit functions. most of the fun is that challenge involved in trying to do just that!

          Viewing 4 posts - 1 through 4 (of 4 total)
          • The forum ‘Using Ctrlr’ is closed to new topics and replies.
          There is currently 0 users and 89 guests online
          No users are currently active
          Forum Statistics
          Threads: 2,495, Posts: 17,374, Members: 77,605
          Most users ever online was 12 on January 22, 2019 3:47 pm
          Ctrlr