February 2, 2016
Since managing more than one or two delayed samples can be annoying, I implemented a data structure that greatly simplifies the process.
The structure, which I am calling DelayBuffer, is an implementation of a circular buffer which allocates an array of floats with a length you provide (the maximum number of samples you need to hold). Instead of copying around data when you shuffle in a new sample, the buffer just keeps track of the index of the most recently inserted sample. This allows for O(1) insertion and access time.
An example of how to use it in RackAFX as well as the source code can be found here: http://lukehabermehl.com/wp/ef.....r-rackafx/
Feel free to tweak it as you see fit.
Most Users Ever Online: 36
Currently Browsing this Page:
Guest Posters: 1
Newest Members:sam, annaharris, Marie Weaver, kev, Steven, Mr Anderson, mguy, omelc
Moderators: W Pirkle: 143
Administrators: Tom: 65, JD Young: 80, Will Pirkle: 0, W Pirkle: 143