daisysp::Port¶
#include <port.h>
Public Functions¶
Name | |
---|---|
Port() | |
~Port() | |
void | Init(float sample_rate, float htime) |
float | Process(float in) |
void | SetHtime(float htime) |
float | GetHtime() |
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.
This code has been ported from Soundpipe to DaisySP by Paul Batchelor.
The Soundpipe module was extracted from the Csound opcode "portk".
Original Author(s): Robbin Whittle, John ffitch
Year: 1995, 1998
Location: Opcodes/biquad.c
Public Functions Documentation¶
function Port¶
function ~Port¶
function Init¶
Parameters:
- sample_rate sample rate of audio engine
- htime half-time of the function, in seconds.
Initializes Port module
function Process¶
Return: slewed output signal
Applies portamento to input signal and returns processed signal.
function SetHtime¶
Sets htime
function GetHtime¶
returns current value of htime
---¶
Updated on 2024-01-03 at 19:38:46 +0000