The Tooba
 All Data Structures Namespaces Files Functions Variables Macros Pages
Public Member Functions | Private Attributes
Oscillator Class Reference

#include <voice.h>

Public Member Functions

 Oscillator ()
 
void setfreq (float f)
 
void setwaveform (int32_t x)
 
void step (void)
 
int32_t output (void)
 

Private Attributes

uint32_t phase
 
uint32_t dphase
 
uint32_t waveform
 

Detailed Description

Definition at line 84 of file voice.h.

Constructor & Destructor Documentation

Oscillator::Oscillator ( )
inline

Definition at line 88 of file voice.h.

Member Function Documentation

int32_t Oscillator::output ( void  )
inline

Definition at line 102 of file voice.h.

Referenced by Voice::output().

Here is the caller graph for this function:

void Oscillator::setfreq ( float  f)
inline

Definition at line 92 of file voice.h.

Referenced by Voice::setfreq().

Here is the caller graph for this function:

void Oscillator::setwaveform ( int32_t  x)
inline

Definition at line 95 of file voice.h.

Referenced by Voice::Voice().

Here is the caller graph for this function:

void Oscillator::step ( void  )
inline

Definition at line 99 of file voice.h.

Referenced by Voice::step().

Here is the caller graph for this function:

Field Documentation

uint32_t Oscillator::dphase
private

Definition at line 85 of file voice.h.

Referenced by step().

uint32_t Oscillator::phase
private

Definition at line 85 of file voice.h.

Referenced by output().

uint32_t Oscillator::waveform
private

Definition at line 85 of file voice.h.


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