<div dir="ltr"><div>maybe using s2l ?<br>something (roughly) like:<br><br>[symbol drums_1.wav( <br></div>|    [symbol _(<br><div>|    |<br>[s2l]<br><div>[unpack s s]<br></div><div>                |<br></div>                |    [symbol .(<br>                |    |<br>                [s2l]<br>                [unpack s s]<br></div><div>                [f ]<br>                |<br>                [1\<br></div><div>gr,<br></div><div>Tim<br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-01 20:03 GMT+01:00 JF via Pd-list <span dir="ltr"><<a href="mailto:pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif;font-size:10px"><div dir="ltr">Is it possible to split a formatted symbol such as...</div><div dir="ltr">drums_1.wav<br></div><div dir="ltr">...to extract the float '1' and use that to assign a meaningful attribute?</div><div dir="ltr"><br></div><div dir="ltr">For example a float could represent a loop playback switch. <br></div><div dir="ltr">if I have 'drums_0.wav' I would like to extract the float, find that it</div><div dir="ltr">is '0' and then I would know that this WAV file is say, not to be looped.</div><div dir="ltr">Or if I had 'drums_1.wav' I would be able to parse the filename, find the '1'</div><div dir="ltr">which I now know to loop the WAV file.</div><div dir="ltr"><br></div><div dir="ltr">Thanks in advance! John<br></div></div></div><br>_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br></div>