[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] How to SynthDef a non-stop player of random samples???
Hi folks.
I'm new to Supercollider but not electronic music or programming. I
can't figure out how to put an infinite loop into a SynthDef that
would allow me to use PlayBuf to play random samples, one after
another. Actually I want to play a random sample, pause a random
amount of time, play another random sample, and so on.
I want to do this in a self-contained SynthDef because I will need to
instantiate a number of these. I want to avoid writing a single piece
of code that goes around triggering a number of synths. It will be
much better to be able to instantiate autonomous sample playing
synths. And once created there is no need to programatically turn
synths on and off or deallocate them.
I'm pretty sure I know how to pass the Buffer references the synth
will select from, and how to do the random buffer selection. I've
read a bit about patterns and understand those at least in principle.
I know PlayBuf can loop a single sample. It would be better if the
samples were defined as individual buffers rather than concatenated in
a single buffer and then selected by start and stop memory locations.
My main problem is figuring out how to make an "outer loop" that will
trigger a random sample once per trip.
Any ideas? I'm in a bit of a jam trying to finish this project quickly.
thanks,
Phil
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/