Skip to content

daisysp::Port

More...

#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

class daisysp::Port;

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

inline Port()

function ~Port

inline ~Port()

function Init

void Init(
    float sample_rate,
    float htime
)

Parameters:

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

Initializes Port module


function Process

float Process(
    float in
)

Return: slewed output signal

Applies portamento to input signal and returns processed signal.


function SetHtime

inline void SetHtime(
    float htime
)

Sets htime


function GetHtime

inline float GetHtime()

returns current value of htime

---

Updated on 2024-01-03 at 19:38:46 +0000