DaisySP
Loading...
Searching...
No Matches
daisysp::CrossFade Class Reference

#include <crossfade.h>

Public Member Functions

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.

Member Function Documentation

◆ GetCurve()

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

Returns current curve

◆ GetPos()

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

Returns current position

◆ Init() [1/2]

void daisysp::CrossFade::Init ( )
inline

Initialize with default linear curve

◆ Init() [2/2]

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

Initializes CrossFade module Defaults

  • current position = .5
  • curve = linear

◆ Process()

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

processes CrossFade and returns single sample

◆ SetCurve()

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

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

◆ SetPos()

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

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


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