On 01/31/2012 06:33 PM, Lorenzo Sutton wrote:
metronome
|
|
[
expr $f1;
if ($f1 == 1, 1, 0);
if ($f1 == 5, 2, 0);
if ($f1 == 9, 3, 0);
if ($f1 == 13, 4, 0);
if ($f1 == 17, 5, 0);
if ($f1 == 21, 6, 0);
if ($f1 == 25, 7, 0);
if ($f1 == 29, 8, 0);
if ($f1 == 33, 9, 0);
if ($f1 == 37, 10, 0);
if ($f1 == 41, 11, 0);
if ($f1 == 45, 12, 0);
]

You could also use a [select] instead of [expr]. Something like


|
[sel 1 5 9 ... ]
| | | ... |
[1( [2( [3( ... [t b]
|
[0(



or something like:


[expr int(($f1 + 3) * 0.25)]
  |
[change 0]


cheers,
y

--
yvan.voloch...@gmail.com
http://yvanvolochine.com

_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to