[PD] Parse/split symbol by delimiters like - or _ ?
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. Thanks in advance! John ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Parse/split symbol by delimiters like - or _ ?
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 signature.asc Description: OpenPGP digital signature ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Parse/split symbol by delimiters like - or _ ?
maybe using s2l ? something (roughly) like: [symbol drums_1.wav( |[symbol _( || [s2l] [unpack s s] | |[symbol .( || [s2l] [unpack s s] [f ] | [1\ gr, Tim 2015-03-01 20:03 GMT+01:00 JF via Pd-list pd-list@lists.iem.at: 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 it is '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. Thanks in advance! John ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Parse/split symbol by delimiters like - or _ ?
sorry, in that example, the last [unpack s s] should probably be [unpack f s] 2015-03-01 20:17 GMT+01:00 tim vets timv...@gmail.com: maybe using s2l ? something (roughly) like: [symbol drums_1.wav( |[symbol _( || [s2l] [unpack s s] | |[symbol .( || [s2l] [unpack s s] [f ] | [1\ gr, Tim 2015-03-01 20:03 GMT+01:00 JF via Pd-list pd-list@lists.iem.at: 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 it is '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. Thanks in advance! John ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] high channel count audio output on the cheap?
With the Delata1010s you can sync one to the other using either the word clock or the SPDIF. Martin On Sun, Mar 1, 2015 at 10:31 AM, IOhannes zmölnig zmoel...@iem.at wrote: Am 01. März 2015 14:44:13 MEZ, schrieb tim vets timv...@gmail.com: You can probably find some m-audio Delta series soundcards for cheap, and combine several of them. The problem with that approach in general is that you have no way of synching the cards. Since each has their own quartz and all have slightly different speeds, you will end up with dropped samples sooner or later, unless you do a resampling (fons adriansen has written a nice resampler for that kind of things on linux). mfg.ugd.fhj IOhannes -- Sent from my pdp-11 ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Parse/split symbol by delimiters like - or _ ?
Thanks Iohannes Tim, I would be interested in how to achieve this with [text]? I've been playing with text for the first time today, I thought that the 'fields' were only whitespace separated. if I had... [text define longsymbols] [symbol _ ( | [text set longsymbols] ...how would I then retrieve the '' and '' separately? (Otherwise I will just use l2s/list2symbol) Thanks! John On Sunday, 1 March 2015, 19:21, tim vets timv...@gmail.com wrote: sorry, in that example, the last [unpack s s] should probably be [unpack f s] 2015-03-01 20:17 GMT+01:00 tim vets timv...@gmail.com: maybe using s2l ? something (roughly) like: [symbol drums_1.wav( |[symbol _( || [s2l] [unpack s s] | |[symbol .( || [s2l] [unpack s s] [f ] | [1\ gr, Tim 2015-03-01 20:03 GMT+01:00 JF via Pd-list pd-list@lists.iem.at: 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 it is '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. Thanks in advance! John ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list