daisysp::Fm2¶
#include <fm2.h>
Public Functions¶
Name | |
---|---|
Fm2() | |
~Fm2() | |
void | Init(float samplerate) |
float | Process() |
void | SetFrequency(float freq) |
void | SetRatio(float ratio) |
void | SetIndex(float index) |
float | GetIndex() |
void | Reset() |
Detailed Description¶
Simple 2 operator FM synth voice.
Date: November, 2020
Author: Ben Sergentanis
Public Functions Documentation¶
function Fm2¶
function ~Fm2¶
function Init¶
Parameters:
- samplerate - The sample rate of the audio engine being run.
Initializes the FM2 module.
function Process¶
Returns the next sample
function SetFrequency¶
Parameters:
- freq Carrier frequency in Hz
Carrier freq. setter
function SetRatio¶
Parameters:
- ratio New modulator freq = carrier freq. * ratio
Set modulator freq. relative to carrier
function SetIndex¶
Parameters:
- FM depth, 5 = 2PI rads
Index setter
function GetIndex¶
Returns the current FM index.
function Reset¶
Resets both oscillators
---¶
Updated on 2024-01-03 at 19:38:46 +0000