Skip to content

Class daisysp::GrainletOscillator

ClassList > daisysp > GrainletOscillator

Granular Oscillator Module.More...

  • #include <grainlet.h>

Public Functions

Type Name
GrainletOscillator ()
void Init (float sample_rate)
float Process ()
void SetBleed (float bleed)
void SetFormantFreq (float freq)
void SetFreq (float freq)
void SetShape (float shape)
~GrainletOscillator ()

Detailed Description

Author:

Ben Sergentanis

Date:

Dec 2020 A phase-distorted single cycle sine * another continuously running sine, the whole thing synced to a main oscillator.

Ported from pichenettes/eurorack/plaits/dsp/oscillator/grainlet_oscillator.h to an independent module. Original code written by Emilie Gillet in 2016.

Public Functions Documentation

function GrainletOscillator

inline daisysp::GrainletOscillator::GrainletOscillator () 

function Init

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

Initialize the oscillator

Parameters:

  • sample_rate Sample rate of audio engine

function Process

float daisysp::GrainletOscillator::Process () 

Get the next sample


function SetBleed

void daisysp::GrainletOscillator::SetBleed (
    float bleed
) 

Sets the amount of formant to bleed through

Parameters:

  • bleed Works best 0-1

function SetFormantFreq

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

Sets the formant frequency

Parameters:

  • freq Frequency in Hz

function SetFreq

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

Sets the carrier frequency

Parameters:

  • freq Frequency in Hz

function SetShape

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

Waveshaping

Parameters:

  • shape Shapes differently from 0-1, 1-2, and > 2.

function ~GrainletOscillator

inline daisysp::GrainletOscillator::~GrainletOscillator () 


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