[PD] only allow to pass 1 each 10

Andy Farnell padawan12 at obiwannabe.co.uk
Mon Oct 31 15:28:39 CET 2011


On Mon, 31 Oct 2011 07:10:32 -0700
ronni montoya <ronni.montoya at gmail.com> wrote:

> HI  I have an abstraction generating numbers permanently , i have the
> output connected to a "Number",  i would like to only let pass one
> value each 10 times it changes.


Is it incrementing 0,1,2,3,4,5,6,7,8,9.... ?

If so try 

[div 10]
|
[change]

Or is it an unordered sequence of numbers?

Then you need a counter modulo 10 to bang
the value currently held in a float box.


|
[t    b     f]
|           |
[f]X[+ 1]   |
|           |
[mod 10]    |
|           |
[sel 0]     |
|           |
[ f          ]
|



-- 
Andy Farnell <padawan12 at obiwannabe.co.uk>



More information about the Pd-list mailing list