Avatar

Please consider registering
Guest

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
Avatar
lukehabermehl
New Member
Members
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
Avatar
jacobcarl
Bangalore
New Member
Members
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: 47

Peter: 41

Derek: 41

clau_ste: 39

Frodson: 38

Gwen: 32

EZB: 24

lppier: 23

Msaldaña: 18

Jorge: 17

Member Stats:

Guest Posters: 1

Members: 476

Moderators: 1

Admins: 4

Forum Stats:

Groups: 11

Forums: 30

Topics: 482

Posts: 1876

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