DelayLines

Implements a configurable delay line device, that can be used to create various time-based effects. It contains: * two delay lines * four taps per delay line * a short 16 element FIR per tap * 4 parallel band-pass filters for applying EQ for the effect The module is controllable via MIDI CC commands.

Constructors

this
this(size_t priLen, size_t secLen)

Creates an instance of this module using the supplied parameters.

Members

Functions

controlChangeCmd
void controlChangeCmd(ubyte paramMSB, ubyte paramLSB, uint val)
Undocumented in source. Be warned that the author may not have intended to support it.
getParameters
MValue[] getParameters()
Undocumented in source. Be warned that the author may not have intended to support it.
midiReceive
void midiReceive(UMP data0, uint data1, uint data2, uint data3)
Undocumented in source. Be warned that the author may not have intended to support it.
moduleSetup
void moduleSetup(ubyte[] inputs, ubyte[] outputs, int sampleRate, size_t bufferSize, ModuleManager handler)

Sets the module up.

presetChangeCmd
void presetChangeCmd(uint preset)
Undocumented in source. Be warned that the author may not have intended to support it.
readParam_double
double readParam_double(uint presetID, uint paramID)
Undocumented in source. Be warned that the author may not have intended to support it.
readParam_int
int readParam_int(uint presetID, uint paramID)
Undocumented in source. Be warned that the author may not have intended to support it.
readParam_long
long readParam_long(uint presetID, uint paramID)
Undocumented in source. Be warned that the author may not have intended to support it.
readParam_string
string readParam_string(uint presetID, uint paramID)
Undocumented in source. Be warned that the author may not have intended to support it.
renderFrame
void renderFrame(float*[] input, float*[] output)
Undocumented in source. Be warned that the author may not have intended to support it.
resetFilter
void resetFilter(int filterID)
Undocumented in source. Be warned that the author may not have intended to support it.
waveformDataReceive
int waveformDataReceive(uint id, ubyte[] rawData, WaveFormat format)
Undocumented in source. Be warned that the author may not have intended to support it.
writeParam_double
int writeParam_double(uint presetID, uint paramID, double value)
Undocumented in source. Be warned that the author may not have intended to support it.
writeParam_int
int writeParam_int(uint presetID, uint paramID, int value)
Undocumented in source. Be warned that the author may not have intended to support it.
writeParam_long
int writeParam_long(uint presetID, uint paramID, long value)
Undocumented in source. Be warned that the author may not have intended to support it.
writeParam_string
int writeParam_string(uint presetID, uint paramID, string value)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

SET_VALS
MValue[] SET_VALS;
Undocumented in source.

Structs

Preset
struct Preset

Contains recallable preset data.

Tap
struct Tap

Defines a delay line tap.

Variables

allSums
__m128 allSums;
Undocumented in source.
chCtrlLower
ubyte[68][8] chCtrlLower;

Lower parts of the channel controllers (0-31 / 32-63) + Unregistered parameter set

currPreset
Preset currPreset;

Contains the copy of the current preset

dLMod
size_t[2] dLMod;

Delay line modulo

dLPos
size_t[2] dLPos;

Delay line positions

delayLines
float[][2] delayLines;

The two delay lines of the

dummyBuf
float[] dummyBuf;

Buffer used for unused inputs/outputs

feedbackSends
float[2] feedbackSends;

Stores feedback send levels

feedbackSum
float[2] feedbackSum;

Feedback sums to be mixed in with the inputs

filterBanks
IIRBank[2] filterBanks;

Stores filter data for the EQ

inLevel
__m128 inLevel;

0: A to pri, 1: A to sec, 2: B to pri, 3: B to sec

outLevel
float[2] outLevel;

Output levels

presetBank
TreeMap!(uint, Preset) presetBank;

Stores presets

presetNum
uint presetNum;
Undocumented in source.

Inherited Members

From AudioModule

ModuleInfo
struct ModuleInfo

Contains all data related to module info.

bufferSize
size_t bufferSize;

The size of the output buffers (must kept as a constant)

sampleRate
int sampleRate;

The sample rate that the audio subsystem runs at

info
ModuleInfo info;

Basic info about the plugin

handler
ModuleManager handler;

The main audio handler, also MIDI outs can be passed there

StreamIDSet
alias StreamIDSet = SortedList!(ubyte, "a < b", false)
Undocumented in source.
enabledInputs
StreamIDSet enabledInputs;

List of enabled input channel numbers

enabledOutputs
StreamIDSet enabledOutputs;

List of enabled output channel numbers

midiOut
void delegate(UMP data0, uint data1 = 0, uint data2 = 0, uint data3 = 0) midiOut;

A delegate where MIDI messages are being routed

getInfo
ModuleInfo getInfo()

Returns the basic informations about this module.

getSamplerate
int getSamplerate()

Returns the current sample rate.

moduleSetup
void moduleSetup(ubyte[] inputs, ubyte[] outputs, int sampleRate, size_t bufferSize, ModuleManager handler)

Sets the module up.

midiReceive
void midiReceive(UMP data0, uint data1, uint data2, uint data3)

MIDI 2.0 data received here.

renderFrame
void renderFrame(float*[] input, float*[] output)

Renders the current audio frame.

waveformDataReceive
int waveformDataReceive(uint id, ubyte[] rawData, WaveFormat format)

Receives waveform data that has been loaded from disk for reading. Returns zero if successful, or a specific errorcode.

waveformSlice
int waveformSlice(uint id, uint src, uint pos, uint length)

Creates a new waveform from an existing one using slicing.

getWaveformData
const(ubyte)[] getWaveformData(uint id)

Returns the waveform data from the

getWaveformDataFormat
WaveFormat getWaveformDataFormat(uint id)

Returns the format of the selected waveform

getWaveformIDList
uint[] getWaveformIDList()

Returns the available waveform ID list

getInternalWaveformIDList
uint[] getInternalWaveformIDList()

Returns the list of internal waveform IDs if there are any.

getInternalWaveformNames
string[] getInternalWaveformNames()

Returns the names of the internal waveforms if there are any.

writeParam_int
int writeParam_int(uint presetID, uint paramID, int value)

Restores a parameter to the given preset. Returns an errorcode on failure.

writeParam_long
int writeParam_long(uint presetID, uint paramID, long value)

Restores a parameter to the given preset. Returns an errorcode on failure.

writeParam_double
int writeParam_double(uint presetID, uint paramID, double value)

Restores a parameter to the given preset. Returns an errorcode on failure.

writeParam_string
int writeParam_string(uint presetID, uint paramID, string value)

Restores a parameter to the given preset. Returns an errorcode on failure.

getParameters
MValue[] getParameters()

Returns all the possible parameters this module has.

readParam_int
int readParam_int(uint presetID, uint paramID)

Reads the given value (int).

readParam_long
long readParam_long(uint presetID, uint paramID)

Reads the given value (int).

readParam_double
double readParam_double(uint presetID, uint paramID)

Reads the given value (int).

readParam_string
string readParam_string(uint presetID, uint paramID)

Reads the given value (int).

Meta