TermOx
Protected Member Functions | List of all members
ox::dynamic::Modulation_base Class Reference
Inheritance diagram for ox::dynamic::Modulation_base:
ox::dynamic::Random ox::dynamic::Sawtooth_up ox::dynamic::Sine ox::dynamic::Square ox::dynamic::Triangle ox::dynamic::Invert< Sawtooth_up > ox::dynamic::Sawtooth_down

Protected Member Functions

 Modulation_base (unsigned resolution, unsigned offset=0)
 Resolution is the number of steps to complete a full cycle. More...
 
auto get_next_ratio () -> double
 Finds the next ratio between from the current step and resolution. More...
 

Constructor & Destructor Documentation

◆ Modulation_base()

ox::dynamic::Modulation_base::Modulation_base ( unsigned  resolution,
unsigned  offset = 0 
)
explicitprotected

Resolution is the number of steps to complete a full cycle.

offset is the starting point, in range [0, resolution).

Member Function Documentation

◆ get_next_ratio()

auto ox::dynamic::Modulation_base::get_next_ratio ( ) -> double
protected

Finds the next ratio between from the current step and resolution.

Returns a value between [0.0, 1.0].


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