DaisySP
|
Oscillator Bank module. More...
#include <oscillatorbank.h>
Public Member Functions | |
void | Init (float sample_rate) |
float | Process () |
void | SetFreq (float freq) |
void | SetAmplitudes (const float *amplitudes) |
void | SetSingleAmp (float amp, int idx) |
void | SetGain (float gain) |
Oscillator Bank module.
Init string synth module
sample_rate | Audio engine sample rate |
float OscillatorBank::Process | ( | ) |
Get next floating point sample
Set amplitudes of 7 oscillators. 0-6 are Saw 8', Square 8', Saw 4', Square 4', Saw 2', Square 2', Saw 1'
amplitudes | array of 7 floating point amplitudes. Must sum to 1. |
Set oscillator frequency (8' oscillator)
freq | Frequency in Hz |
Set a single amplitude
amp | Amplitude to set. |
idx | Which wave's amp to set |