Class daisysp::Fm2¶
#include <fm2.h>
Public Functions¶
| Type | Name |
|---|---|
| Fm2 () |
|
| float | GetIndex () |
| void | Init (float samplerate) |
| float | Process () |
| void | Reset () |
| void | SetFrequency (float freq) |
| void | SetIndex (float index) |
| void | SetRatio (float ratio) |
| ~Fm2 () |
Detailed Description¶
Simple 2 operator FM synth voice.
Date: November, 2020
Author: Ben Sergentanis
Public Functions Documentation¶
function Fm2¶
function GetIndex¶
Returns the current FM index.
function Init¶
Initializes the FM2 module.
Parameters:
samplerate- The sample rate of the audio engine being run.
function Process¶
Returns the next sample
function Reset¶
Resets both oscillators
function SetFrequency¶
Carrier freq. setter
Parameters:
freqCarrier frequency in Hz
function SetIndex¶
Index setter
Parameters:
FMdepth, 5 = 2PI rads
function SetRatio¶
Set modulator freq. relative to carrier
Parameters:
ratioNew modulator freq = carrier freq. * ratio
function ~Fm2¶
The documentation for this class was generated from the following file external-docs/DaisySP/Source/Synthesis/fm2.h