[chuck-users] increase chuck memory usage

Kassen signal.automatique at gmail.com
Thu Jan 26 18:22:55 EST 2012

On Thu, Jan 26, 2012 at 05:09:52PM -0600, Michael Heuer wrote:

> Hmm.  That sounds difficult, so it might have to wait until the RPM
> challenge is over.  :)

If you keep all of them in a big array then they are all indexed. Then
you can have a array of 10 (or so) integers that keeps track of the
current 10 in use. When a new sample needs playing you look up in that
array what the oldest sample is, unchuck that, replace the number with
the number of the new one and chuck the new one to dac. Then you just
need to cover for re-triggering buffers that are already connected,
but that's quite simple.

That will work, but it won't deal with clicks for you. How hard clicks
are to deal with will depend on how dense your drumming gets, compared
to the length of the sample. If you are lucky you won't need to care
at all.


More information about the chuck-users mailing list