DaisySP
Loading...
Searching...
No Matches
Public Member Functions | List of all members
daisysp::ZOscillator Class Reference

ZOscillator Module
. More...

#include <zoscillator.h>

Public Member Functions

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

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.

Member Function Documentation

◆ Init()

void ZOscillator::Init ( float sample_rate)

Init ZOscillator module

Parameters
sample_rateAudio engine sample rate.

◆ Process()

float ZOscillator::Process ( )

Get next sample

◆ SetFormantFreq()

void ZOscillator::SetFormantFreq ( float freq)

Set the formant osc. freq

Parameters
freqFrequency in Hz.

◆ SetFreq()

void ZOscillator::SetFreq ( float freq)

Set the carrier frequency

Parameters
freqFrequency in Hz.

◆ SetMode()

void ZOscillator::SetMode ( float mode)

Set the offset amount and phase shift.
< 1/3 is just phase shift, > 2/3 is just offset, and between them is both.

Parameters
modeMode to set. Works best -1 to 1

◆ SetShape()

void ZOscillator::SetShape ( float shape)

Adjust the contour of the waveform.

Parameters
shapeWaveshape to set. Works best 0-1.

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