daisysp::CrossFade¶
#include <crossfade.h>
Public Functions¶
Name | |
---|---|
CrossFade() | |
~CrossFade() | |
void | Init(int curve) |
void | Init() |
float | Process(float & in1, float & in2) |
void | SetPos(float pos) |
void | SetCurve(uint8_t curve) |
float | GetPos(float pos) |
uint8_t | GetCurve(uint8_t curve) |
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 ~CrossFade¶
function Init¶
Initializes CrossFade module Defaults
- current position = .5
- curve = linear
function Init¶
Initialize with default linear curve
function Process¶
processes CrossFade and returns single sample
function SetPos¶
Sets position of CrossFade between two input signals Input range: 0 to 1
function SetCurve¶
Sets current curve applied to CrossFade Expected input: See Curve Options
function GetPos¶
Returns current position
function GetCurve¶
Returns current curve
---¶
Updated on 2024-01-03 at 19:38:46 +0000