VCV Rack API v2
Loading...
Searching...
No Matches
common.hpp File Reference
#include <common.hpp>
#include <math.hpp>
#include <simd/functions.hpp>
Include dependency graph for common.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  rack::dsp::Frame< CHANNELS, T >
 Useful for storing arrays of samples in ring buffers and casting them to float* to be used by interleaved processors, like SampleRateConverter. More...
 

Namespaces

namespace  rack
 Root namespace for the Rack API.
 
namespace  rack::dsp
 Digital signal processing routines and classes.
 

Functions

float rack::dsp::sinc (float x)
 The normalized sinc function See https://en.wikipedia.org/wiki/Sinc_function.
 
template<typename T >
rack::dsp::sinc (T x)
 
template<typename T >
rack::dsp::amplitudeToDb (T amp)
 
template<typename T >
rack::dsp::dbToAmplitude (T db)
 
template<typename T >
rack::dsp::quadraticBipolar (T x)
 
template<typename T >
rack::dsp::cubic (T x)
 
template<typename T >
rack::dsp::quarticBipolar (T x)
 
template<typename T >
rack::dsp::quintic (T x)
 
template<typename T >
rack::dsp::sqrtBipolar (T x)
 
template<typename T >
rack::dsp::exponentialBipolar (T b, T x)
 This is pretty much a scaled sinh.
 

Variables

static const float rack::dsp::FREQ_C4 = 261.6256f
 
static const float rack::dsp::FREQ_A4 = 440.0000f
 
static const float rack::dsp::FREQ_SEMITONE = 1.0594630943592953f