On Fri, 2013-11-15 at 09:06 -0500, Billy Stiltner wrote: > hey, > > > I have been trying to rename sends and receives of dials at runtime > > > they need actual literal $0 in their name. > > > so I tried this with sending a 0 to $$4 in a message > > it worked for the literal renaming but the patch gets messed up after > saving and reloading.
I might have a found a way that doesn't mess up the patch after saving, but I still consider it somewhat hack-ish. I'm not clear of the purpose of what you want to achieve, though. You can only convert the receivenames to use $0 once, so it seems easier to use a text editor to edit the pd file. Or if you set the receive names dynamically whenever you fire up the patch, you could instead use the real number instead of the variable $0. Roman > somehow the patch does need to be able to be edited and saved without > changeing the $$4 to a $\$4 once reloaded after a save. > > > this is what the patch looks like from the .pd file after a save. > > > #X msg 188 -194 \; \$1-o\$2-waveform-rx receive \$$4-o\$3-waveform-rx > \; \$1-o\$2-dt-rx receive-rx \$$4-o\$3-dt-rx \; \$1-env\$2-o\$2-dt-rx > receive \$$4-env\$3-o\$3-dt-rx \; \$1-lfo\$2-o\$2-dt-rx receive \ > $$4-lfo\$3-o\$3-dt-rx > \; \$1-o\$2-pw receive-rx \$$4-o\$3-pw-rx \; \$1-env\$2-o\$2-pw-rx > receive \$$4-env\$3-o\$3-pw-rx \; \$1-lfo\$2-o\$2-pw-rx receive \ > $$4-lfo\$3-o\$3-pw-rx > \; \$1-env\$2-o\$2-rx receive \$$4-env\$3-o\$3-rx \; \$1-lfo\$2-o\ > $2-rx > receive \$$4-lfo\$3-o\$3-rx; > #X msg -109 -193 \; \$1-o\$2-waveform-rx send \$$4-o\$3-waveform \; > \$1-o\$2-dt-rx send \$$4-o\$3-dt \; \$1-env\$2-o\$2-dt-rx send \ > $$4-env\$3-o\$3-dt > \; \$1-lfo\$2-o\$2-dt-rx send \$$4-lfo\$3-o\$3-dt \; \$1-o\$2-pw-rx > send \$$4-o\$3-pw \; \$1-env\$2-o\$2-pw-rx send \$$4-env\$3-o\$3-pw > \; \$1-lfo\$2-o\$2-pw-rx send \$$4-lfo\$3-o\$3-pw \; \$1-env\$2-o\ > $2-rx > send \$$4-env\$3-o\$3 \; \$1-lfo\$2-o\$2-rx send \$$4-lfo\$3-o\$3; > ______________________________________________________________________ > > > > > _______________________________________________ > [email protected] mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list
#N canvas 59 73 524 299 10; #X obj 33 195 hsl 128 15 0 127 0 0 empty bla empty -2 -8 0 10 -262144 -1 -1 3100 1; #X obj 134 114 s bla; #X msg 134 28 list $ 0; #X msg 134 52 receive \$1\$2-bla; #X floatatom 26 54 5 0 0 0 - - -, f 5; #X floatatom 298 57 5 0 0 0 - - -, f 5; #X obj 298 118 s \$0-bla; #X obj 26 106 s bla; #X text 286 164 this even works after saving patch; #X obj 390 255 s \$0-bla; #X msg 390 230 receive bla; #X text 387 207 reset; #X connect 2 0 3 0; #X connect 3 0 1 0; #X connect 4 0 7 0; #X connect 5 0 6 0; #X connect 10 0 9 0;
_______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
