Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

At construction time, you specify the maximum delay (maxDelay) of the module. The variable, maxDelay determines the size of the internal state buffer. The size of the internal state buffer equals (maxDelay+1)*numChannels samples. The delay time per channel is specified by the currentDelayTime array. The actual delay applied is in integer sample ammounts and so depends on the sample rate. delay

delay = floor( currentDelay * SR ) / SR

Delays can be adjusted at run-time. However, the module is not smoothly updating and you may get audible clicks when adjusting the currentDelay at run-time.

...

Code Block
typedef struct _ModuleDelayNChanMsec
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
    FLOAT32 maxDelayTime;                         // Maximum delay, in milliseconds.
    INT32 stateHeap;                              // Heap in which to allocate memory. Used to pass the value to internal delaynchan module.
    INT32 maxDelay;                               // Max delay in samples. Used to pass the value to internal delaynchan module.
    FLOAT32* currentDelayTime;                    // Current delay, in milliseconds.
    awe_modDelayNChanInstance *delay; // Module with different time delay for each channel specified in samples
} ModuleDelayNChanMsecClass;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

maxDelayTime

float

const

0

10

0:10

msec

stateHeap

int

const

1

561

Unrestricted

maxDelay

int

const

1

480

Unrestricted

currentDelayTime

float*

parameter

0

[1 x 1]

0:10

msec

Pins

Input Pins

Name: in

Description: Audio Input

...