DaisySP
Loading...
Searching...
No Matches
daisysp::Metro Class Reference

#include <metro.h>

Public Member Functions

void Init (float freq, float sample_rate)
 
uint8_t Process ()
 
void Reset ()
 
void SetFreq (float freq)
 
float GetFreq ()
 

Detailed Description

Creates a clock signal at a specific frequency.

Member Function Documentation

◆ GetFreq()

float daisysp::Metro::GetFreq ( )
inline

Returns current value for frequency.

◆ Init()

void 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:

◆ Process()

uint8_t Metro::Process ( )

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

◆ Reset()

void daisysp::Metro::Reset ( )
inline

resets phase to 0

◆ SetFreq()

void Metro::SetFreq ( float freq)

Sets frequency at which Metro module will run at.


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