Signalsmith Audio DSP Library

repository·main·Indexed 42 days ago

https://github.com/signalsmith-audio/dsp

A C++11 header-only library providing classes and templates for audio signal-processing tasks, including components such as delay lines.

Tokens
293
Snippets
3
Records
3
Agent score
5%

What's inside Signalsmith Audio DSP

  1. Install the Signalsmith Audio DSP Library

    main

    The library is a C++11 header-only library. To install it, clone the repository directly from the source:

    git clone https://signalsmith-audio.co.uk/code/dsp.git

    Once cloned, simply include the required header files in your C++ project to use the available classes and templates.

  2. Basic usage of DSP classes

    main

    To use the library, include the specific header for the component you need and instantiate the desired class. For example, to use a delay line with float precision, include dsp/delay.h and instantiate signalsmith::delay::Delay<float>.

    #include "dsp/delay.h"
    
    using Delay = signalsmith::delay::Delay<float>;
    Delay delayLine(1024);
  3. Verify library version compatibility

    main

    You can use the SIGNALSMITH_DSP_VERSION_CHECK macro to ensure your project is using a compatible version of the library at compile-time. This prevents issues caused by API changes between versions.

    #include "dsp/envelopes.h"
    SIGNALSMITH_DSP_VERSION_CHECK(1, 7, 0)