[PD] midi knob logic problem

Cyrille Henry cyrille.henry at la-kitchen.fr
Sat Mar 29 17:29:12 CET 2003


hello,

may this patch help...

Cyrille

Antonis Galanopoulos wrote:
> Hi all 
> i am back with a new problem. I ll try to explain it. I have a midi knob 
> (endless) which sends 0 when turned right and 127 when turned left.  I used a 
> [select 0 127] and then decrement 1 for each 0 and increment for each 127 
> using [ i ] [ - 1] and [ i ]  [ + 1 ] respectively  . This sort of works but: 
> 
> When i turn it right everithing is ok. Lets say I increment from 0 to 100 then 
> decrement from 100 to 50. that works as expected. If I increment again from 
> 50 it will go 50 51 and then jump to 100. I think thats has something to do 
> with the int objects( the store the last value arent they?) and they way I 
> connected one int with the other.  
> 
> Its quite hard to explain actually and I hope I make sense.
> I will apreciate any help.
> 
> ---
> anton 
> 
> _______________________________________________
> PD-list mailing list
> PD-list at iem.kug.ac.at
> http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
> 
> 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: inc_dec.pd
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20030329/ffb6cdbd/attachment.asc>


More information about the Pd-list mailing list