Please consider registering

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Data Structure for efficient sample bookkeeping
No permission to create posts
February 25, 2016
12:32 am
New Member
Forum Posts: 1
Member Since:
February 2, 2016
sp_UserOfflineSmall Offline

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.

September 12, 2016
11:24 am
New Member
Forum Posts: 2
Member Since:
August 22, 2016
sp_UserOfflineSmall Offline
Forum Timezone: America/New_York

Most Users Ever Online: 36

Currently Online:
3 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Skyler: 48

Derek: 46

Peter: 41

Frodson: 40

clau_ste: 39

Gwen: 32

JimmyM: 30

TheSmile: 27

EZB: 24

lppier: 23

Member Stats:

Guest Posters: 1

Members: 523

Moderators: 1

Admins: 4

Forum Stats:

Groups: 11

Forums: 31

Topics: 546

Posts: 2138

Newest Members:

rawbirdtoe, Bill, hill william, NAUN_SONAR, sufy, Diane, Richard, drvenkman, venkman, Jfx

Moderators: W Pirkle: 249

Administrators: Tom: 67, JD Young: 80, Will Pirkle: 0, W Pirkle: 249