liveconvSignal Modifiers:Convolution and Morphingliveconvliveconv
Partitioned convolution with dynamically reloadable impulse response
DescriptionPlugin opcode in liveconv.
Computationally efficient, partitioned convolution, using a function table as impulse response (IR) source,
similar to the ftconv opcode.
The liveconv opcode allows dynamic reload of IR data at any time
while the convolution is running, controlled by the kupdate parameter.
Due to the manner in which the IR is updated, the operation can be done without audio artifacts in the convolution output.
The IR table is read partition by partition after signalling an update.
The first ksmps samples must be available when the update flag is set.
The rest of the table can be continuously filled in consecutive passes. There may be a new update
for every partition, allowing as many as ftlen/iplen simultaneous updates
(ftlen is the length of the IR table).
The low-latency, dynamic behavior of liveconv makes it ideal for
convolution with live sampled impulse responses, and/or real-time impulse response transformations and modifications.
Syntaxares liveconv ain, ift, iplen, kupdate, kclearInitializationift
-- table number for storing the impulse response (IR) for convolution. The table may be filled with new
data at any time while the convolution is running.
iplen
-- length of impulse response partition in samples; must be an
integer power of two. Lower settings allow for shorter output delay, but
will increase CPU usage.
Performanceain
-- input signal.
ares
-- output signal.
kupdate
-- flag indicating whether the IR table should be updated.
If kupdate=1 the IR table ift is loaded partition by partition, starting with the next partition.
If kupdate=-1 the IR table ift is unloaded (cleared to zero) partition by partition, starting with the next partition.
Other values have no effect.
kclear
-- flag for clearing all internal buffers.
If kclear has any value != zero, the internal buffers are cleared immediately. This operation is not free of artifacts.
Example
Here is an example of the liveconv opcode. It uses the file liveconv.csd.
Example of the liveconv opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoConvolution and MorphingCreditsAuthor: Sigurd Saue, Oeyvind Brandtsegg2017