Skip to content

daisysp::VariableSawOscillator

Variable Saw Oscillator. More...

#include <variablesawosc.h>

Public Functions

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

Detailed Description

class daisysp::VariableSawOscillator;

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.

Public Functions Documentation

function VariableSawOscillator

inline VariableSawOscillator()

function ~VariableSawOscillator

inline ~VariableSawOscillator()

function Init

void Init(
    float sample_rate
)

function Process

float Process()

Get the next sample


function SetFreq

void SetFreq(
    float frequency
)

Parameters:

  • frequency Freq in Hz.

Set master freq.


function SetPW

void SetPW(
    float pw
)

Parameters:

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

Adjust the wave depending on the shape


function SetWaveshape

void SetWaveshape(
    float waveshape
)

Parameters:

  • waveshape 0 = notch, 1 = slope

Slope or notch

---

Updated on 2024-01-03 at 19:38:46 +0000