Circular Buffers

DSP related issues, mathematics, processing and techniques
Post Reply
BobF
Posts: 598
Joined: Mon Apr 20, 2015 9:54 pm

Circular Buffers

Post by BobF »

Hello all, well mostly programmers. While doing some research for a Flowstone module I am working on I kept cumming across talk about "Circular Buffers". From what I have read they can be used for Delays, Revere Delays, Tapped Delays, Stretched and Compressed Audio, Pitch Shifting, and more.
So I was wondering, could a generic "Circular Buffer" be made as a module with some pointers on how to us it for the above mentioned effects and so on?

Martin, tulamide, MyCo, KG_, any ideas or suggestions?

Now I am sorry because I am defiantly not a programmer and can not join in on this project, but I sure hope other will!

Well that's it. Later then, BobF.....
Last edited by BobF on Tue Oct 20, 2015 4:36 pm, edited 1 time in total.
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: Circular Buffers

Post by Spogg »

Hear hear!

One of my future projects will be to fool around with a multi-tapped delay. If I get interesting results I'll make a module. There's nothing done towards this yet so your idea may lead to some useful ingredients. Otherwise it's just several existing delays in series and there may be a better way.
I've looked into commercial multi-taps and the approach varies considerably; there doesn't seem to be a consensus on the "best" way to do it so this will also interest me.

Even if I don't use what's uploaded it will doubtless be fascinating!

So guys... we're all waiting... :D

Cheers

Spogg
BobF
Posts: 598
Joined: Mon Apr 20, 2015 9:54 pm

Re: Circular Buffers

Post by BobF »

CircularBuffer.fsm
(489 Bytes) Downloaded 1619 times

Ok Gang,

After hours of searching on the net I found this in a OLD Synthmaker blog. I typed it into the DSP box, but as you can see , it does not work. I do NOT know who wrote it, how it was supposed to work, or if it is even complete, but it was said to be a "Circular Buffer"

So if anyone who knows this stuff would PLEASE take a like at it, we would really be grateful (I guess Spogg and I, so far) Many thanks in advance!

Later then, Bob.....
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

Re: Circular Buffers

Post by martinvicanek »

The declaration shouldread
float buffer[44100];
to make it work. Ring buffers are omnipresent, just look inside the stock delay. For more efficiency you want to go asm, refer to KG's post on FS Guru.
BobF
Posts: 598
Joined: Mon Apr 20, 2015 9:54 pm

Re: Circular Buffers

Post by BobF »

Hi martin,
Thanks for the feedback, much appeciated!
Later then, BobF.....
Post Reply