Skip to content

title: daisysp::ZOscillator summary: ZOscillator Module .


daisysp::ZOscillator

ZOscillator Module . More...

#include <zoscillator.h>

Public Functions

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

Detailed Description

class daisysp::ZOscillator;

ZOscillator Module .

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 ZOscillator

inline ZOscillator()

function ~ZOscillator

inline ~ZOscillator()

function Init

void Init(
    float sample_rate
)

Parameters:

  • sample_rate Audio engine sample rate.

Init ZOscillator module


function Process

float Process()

Get next sample


function SetFreq

void SetFreq(
    float freq
)

Parameters:

  • freq Frequency in Hz.

Set the carrier frequency


function SetFormantFreq

void SetFormantFreq(
    float freq
)

Parameters:

  • freq Frequency in Hz.

Set the formant osc. freq


function SetShape

void SetShape(
    float shape
)

Parameters:

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

Adjust the contour of the waveform.


function SetMode

void SetMode(
    float mode
)

Parameters:

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

Set the offset amount and phase shift.

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

---

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