Skip to content

UIKit0/ofxPDSP

 
 

Repository files navigation

ofxPDSP

ofxPDSP is an audio DSP addon/library for openFrameworks. It is based on those design principles:

  • Native c++, made to be tightly integrated into c++ projects.
  • Class design mimics modular synthesizers, where inputs and outputs are patched with the >> operator.
  • Sample accurate timing.
  • Lazy evaluated DSPs. DSP units are recursively processed in chunks big as the audio buffer size, CPU cycles are spared by not processing Units if the actual state of the system make their results irrelevant and by switching between routines running at audio rate (process every sample) and control rate (once every buffer) on the fly. PDSP is coded optimizing the instruction for this kind of branching and shows a low I1 cache miss rate (e.g. less than 0.3% on a i7 processor with 128 samples of buffersize, measured with valgrind). DSPs are also coded using SIMD instructions when possible.
  • Thread-safe methods for metering and control.
  • Cross-platform code: works on Linux, OSX, Windows, iOS, Android (only on ARM processors with NEON instructions).

It includes a good selection of modules ready to be used, like antialiasied oscillators and VA filters, an FFT convolver, analog-sounding envelopes, delays, noise generators, a sampler and a graincloud module, biquad equalizers (normal and 2x oversampled), units for dynamic processing, units for oversampling/downsampling and a framework for writing and sequencing generative music. You can find a doxygenerated documentation of the modules here and a series of tutorials here.

On top of that some other classes that uses openFrameworks for adding midi in/out, waveform plotting and manage GUIs.

Requires ofxMidi and ofxSIMDFloats.

Nicola Pisanti, MIT License 2016.
For FFT the AudioFFT wrapper is used, Copyright (c) 2013 HiFi-LoFi.
For loading audio file on OSX libaudiodecoder is used, Copyright (c) 2010-2012 Albert Santoni, Bill Good, RJ Ryan.

About

Patchable DSP addon/library for audio synthesis and generative music

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 95.6%
  • C 3.3%
  • Other 1.1%