hi list,
can someone please suggest the objects to look at to do the following.....
say you have 2 knobs with midi data coming in via ctlin 1 and ctlin
say ctlin 1 has value 55 and ctlin 2 has value 12
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.
thanks! p
I read:
- now you want to combine the two numbers in
some type of string operation (not add them), to produce 55.12
this _is_ adding 55 + (12/100)
HTH
chris@lo-res.org Postmodernism is german romanticism with better http://pilot.fm/ special effects. (Jeff Keuss / via ctheory.com)
doh!
so true.
thanks!
On Thursday, June 2, 2005, at 04:56 PM, CK wrote:
I read:
- now you want to combine the two numbers in
some type of string operation (not add them), to produce 55.12
this _is_ adding 55 + (12/100)
HTH
x
chris@lo-res.org Postmodernism is german romanticism with better http://pilot.fm/ special effects. (Jeff Keuss / via ctheory.com)
if you are using midi values, then multiply the second value by .001 instead of dividing by 100 - the you get 127.127
On Thu, 2005-06-02 at 14:02, Paris Treantafeles wrote:
doh!
so true.
thanks!
On Thursday, June 2, 2005, at 04:56 PM, CK wrote:
I read:
- now you want to combine the two numbers in
some type of string operation (not add them), to produce 55.12
this _is_ adding 55 + (12/100)
HTH
x
chris@lo-res.org Postmodernism is german romanticism with better http://pilot.fm/ special effects. (Jeff Keuss / via ctheory.com)
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Paris Treantafeles wrote:
hi list,
can someone please suggest the objects to look at to do the following.....
say you have 2 knobs with midi data coming in via ctlin 1 and ctlin 2.
say ctlin 1 has value 55 and ctlin 2 has value 12
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.