hi all,
i found a bug in the expr object:
i can create a |expr 0.001| object, but i can't create a |expr 0.0001| object:
error: expr: syntax error expr 1e-04 ... couldn't create
any hints?
hello,
I noticed a stange comportement of vradio and hradio object. 2 or more cursor can be display in the same time while using "set 1" & "2" messages by exemple.
it look likes sending a fload does not remove the cursor created by a "set x" message.
see attached patch.
any fix for this?
thanks
Cyrille
#N canvas 255 209 694 254 10; #X obj 25 72 vradio 15 1 0 8 empty empty empty 0 -6 0 8 -262144 -1 -1 0; #X obj 162 20 loadbang; #X obj 162 71 vradio 15 1 0 8 empty empty empty 0 -6 0 8 -262144 -1 -1 2; #X msg 162 46 set 2; #X text 189 131 <- click; #X msg 25 46 set 2 , 3; #X text 87 44 <- click; #X msg 270 104 set 0 , 8 , set 1 , 8 , set 2 , 8 , set 3 , 8 , set 4 , 8 , set 5 , 8 , set 6 , 8 , set 7 , 8; #X obj 270 145 hradio 15 1 0 8 empty empty empty 0 -6 0 8 -262144 -1 -1 7; #X connect 1 0 3 0; #X connect 3 0 2 0; #X connect 5 0 0 0; #X connect 7 0 8 0;
Hallo, Tim Blechmann hat gesagt: // Tim Blechmann wrote:
i found a bug in the expr object:
i can create a |expr 0.001| object, but i can't create a |expr 0.0001| object:
error: expr: syntax error expr 1e-04 ... couldn't create
any hints?
I think. this is because Pd converts small numbers to the exponential notation automatically (try to create a float with [0.0001] for example) which isn't understood by expr because it takes "-" for "minus" and then doesn't cope with the "1e".
Hint: Try [expr 1/10000] instead.
Frank Barknecht _ ______footils.org__
error: expr: syntax error expr 1e-04 ... couldn't create
any hints?
I think. this is because Pd converts small numbers to the exponential notation automatically (try to create a float with [0.0001] for example) which isn't understood by expr because it takes "-" for "minus" and then doesn't cope with the "1e".
not exactly ... you can enter |expr 1e-3| without any problems, but you can't enter |expr 1e-4|...
Hint: Try [expr 1/10000] instead.
well, that works, but i don't want do add the overhead of a division (call me mad) ... i used kjetils lovely k_cext instead...
cheers...
Hallo, Tim Blechmann hat gesagt: // Tim Blechmann wrote:
I think. this is because Pd converts small numbers to the exponential notation automatically (try to create a float with [0.0001] for example) which isn't understood by expr because it takes "-" for "minus" and then doesn't cope with the "1e".
not exactly ... you can enter |expr 1e-3| without any problems, but you can't enter |expr 1e-4|...
Yeah, but that's because 1e-3 will get replaced by 0.001 so this is no surprise: this is okay with the expr-syntax.
Frank Barknecht _ ______footils.org__