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

2015-03-25 Thread JF via Pd-list
Made an abstraction that will split a symbol by a delimiter using the new [list tosymbol] [list fromsymbol] methods (attached). (So this is for the newer vanilla versions ~0.46) Uses [List_buffer] abstraction which is a cold-inlet growable list w/ bang to output and clear. This I created to sui

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

2015-03-02 Thread IOhannes m zmoelnig
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 2015-03-02 14:23, tim vets wrote: > which version is this? I get "list fromsymbol: unknown function" in > Pd 0.45.4 Pd-0.46 fgadr IOhannes -BEGIN PGP SIGNATURE- Version: GnuPG v1 iQIcBAEBCAAGBQJU9GnVAAoJELZQGcR/ejb4qW4P/3FHUiPgaVY+22+7X

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

2015-03-02 Thread IOhannes m zmoelnig
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 2015-03-02 12:26, Jack wrote: > Just do it with [list]s objects from vanilla. ah indeed, i knew that one of those objectfamily-objects ([text], [list], [array]) provided the way to split a symbol into characters. i thought it was [text], but wa

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

2015-03-02 Thread Jack
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Just do it with [list]s objects from vanilla. Certaily can be improved... ++ Jack Le 01/03/2015 21:21, JF via Pd-list a écrit : > Thanks Iohannes & Tim, > > > I would be interested in how to achieve this with [text]? > > I've been playing with t

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

2015-03-01 Thread JF via Pd-list
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

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

2015-03-01 Thread IOhannes m zmölnig
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] > | >

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

2015-03-01 Thread tim vets
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 : > maybe using s2l ? > something (roughly) like: > > [symbol drums_1.wav( > |[symbol _( > || > [s2l] > [unpack s s] > | > |[symbol .( >

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

2015-03-01 Thread tim vets
maybe using s2l ? something (roughly) like: [symbol drums_1.wav( |[symbol _( || [s2l] [unpack s s] | |[symbol .( || [s2l] [unpack s s] [f ] | [1\ gr, Tim

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

2015-03-01 Thread IOhannes m zmölnig
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 extr