This seems like a stupid question but how can I use the value of a say a slider to initiate a bang ??
For instance when a value reaches 50 send a bang and when it is below -50 send a different bang.
Any ideas ??
Controlling bangs ???
This seems like a stupid question but how can I use the value of a say a slider to initiate a bang ??
For instance when a value reaches 50 send a bang and when it is below -50 send a different bang.
Any ideas ??
[moses], [spigot], [bang]
Try this (sorry, can't seem to attach it, copy and paste into a text file "threshold-bangs-example.pd"):
----8<----
#N canvas 0 0 450 300 10;
#X obj 93 54 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 5500 1;
#X obj 90 93 moses 32;
#X obj 146 93 moses 96;
#X obj 90 161 spigot 1;
#X msg 135 141 0;
#X obj 191 158 spigot 1;
#X msg 236 138 0;
#X msg 163 141 1;
#X msg 203 139 1;
#X obj 90 201 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 191 202 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 90 182 bang;
#X obj 191 182 bang;
#X connect 0 0 1 0;
#X connect 1 0 3 0;
#X connect 1 0 8 0;
#X connect 1 1 2 0;
#X connect 2 0 7 0;
#X connect 2 0 8 0;
#X connect 2 1 5 0;
#X connect 2 1 7 0;
#X connect 3 0 4 0;
#X connect 3 0 11 0;
#X connect 4 0 3 1;
#X connect 5 0 6 0;
#X connect 5 0 12 0;
#X connect 6 0 5 1;
#X connect 7 0 3 1;
#X connect 8 0 5 1;
#X connect 11 0 9 0;
#X connect 12 0 10 0;
----8<----
Woa that looks like a scary list of something... How would I initiate that I'm on OSX 10.5.6.
Meanwhile I think I got it to work using spigot
[output val]
|
[50.06]
|
[expr $f1;
if ($f1 < 50, $f1 /10, 0);
if ($f1 > 50, $f1 /10, 0);]
| | |
[50.06] [0.0] [0.0]
| | | |
[spigot] [spigot 1]
seems to work ok.
That "scary list of something" is a pd patch, you just copy and paste into a text file and name it "threshold-bangs-example.pd" like Master ClaudiusMaximus said.
The patch is similar to what you have done but uses [moses] instead of [expr].
Ahh yeaa. Cheers for the help.
Oops! Looks like something went wrong!