ultra-simple FFT intro

DSP, Plugin and Host development discussion.
Post Reply New Topic
RELATED
PRODUCTS

Post

I used the single C file smbPitchShift.c from dspdimension.com in a VST. It required no changes at all and built 1st time and sounded good. It's WOL (wide open license).

I'm an FFT noob but if anyone wants to get their feet wet with FFT, this seems like it might be a good low-friction place to start.

http://www.denniscronin.net/dsp/vst.html

CAF

Post

Note that the smbpitchshift code will be completely broken if there are multiple instances of a VST plugin using the code. (Due to the static variables involved.)

Post

I don't think that's true. There's no mechanism for sharing that memory across different DLLs.

Post

Xenakios is right. The statics in smbPitchShift will be shared across instances of the same plugin.

Post

Huh, surprising. Good thing I tend to write in a more object-oriented way and wouldn't run into this, because I wouldn't have guessed.

Post

I experimented a bit with smbPitchShift for PitchedDelay (also rewrote it into a class which isn't very hard) but I didn't pursue it any further as the code is rather slow and the pitching doesn't sound that good (at least if used in a feedback loop like in PitchedDelay).

I attached the code for the class but it also uses some JUCE classes (namely HeapBlock and ScopedPointer) and FFTReal for FFT. HeapBlock and ScopedPointer can be replaced with pointers and manual new/delete, FFTReal is available here.
You do not have the required permissions to view the files attached to this post.

Post Reply

Return to “DSP and Plugin Development”