Overview
High order allpass structure with integer time delays
Discussion
The allpass_delay_module.m and allpass_delay16_module.m implement the digital system shown below:
...
Both modules operate on mono data only.
Type Definition
Code Block |
---|
typedef struct _ModuleAllpassDelay {  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  INT32 currentDelay; // Current delay  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 } ModuleAllpassDelayClass; |
Variables
Properties
Name | Type | Usage | isHidden | Default value | Range | Units |
maxDelay | int | const | 0 | 100 | 1:100000 | samples |
currentDelay | int | parameter | 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: in
Description: audio input
...
Sample rate range: Unrestricted
Complex support: Real
Output Pins
Name: out
Description: audio output
...
Description: audio output
Data type: float
MATLAB Usage
File Name: allpass_delay_module.m
...