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

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


On 03/01/2015 08:03 PM, JF via Pd-list wrote:
> Is it possible to split a formatted symbol such as...drums_1.wav
> ...to extract the float '1' and use that to assign a meaningful attribute?
> For example a float could represent a loop playback switch. 
> if I have 'drums_0.wav' I would like to extract the float, find that itis '0' and then I would know that this WAV file is say, not to be looped.Or if I had 'drums_1.wav' I would be able to parse the filename, find the '1'which I now know to loop the WAV file.


zexy's [symbol2list] was designed to allow something like this.

iirc, the new [text] object will allow you to build something like this
in Pd-vanilla.

gfmadsr
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/e30ca625/attachment.sig>


More information about the Pd-list mailing list