Skip to content

Class daisysp::CrossFade

ClassList > daisysp > CrossFade

More...

  • #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

inline daisysp::CrossFade::CrossFade () 

function GetCurve

inline uint8_t daisysp::CrossFade::GetCurve (
    uint8_t curve
) 

Returns current curve


function GetPos

inline float daisysp::CrossFade::GetPos (
    float pos
) 

Returns current position


function Init [½]

inline void daisysp::CrossFade::Init (
    int curve
) 

Initializes CrossFade module Defaults * current position = .5 * curve = linear


function Init [2/2]

inline void daisysp::CrossFade::Init () 

Initialize with default linear curve


function Process

float daisysp::CrossFade::Process (
    float & in1,
    float & in2
) 

processes CrossFade and returns single sample


function SetCurve

inline void daisysp::CrossFade::SetCurve (
    uint8_t curve
) 

Sets current curve applied to CrossFade Expected input: See Curve Options


function SetPos

inline void daisysp::CrossFade::SetPos (
    float pos
) 

Sets position of CrossFade between two input signals Input range: 0 to 1


function ~CrossFade

inline daisysp::CrossFade::~CrossFade () 


The documentation for this class was generated from the following file external-docs/DaisySP/Source/Dynamics/crossfade.h