Skip to content

Class daisysp::ZOscillator

ClassList > daisysp > ZOscillator

ZOscillator Module .More...

  • #include <zoscillator.h>

Public Functions

Type Name
void Init (float sample_rate)
float Process ()
void SetFormantFreq (float freq)
void SetFreq (float freq)
void SetMode (float mode)
void SetShape (float shape)
ZOscillator ()
~ZOscillator ()

Detailed Description

Author:

Ben Sergentanis

Date:

Dec 2020 Sinewave multiplied by and sync'ed to a carrier.

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

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

Public Functions Documentation

function Init

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

Init ZOscillator module

Parameters:

  • sample_rate Audio engine sample rate.

function Process

float daisysp::ZOscillator::Process () 

Get next sample


function SetFormantFreq

void daisysp::ZOscillator::SetFormantFreq (
    float freq
) 

Set the formant osc. freq

Parameters:

  • freq Frequency in Hz.

function SetFreq

void daisysp::ZOscillator::SetFreq (
    float freq
) 

Set the carrier frequency

Parameters:

  • freq Frequency in Hz.

function SetMode

void daisysp::ZOscillator::SetMode (
    float mode
) 

Set the offset amount and phase shift. < ⅓ is just phase shift, > ⅔ is just offset, and between them is both.

Parameters:

  • mode Mode to set. Works best -1 to 1

function SetShape

void daisysp::ZOscillator::SetShape (
    float shape
) 

Adjust the contour of the waveform.

Parameters:

  • shape Waveshape to set. Works best 0-1.

function ZOscillator

inline daisysp::ZOscillator::ZOscillator () 

function ~ZOscillator

inline daisysp::ZOscillator::~ZOscillator () 


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