Troubleshooting

Button to send specific number to program-change fader?

Started by anders_bach on .

Sign in or create an account to join the conversation.

9 posts

Topic starter
Hi,

Is it possible to make a "button"-object in "pad"-mode send a specific number to a "fader"-object sending program change-messages?
For example: pressing one button makes the fader in the interface go to 98, another button makes the fader in the interface go to 56 and so on.

Is this possible?

I really hope you can help!
Thanks a lot.
Best,
Anders Bach, Denmark
All obejcts variables have a "native" range of 0 to 1. This means you can easily for example make a fader go to its "halfway" position by adding the following script in your pad-button object

on expression x, rising (up arrow)
Fader.x=0.5;
So, the best way to go about this is to set up a monitor object so that it "sees" the fader's x values

In the monitor object define

value=Fader.x

Now move the fader to the positions you would like the pad-buttons to set it to....Observe the monitor's value and copy those values in the above script (the first one for the pads). of course you can then go ahead and add a lot of pad-buttons and add the prefered value for the script above in each one of them.

here is an example of the logic:
pads-set-fader.jzml
Softcore wrote:All obejcts variables have a "native" range of 0 to 1. This means you can easily for example make a fader go to its "halfway" position by adding the following script in your pad-button object

on expression x, rising (up arrow)
Fader.x=0.5;
So, the best way to go about this is to set up a monitor object so that it "sees" the fader's x values

In the monitor object define

value=Fader.x

Now move the fader to the positions you would like the pad-buttons to set it to....Observe the monitor's value and copy those values in the above script (the first one for the pads). of course you can then go ahead and add a lot of pad-buttons and add the prefered value for the script above in each one of them.
Thanks so much for the reply.
This is my first time scripting in Lemur, so I hope you'll be patient with me. :)

I can't seem to figure out where to write the fader's values? I've created a new pad and made an "act" script like your's, written "On Expression" "x" and with a rising up arrow - but where to write the value?

I hope you can help me out with this!
Thanks.
Best,
Anders