I might have a found a way that doesn't mess up the patch after saving,
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.
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;
>
>
>
>
> _______________________________________________
> Pd-list@iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list