[PD] numbers and strings

ClaudiusMaximus gloriousclaudiusmaximus at yahoo.co.uk
Thu Jun 2 23:00:03 CEST 2005


Paris Treantafeles wrote:
> hi list,
> 
> can someone please suggest the objects to look at to do the following.....
> 
> 1. say you have 2 knobs with midi data coming in via ctlin 1 and ctlin 2.
> 
> 2. say ctlin 1 has value 55 and ctlin 2 has value 12
> 
> 3. now you want to combine the two numbers in some type of string
> operation (not add them), to produce 55.12
> but in end you want this still to be a float and not a string so you can
> use it to drive an oscillator.


Try  [expr $f1 + ( $f2 / 100 )], which will work for ctlin 2 values less
than 100.




More information about the Pd-list mailing list