daisysp::BlOsc¶
#include <blosc.h>
Public Types¶
Name | |
---|---|
enum | Waveforms |
Public Functions¶
Name | |
---|---|
BlOsc() | |
~BlOsc() | |
void | Init(float sample_rate) |
float | Process() |
void | SetFreq(float freq) |
void | SetAmp(float amp) |
void | SetPw(float pw) |
void | SetWaveform(uint8_t waveform) |
void | Reset() |
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¶
Enumerator | Value | Description |
---|---|---|
WAVE_TRIANGLE | ||
WAVE_SAW | ||
WAVE_SQUARE | ||
WAVE_OFF |
Bl Waveforms
Public Functions Documentation¶
function BlOsc¶
function ~BlOsc¶
function Init¶
-Initialize oscillator. -Defaults to: 440Hz, .5 amplitude, .5 pw, Triangle.
function Process¶
- Get next floating point oscillator sample.
function SetFreq¶
- Float freq: Set oscillator frequency in Hz.
function SetAmp¶
- Float amp: Set oscillator amplitude, 0 to 1.
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 Reset¶
- reset the phase of the oscillator.
---¶
Updated on 2024-01-03 at 19:38:46 +0000