Skip to content

Class daisysp::Port

ClassList > daisysp > Port

More...

  • #include <port.h>

Public Functions

Type Name
float GetHtime ()
void Init (float sample_rate, float htime)
Port ()
float Process (float in)
void SetHtime (float htime)
~Port ()

Detailed Description

Applies portamento to an input signal.

At each new step value, the input is low-pass filtered to move towards that value at a rate determined by ihtim. ihtim is the half-time of the function (in seconds), during which the curve will traverse half the distance towards the new value, then half as much again, etc., theoretically never reaching its asymptote.

Public Functions Documentation

function GetHtime

inline float daisysp::Port::GetHtime () 

returns current value of htime


function Init

void daisysp::Port::Init (
    float sample_rate,
    float htime
) 

Initializes Port module

Parameters:

  • sample_rate sample rate of audio engine
  • htime half-time of the function, in seconds.

function Port

inline daisysp::Port::Port () 

function Process

float daisysp::Port::Process (
    float in
) 

Applies portamento to input signal and returns processed signal.

Returns:

slewed output signal


function SetHtime

inline void daisysp::Port::SetHtime (
    float htime
) 

Sets htime


function ~Port

inline daisysp::Port::~Port () 


The documentation for this class was generated from the following file external-docs/DaisySP/DaisySP-LGPL/Source/Utility/port.h