Class daisysp::BlOsc¶
#include <blosc.h>
Public Types¶
Type | Name |
---|---|
enum | Waveforms |
Public Functions¶
Type | Name |
---|---|
BlOsc () |
|
void | Init (float sample_rate) |
float | Process () |
void | Reset () |
void | SetAmp (float amp) |
void | SetFreq (float freq) |
void | SetPw (float pw) |
void | SetWaveform (uint8_t waveform) |
~BlOsc () |
Detailed Description¶
Band Limited Oscillator
Based on bltriangle, blsaw, blsquare from soundpipe
Original Author(s): Paul Batchelor, saw2 Faust by Julius Smith
Ported by Ben Sergentanis, May 2020
Public Types Documentation¶
enum Waveforms¶
Bl Waveforms
Public Functions Documentation¶
function BlOsc¶
function Init¶
-Initialize oscillator. -Defaults to: 440Hz, .5 amplitude, .5 pw, Triangle.
function Process¶
- Get next floating point oscillator sample.
function Reset¶
- reset the phase of the oscillator.
function SetAmp¶
- Float amp: Set oscillator amplitude, 0 to 1.
function SetFreq¶
- Float freq: Set oscillator frequency in Hz.
function SetPw¶
- Float pw: Set square osc pulsewidth, 0 to 1. (no thru 0 at the moment)
function SetWaveform¶
- uint8_t waveform: select between waveforms from enum above.
- i.e. SetWaveform(BL_WAVEFORM_SAW); to set waveform to saw
function ~BlOsc¶
The documentation for this class was generated from the following file external-docs/DaisySP/DaisySP-LGPL/Source/Synthesis/blosc.h