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
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
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
maybe using s2l ?
something (roughly) like:
[symbol drums_1.wav(
|[symbol _(
||
[s2l]
[unpack s s]
|
|[symbol .(
||
[s2l]
[unpack s s]
[f ]
|
[1\
gr,
Tim
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
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