For example, I would like to trigger a sound playback multiple times, but every time I send a bang, the sound file will restart to play. Is it possible to let the [readsf~] work in a "stacking" mode, which means every time it takes a non-zero value, it layers the playback at that particular rate?
-
Is it possible to stack layers in PD?
-
@chaosprint I don't really understand the question.
But [readsf~] will play one soundfile at a time from beginning to end, can be started and stopped, and can be given a value in samples determining the start point (onset) in the "open" message.... see its help file.....
If you want to play the same track twice at different times you will need 2 [readsf~] ...... or you could use [delread~] and [delwrite~] to add a delayed signal to your output (echo).
David. -
@chaosprint said:
For example, I would like to trigger a sound playback multiple times
it layers the playback at that particular rateYou mean, like a polyphonic sampler? If so I'd load the sample in a table and have an instance of tabread~/tabread4~ for each "layer".
-
@kyro said:
@chaosprint said:
For example, I would like to trigger a sound playback multiple times
it layers the playback at that particular rateYou mean, like a polyphonic sampler? If so I'd load the sample in a table and have an instance of tabread~/tabread4~ for each "layer".
Yes. But what if I don't know how many layers I will have? Can I create new layers in real-time during interaction?
-
You might check clone object for that.
But you need to allocate a maximum number of voices or use dynamic patching technic, but I am not sure it's worth the try.