Skip to content

Class daisysp::VariableSawOscillator

ClassList > daisysp > VariableSawOscillator

Variable Saw Oscillator .More...

  • #include <variablesawosc.h>

Public Functions

Type Name
void Init (float sample_rate)
float Process ()
void SetFreq (float frequency)
void SetPW (float pw)
void SetWaveshape (float waveshape)
VariableSawOscillator ()
~VariableSawOscillator ()

Detailed Description

Author:

Ben Sergentanis

Date:

Dec 2020 Saw with variable slope or notch.

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

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

Public Functions Documentation

function Init

void daisysp::VariableSawOscillator::Init (
    float sample_rate
) 

function Process

float daisysp::VariableSawOscillator::Process () 

Get the next sample


function SetFreq

void daisysp::VariableSawOscillator::SetFreq (
    float frequency
) 

Set master freq.

Parameters:

  • frequency Freq in Hz.

function SetPW

void daisysp::VariableSawOscillator::SetPW (
    float pw
) 

Adjust the wave depending on the shape

Parameters:

  • pw Notch or slope. Works best -1 to 1.

function SetWaveshape

void daisysp::VariableSawOscillator::SetWaveshape (
    float waveshape
) 

Slope or notch

Parameters:

  • waveshape 0 = notch, 1 = slope

function VariableSawOscillator

inline daisysp::VariableSawOscillator::VariableSawOscillator () 

function ~VariableSawOscillator

inline daisysp::VariableSawOscillator::~VariableSawOscillator () 


The documentation for this class was generated from the following file external-docs/DaisySP/Source/Synthesis/variablesawosc.h