Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Scroll Documents: Update page title prefix

Overview

Interpolated time allpass delay

Discussion

An allpass interpolated delay module where the delay time is taken from the first input pin. The second input pin is the audio to process. The module supports fractional delay times and uses linear interpolation between sample values. Delay times as small as 0 samples can be realized. The first input pin contains a single channel of data. The second input pin (audio) can be multichannel with the same processing applied to all channels. The delay line is incorporated into a first order allpass topology (transposed Direct Form II), with the feedback gain determined by the coef value, and the feedforward gain determined by -coef.

...

See AllpassDelayci for similar functionality but with cubic interpolation.

Type Definition

Code Block
typedef struct _ModuleAllpassDelayi
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
    INT32 maxDelay;                               // Maximum delay that can be realized, in samples. The size of the delay buffer (maxDelay+1)*numChannels
    FLOAT32 currentDelay;                         // Current delay
    FLOAT32 modDepth;                             // Maximum depth, in samples, of the modulation signal
    FLOAT32 coef;                                 // Feedback/-feedforward coefficient for the allpass delay.
    INT32 stateIndex;                             // Index of the oldest state variable in the array of state variables
    FLOAT32* state;                               // State variable array
} ModuleAllpassDelayiClass;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

maxDelay

int

const

0

100

1:100000

samples

currentDelay

float

parameter

0

0

0:0.1:100

samples

modDepth

float

parameter

0

0

0:0.1:100

samples

coef

float

parameter

0

0.5

-1:1

stateIndex

int

state

1

0

Unrestricted

state

float*

state

1

[1 x 101]

Unrestricted

Pins

Input Pins

Name: mod

Description: modulation input

...

Sample rate range: Unrestricted

Complex support: Real

Output Pins

Name: out

Description: audio output

Data type: float

MATLAB Usage

File Name: allpass_delayi_module.m

...