everybody, hello how can i do to format a message like that:
delta 01 1 delta 01 2 delta 01 3
where "delta 01" is stable and the last value come from a number i've tried with [sprintf delta 01 %i]
but the result is "delta 1 1"
the same result with
[t b a] | | [0( | | | [sprintf delta %s1 %i]
any idea?
many thanks nico
Hallo, nico bats hat gesagt: // nico bats wrote:
everybody, hello how can i do to format a message like that:
delta 01 1 delta 01 2 delta 01 3
where "delta 01" is stable and the last value come from a number i've tried with
Use $-args in a message:
[f] | [delta 01 $1(
Frank Barknecht _ ______footils.org__
_ __latest track: "scans" _ http://footils.org/cms/show/41
yes frank
my question was not well formed , the question was how to append 0 before a number.... anyway, i'va made some modifications, and my new question is
how to get number in the format: 0.0 0.1 0.2 0.3 ...... 0.9 1.0 1.1.......
and not
0 0.1 0.2 0.3 ...... 0.9 1 1.1 1.2
thanks ++ nico
Hallo, nico bats hat gesagt: // nico bats wrote:
everybody, hello how can i do to format a message like that:
delta 01 1 delta 01 2 delta 01 3
where "delta 01" is stable and the last value come from a number i've tried with
Use $-args in a message:
[f] | [delta 01 $1(
Ciao
Frank Barknecht _ ______footils.org__
_ __latest track: "scans" _ http://footils.org/cms/show/41
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
nico wrote: ...
how to get number in the format: 0.0 0.1 0.2 0.3 ...... 0.9 1.0 1.1.......
and not
0 0.1 0.2 0.3 ...... 0.9 1 1.1 1.2
since sprintf's "symout" option has been broken in max for many years (still was so last time I checked), cyclone's sprintf works only in the `reparsing' mode. So, a '0.0', being a valid float rep, is reparsed to a float. In order to block reparsing, maxers are left with a workaround of using a tosymbol instread, initiated by a 'separator' message. The formatting above should work with cyclone's tosymbol initiated by 'separator .' and driven by '0 0', '0 1'... lists.
The same should work with zexy's l2s. The makesymbol is zexy's [sprintf symout]-alike, though...
Krzysztof
hi you're right it works with tosymbol i didn't knew this function in tosymbol
it's not fun to formate the lists, but it works and is usefull for me
many thanks
ps: does [tot] is a tcl command interpreter because [expr double(arg)] would do the job
nico
how to get number in the format: 0.0 0.1 0.2 0.3 ...... 0.9 1.0 1.1....... and not 0 0.1 0.2 0.3 ...... 0.9 1 1.1 1.2
since sprintf's "symout" option has been broken in max for many years (still was so last time I checked), cyclone's sprintf works only in the `reparsing' mode. So, a '0.0', being a valid float rep, is reparsed to a float. In order to block reparsing, maxers are left with a workaround of using a tosymbol instread, initiated by a 'separator' message. The formatting above should work with cyclone's tosymbol initiated by 'separator .' and driven by '0 0', '0 1'... lists.
The same should work with zexy's l2s. The makesymbol is zexy's [sprintf symout]-alike, though...
Krzysztof