Reply To: Can I copy all the faders from one tab to another without copying all the tabs?

Home Forums General Using Ctrlr Can I copy all the faders from one tab to another without copying all the tabs? Reply To: Can I copy all the faders from one tab to another without copying all the tabs?

#72998
human fly
Participant
  • Topics: 124
  • Replies: 1070
  • Total: 1194
  • ★★★★

here’s a little panel i just made, with buttons
controlling the uiTabs. there’s a bit of lua for
the button actions, but you don’t need to use lua
to send a midiMessage, as there is a property box
where you can enter the message you want to send.

*just not with uiTabs* 🙂 got that wrong. so here,
it is the button sending the program change (which
is NOT correct here, it is just a specimen message,
you’ll have to find out what the ProgCh message is,
i can’t remember right now)(but i built you a little
demo panel..)

the lua methods in this are just for controlling
what the buttons do (note the snazzy text colour
change…) – and you could have this send the
message instead if you wanted. here, it is just
selecting the componentTab number and changing
the ‘off’text featured on the button, to show
which is selected.

note that i have removed the tabs on the uiTabs
by setting tab height etc. to ‘0’, because it
uses the buttons instead – nicer look, and you
can now put your uiTabs controls wherever you
want.

the fader is a different object/’modulator’ each
time: appears the same but has a different value
range.

so the button sends the program change, and the
fader sends the value for the parameter in the
range it needs for each.

goodweather will hopefully come along and show
us how to put all those methods into one neat method
that checks all the buttons and identifies the
current one, but i haven’t worked out how to do that
yet, so separates seem to work in the meantime.

note the bit of code at the beginning, that prevents
any of these from triggering when the panel is being
loaded. this is a useful little thing for buttons and
anything you don’t want to run at start-up, or else it
will. useful for panel buttons and the like.

Attachments:
You must be logged in to view attached files.
Ctrlr