substitute bug

Mar 19, 2007 at 5:20pm

substitute bug

If I want to substitute 32 with 202, it will only accept lists which
contain 32… weird…

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 219 95 50 196617 1 32 3 4;
#P message 159 95 50 196617 1 2 3 4;
#P window linecount 0;
#P message 205 201 93 196617;
#P window linecount 1;
#P newex 205 176 62 196617 prepend set;
#P window linecount 0;
#P message 105 202 93 196617;
#P window linecount 1;
#P newex 105 178 62 196617 prepend set;
#P newex 205 148 63 196617 append 202;
#P newex 205 122 90 196617 substitute 32 202;
#P newex 105 94 27 196617 atoi;
#P newex 105 68 101 196617 sprintf symout %.2f;
#P flonum 105 44 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 105 122 63 196617 append 32;
#P newex 105 148 90 196617 substitute 32 202;
#P window linecount 2;
#P comment 104 287 353 196617 these two versions should do the same ,
but they do only if the part which is to be substituted is conained in
the list….;
#P connect 10 0 11 0;
#P connect 8 0 9 0;
#P connect 6 0 7 0;
#P connect 13 0 2 0;
#P connect 13 0 6 0;
#P connect 1 0 8 0;
#P connect 7 0 10 0;
#P connect 12 0 2 0;
#P connect 12 0 6 0;
#P connect 5 0 2 0;
#P fasten 5 0 6 0 110 116 210 116;
#P connect 3 0 4 0;
#P connect 4 0 5 0;
#P connect 2 0 1 0;
#P window clipboard copycount 14;


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com

#30914
Mar 19, 2007 at 5:45pm

missing wire?

_
johan

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 219 95 50 196617 1 32 3 4;
#P message 159 95 50 196617 1 2 3 4;
#P message 205 201 93 196617 1 2 3 4 202;
#P newex 205 176 62 196617 prepend set;
#P message 105 202 93 196617 1 2 3 4 202;
#P newex 105 178 62 196617 prepend set;
#P newex 205 148 63 196617 append 202;
#P newex 205 122 90 196617 substitute 32 202;
#P newex 105 94 27 196617 atoi;
#P newex 105 68 101 196617 sprintf symout %.2f;
#P flonum 105 44 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 105 122 63 196617 append 32;
#P newex 105 148 90 196617 substitute 32 202;
#P connect 5 1 6 0;
#P connect 1 0 0 0;
#P connect 3 0 4 0;
#P connect 2 0 3 0;
#P fasten 4 0 5 0 110 116 210 116;
#P connect 4 0 1 0;
#P connect 11 0 5 0;
#P connect 11 0 1 0;
#P connect 6 0 9 0;
#P connect 0 0 7 0;
#P connect 12 0 5 0;
#P connect 12 0 1 0;
#P connect 5 0 6 0;
#P connect 7 0 8 0;
#P connect 9 0 10 0;
#P window clipboard copycount 13;

#99532
Mar 19, 2007 at 5:47pm

by the way, if your atoi has two inlets, it is an older version, probably somewhere in your third parties.

_
johan

#99533
Mar 21, 2007 at 11:56am

jvkr schrieb:
> missing wire?

stupid me…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com

#99534

You must be logged in to reply to this topic.