[PD] hot do you get a comma into a symbol?

IOhannes m zmoelnig zmoelnig at iem.at
Mon Mar 5 11:15:06 CET 2007


Luigi Rensinghoff wrote:

>>> ---
>> hello, 'addcomma' adds a comma in message box
> 
> 
> a shame its not documented anywhere....are there more hidden trix  
> like that ?

? it is perfectly documented in the help-patch for message boxes...

however, it will not help rich in his problems, since the comma ha a
special meaning in pd (it separates 2 messages).
so [amixer -c 1 cset numid=5 26,2,32768( will be interpreted as 3
messages [amixer -c 1 cset numid=5 26(, [2( and [32768(, which is most
likely not what he wants.
what is needed is one symbol which holds commas.

this can be achieved in several ways, the most "simple" is probably
using zexy's [list2symbol] with a delimiter "," which can be generated
with [makefilename %c] and a value 44.

like:

[26 2 32768(
|
[t list bang]
|           |
|           [44(
|           |
|           [makefilename %c]
|           |
[list2symbol]
|


you can acchieve the same with pure pd as well, but it gets more
complicated (and you might want pd>=0.40 for better list handling)

mfga.sdr
IOhannes




More information about the Pd-list mailing list