Need Help, about One Button Multiple task

primaoka

2015-11-17 13:31:40

hi all,
im a noob with this BMT trying to get some advanced programming with this software, maybe someone can help me
how i would to making one button of my touchosc to control 4 effects on resolume, lets say if i have 4 effects with piano trigger style called a, b, c and d, if i press button once it would turn on effect A, if i press button again it would turn on effect B, press again to C, and again to D..

any help would be appreciated.
thanks..

DvlsAdvct

2015-11-18 03:07:29

Hi primaoka

To do this you need to utilize global variables. Every time you press the same button it will increment a global variable up once, and each time the global variable changes the output changes as well.

Code: Select all

Translator 1: 4 Buttons
Incoming: MIDI Message
Note On
Channel: 0 - Channel 1
Note [i]whatever your note message is[/i]
Velocity: 127
Rules
g0=g0+1
if g0>4 then g0=1
if g0==1 then pp=0x[i]insert hex value for the first note you want to send[/i]
if g0==2 then pp=0x[i]hex value for the second note[/i]
if g0==3 then pp=0x[i]hex value for third note[/i]
if g0==4 then pp=0x[i]hex value for fourth note[/i]
Outgoing: MIDI Message
Note On
Channel: 0 - Channel 1
Note pp
Velocity: 127
I just don't know what the notes are your sending out, so you'll need to insert them manually.

Does that make sense?
Jared

primaoka

2015-11-18 13:44:18

hi jared, many thanks for your help.. its work for me !!