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

Granular Oscillator Module. More...

#include <grainlet.h>

Public Member Functions

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

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.

Member Function Documentation

◆ Init()

void GrainletOscillator::Init ( float sample_rate)

Initialize the oscillator

Parameters
sample_rateSample rate of audio engine

◆ Process()

float GrainletOscillator::Process ( )

Get the next sample

◆ SetBleed()

void GrainletOscillator::SetBleed ( float bleed)

Sets the amount of formant to bleed through

Parameters
bleedWorks best 0-1

◆ SetFormantFreq()

void GrainletOscillator::SetFormantFreq ( float freq)

Sets the formant frequency

Parameters
freqFrequency in Hz

◆ SetFreq()

void GrainletOscillator::SetFreq ( float freq)

Sets the carrier frequency

Parameters
freqFrequency in Hz

◆ SetShape()

void GrainletOscillator::SetShape ( float shape)

Waveshaping

Parameters
shapeShapes differently from 0-1, 1-2, and > 2.

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