I'm looking for a way to send realtime information from a single vlsider to one of two different number boxes depending on the state of a 2-way vradio. I've tried [pack]ing the two values and then feeding them to [route 0 1] but this waits for the bang from the next radio change in order to send the info through. I then tried adding a bang to outlet of vslider feeding back into pack... and this almost works except... when i change the radio it feeds the current vslider value to the new [route] outlet obviously depicted by vradio... so still not quite what i want.
This might sound confusing so i've attached both patches (with and without extra bang) to illustrate the problem.
Any help would be grately appreciated.
thanks
-
Realtime [route]
-
Actually.... I've managed to do it with [moses 1] and by adding the vradio value to the slider value so that when the radio is at 0 the slider range is 0 - 0.99 and when the radio is set to 1 the slider range is 1 - 1.99. Kinda like mapping it. And then subtracting the added value again afterwards.
like this...
singleSliderMoses.pd
If anyone has any other ways around this I'd be interested in having a look though. Thanks -
@liamorourke Maybe like this?
The [t b f] with [float] box trick is an indispensable bit of programming vocabulary, useful all over the place in Pd.
hjh
-
Here's another way:
-
@liamorourke "@ingox" style.
Set init for the radio button (properties) so that it works immediately when the patch is opened.
-
There is [gate] from cyclone for this purpose:
-
thanks guys.
some good alternatives there
gonna have a play later and decide which suites my patch the best