Skip to content

Class daisysp::Metro

ClassList > daisysp > Metro

More...

  • #include <metro.h>

Public Functions

Type Name
float GetFreq ()
void Init (float freq, float sample_rate)
Metro ()
uint8_t Process ()
void Reset ()
void SetFreq (float freq)
~Metro ()

Detailed Description

Creates a clock signal at a specific frequency.

Public Functions Documentation

function GetFreq

inline float daisysp::Metro::GetFreq () 

Returns current value for frequency.


function Init

void daisysp::Metro::Init (
    float freq,
    float sample_rate
) 

Initializes Metro module. Arguments: * freq: frequency at which new clock signals will be generated Input Range: * sample_rate: sample rate of audio engine Input range:


function Metro

inline daisysp::Metro::Metro () 

function Process

uint8_t daisysp::Metro::Process () 

checks current state of Metro object and updates state if necesary.


function Reset

inline void daisysp::Metro::Reset () 

resets phase to 0


function SetFreq

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

Sets frequency at which Metro module will run at.


function ~Metro

inline daisysp::Metro::~Metro () 


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