Skip to content

daisysp::GrainletOscillator

Granular Oscillator Module. More...

#include <grainlet.h>

Public Functions

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

Detailed Description

class daisysp::GrainletOscillator;

Granular Oscillator Module.

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 GrainletOscillator()

function ~GrainletOscillator

inline ~GrainletOscillator()

function Init

void Init(
    float sample_rate
)

Parameters:

  • sample_rate Sample rate of audio engine

Initialize the oscillator


function Process

float Process()

Get the next sample


function SetFreq

void SetFreq(
    float freq
)

Parameters:

  • freq Frequency in Hz

Sets the carrier frequency


function SetFormantFreq

void SetFormantFreq(
    float freq
)

Parameters:

  • freq Frequency in Hz

Sets the formant frequency


function SetShape

void SetShape(
    float shape
)

Parameters:

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

Waveshaping


function SetBleed

void SetBleed(
    float bleed
)

Parameters:

  • bleed Works best 0-1

Sets the amount of formant to bleed through

---

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