31 namespace cinder {
namespace audio {
float midiToFreq(float midi)
Scale midi from MIDI note values to frequency (hertz). Adapted from Pure Data's mtof function...
Definition: Utilities.cpp:68
float freqToMidi(float freq)
Scale freq from frequency (hertz) to MIDI note values, so as one can refer to pitches using the equal...
Definition: Utilities.cpp:60
bool thresholdBuffer(const Buffer &buffer, float threshold, size_t *recordFrame=nullptr)
Checks if the absolute value of any sample in buffer is over threshold. Optionally provide recordFram...
Definition: Utilities.cpp:74
GLuint buffer
Definition: GLee.h:2065
GLuint GLsizei GLsizei * length
Definition: GLee.h:2313
float linearToDecibel(float gainLinear)
Scale gainLinear from linear (0-1) to decibel (0-100) scale.
Definition: Utilities.cpp:32
float decibelToLinear(float gainDecibels)
Scale gainLinear from decibel (0-100) to linear (0-1) scale.
Definition: Utilities.cpp:46
BufferT< float > Buffer
Definition: Buffer.h:285
void threshold(SurfaceT< T > *surface, T value, const Area &area)
Thresholds surface setting any values below value to zero and any values above to unity inside the Ar...
Definition: Threshold.cpp:100