[PD] numbers convertion ??

IOhannes m zmoelnig zmoelnig at iem.at
Wed Oct 6 13:38:01 CEST 2004


Gonzague DDR wrote:
> Ok , thanks for cyclone's stuff , and excuse me for
> speaking french .
>  My question was about format a number so it "looks
> like" 1.12345e+02 instead of 112.345 .
> The atached file is the more simple i can do , but
> it's heavy , and i thought that there was a simpler
> way to bypass this "convertion".
> 
>

a) your patch is buggy. it does not take care of execution-order and 
thus produces the wrong results (independent of any float2symbol 
conversion); try using [trigger] as much as possible


b) i was really amazed, that [makefilename] can only handle integers. a 
quick look at the source-code verified this...too bad

c) the really "heavy" thing is the multiple conversion to symbols (pd is 
not *really* strong in symbol handling)

d) if you don't care about quantization (obviously you don't as your 
patch has shown), what about this

|
[* 1000]
|
[int]
|
[/ 1000]
|
|
[/ 100]
|
[makesymbol %se+02]
|

(the first three object are only for quantization)




mfg.asd.r
IOhannes




More information about the Pd-list mailing list