LMMS
Loading...
Searching...
No Matches
calf_plugins::wavetable_oscillator Struct Reference

#include <wavetable.h>

Inheritance diagram for calf_plugins::wavetable_oscillator:
dsp::simple_oscillator

Public Types

enum  { SIZE = 1 << 8 , MASK = SIZE - 1 , SCALE = 1 << (32 - 8) }

Public Member Functions

float get (uint16_t slice)
Public Member Functions inherited from dsp::simple_oscillator
void reset ()
 Reset oscillator phase to zero.
void set_freq (float freq, float sr)
 Set phase delta based on oscillator frequency and sample rate.
void set_freq_odsr (float freq, double odsr)
 Set phase delta based on oscillator frequency and inverse of sample rate.
void step ()
 Make one phase increment.
float get ()
 Make one phase increment and return a value from -0.5 to 0.5.

Public Attributes

int16_t(* tables )[256]
Public Attributes inherited from dsp::simple_oscillator
uint32_t phase
 Phase (from 0 to 0xFFFFFFFF).
uint32_t phasedelta
 Per-sample phase delta (phase increment), equal to 2^32*freq/sr.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
SIZE 
MASK 
SCALE 

Member Function Documentation

◆ get()

float calf_plugins::wavetable_oscillator::get ( uint16_t slice)
inline

Member Data Documentation

◆ tables

int16_t(* calf_plugins::wavetable_oscillator::tables)[256]

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