port
Applies portamento to a step-valued control signal.
Syntax
Initialization
ihtim -- half-time of the function, in seconds.
isig (optional, default=0) -- initial (i.e. previous) value for internal feedback. The default value is 0. Negative value will cause initialization to be skipped and last value from previous instance to be used as initial value for note.
Performance
kres -- the output signal at control-rate.
ksig -- the input signal at control-rate.
port applies portamento to a step-valued control signal. At each new step value, ksig 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. With portk, the half-time can be varied at the control rate.
Examples
Here is an example of the port opcode. It uses the file port.csd.