DaisySP
Loading...
Searching...
No Matches
daisysp::OscillatorBank Class Reference

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)
 

Detailed Description

Oscillator Bank module.

Author
Ben Sergentanis
Date
Dec 2020 A mixture of 7 sawtooth and square waveforms in the style of divide-down organs

Ported from pichenettes/eurorack/plaits/dsp/oscillator/string_synth_oscillator.h

to an independent module.
Original code written by Emilie Gillet in 2016.

Member Function Documentation

◆ Init()

void OscillatorBank::Init ( float sample_rate)

Init string synth module

Parameters
sample_rateAudio engine sample rate

◆ Process()

float OscillatorBank::Process ( )

Get next floating point sample

◆ SetAmplitudes()

void OscillatorBank::SetAmplitudes ( const float * amplitudes)

Set amplitudes of 7 oscillators. 0-6 are Saw 8', Square 8', Saw 4', Square 4', Saw 2', Square 2', Saw 1'

Parameters
amplitudesarray of 7 floating point amplitudes. Must sum to 1.

◆ SetFreq()

void OscillatorBank::SetFreq ( float freq)

Set oscillator frequency (8' oscillator)

Parameters
freqFrequency in Hz

◆ SetGain()

void OscillatorBank::SetGain ( float gain)

Set overall gain.

Parameters
gainGain to set. 0-1.

◆ SetSingleAmp()

void OscillatorBank::SetSingleAmp ( float amp,
int idx )

Set a single amplitude

Parameters
ampAmplitude to set.
idxWhich wave's amp to set

The documentation for this class was generated from the following files: