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

Variable Saw Oscillator. More...

#include <variablesawosc.h>

Public Member Functions

void Init (float sample_rate)
 
float Process ()
 
void SetFreq (float frequency)
 
void SetPW (float pw)
 
void SetWaveshape (float waveshape)
 

Detailed Description

Variable Saw Oscillator.

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.

Member Function Documentation

◆ Process()

float VariableSawOscillator::Process ( )

Get the next sample

◆ SetFreq()

void VariableSawOscillator::SetFreq ( float frequency)

Set master freq.

Parameters
frequencyFreq in Hz.

◆ SetPW()

void VariableSawOscillator::SetPW ( float pw)

Adjust the wave depending on the shape

Parameters
pwNotch or slope. Works best -1 to 1.

◆ SetWaveshape()

void VariableSawOscillator::SetWaveshape ( float waveshape)

Slope or notch

Parameters
waveshape0 = notch, 1 = slope

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