Class daisysp::CrossFade¶
ClassList > daisysp > CrossFade
#include <crossfade.h>
Public Functions¶
Type | Name |
---|---|
CrossFade () |
|
uint8_t | GetCurve (uint8_t curve) |
float | GetPos (float pos) |
void | Init (int curve) |
void | Init () |
float | Process (float & in1, float & in2) |
void | SetCurve (uint8_t curve) |
void | SetPos (float pos) |
~CrossFade () |
Detailed Description¶
Performs a CrossFade between two signals
Original author: Paul Batchelor
Ported from Soundpipe by Andrew Ikenberry
added curve option for constant power, etc.
Public Functions Documentation¶
function CrossFade¶
function GetCurve¶
Returns current curve
function GetPos¶
Returns current position
function Init [½]¶
Initializes CrossFade module Defaults * current position = .5 * curve = linear
function Init [2/2]¶
Initialize with default linear curve
function Process¶
processes CrossFade and returns single sample
function SetCurve¶
Sets current curve applied to CrossFade Expected input: See Curve Options
function SetPos¶
Sets position of CrossFade between two input signals Input range: 0 to 1
function ~CrossFade¶
The documentation for this class was generated from the following file external-docs/DaisySP/Source/Dynamics/crossfade.h