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.
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
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)
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
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 valuesIn 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
Sorry to steal this topic, but I have a question regarding this.
What shall I name the fader in the script, if I want the button to control a fader inside a container, when the button is outside?
What shall I name the fader in the script, if I want the button to control a fader inside a container, when the button is outside?
Hi
You reference it as Container.Fader
MM
You reference it as Container.Fader
MM
Hmmm, it does'nt seem to work
Double check that the reference has the correct names - bare in mind it is case sensitive......
Containername.Fadername should work! Perhaps you have named your container something other than "container"?
Containername.Fadername should work! Perhaps you have named your container something other than "container"?
Hmm strange, I dont know what went wrong, but now its working.
Thx man
Thx man
Thanks so much for the reply.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)
So, the best way to go about this is to set up a monitor object so that it "sees" the fader's x valuesFader.x=0.5;
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.
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
Replace 0.5 with the desired values of course!!! In the example project I posted check out the scripts in all the pads to understand!