[PD] Parse/split symbol by delimiters like - or _ ?

IOhannes m zmölnig zmoelnig at iem.at
Sun Mar 1 20:24:16 CET 2015


On 03/01/2015 08:17 PM, tim vets wrote:
> maybe using s2l ?

which is just an alias for [symbol2list]...

> something (roughly) like:
> 
> [symbol drums_1.wav(
> |    [symbol _(
> |    |
> [s2l]

or simply specify the separator as an argument:
[s2l _]

> [unpack s s]
>                 |
>                 |    [symbol .(
>                 |    |
>                 [s2l]
>                 [unpack s s]
>                 [f ]

this won't work: [f] does NOT magically convert a symbol (as output by
[unpack s s] into a float.
luckily, [symbol2list] will output the "1" as a number 1 (rather than a
symbol), so you can reduce that to:
[unpack f s]



fmdsr
IOhannes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20150301/57e35a57/attachment.sig>


More information about the Pd-list mailing list