lorisamplimit
lorisamplimit Limit the range of amplitudes in a Loris analysis.
Syntax
lorisamplimit isrcidx, istoreidx, kLowAmp, kHighAmp
Description
Partial amplitudes below kLowAmp are changed to kLowAmp; amplitudes above kHighAmp are changed to kHighAmp; the values between are unchanged.Initialization
isrcidx is an integer label that identifies the stored set of SDIF partials that are used. Use lorisread to import partials from an SDIF file, store them in memory and assign a label.
itgtidx is an integer label where the partial data created by this opcode will be stored. This label may be subsequently used with any other loris opcode for further transformation or resynthesis with lorisplay. if itgtidx and isrcidx are identical then isrcidx is overwritten.
Performance
kLowAmp is the lower amplitude boundary which limits amplitudes in istoreidx.
kHighAmp is the higher amplitude boundary which limits amplitudes in istoreidx.
Credits
The Loris unit generators were written by Kelly Fitz (loris@cerlsoundgroup.org). It is patterned after a prototype implementation of the lorisplay unit generator written by Corbin Champion, and based on the method of Bandwidth-Enhanced Additive Synthesis and on the sound morphing algorithms implemented in the Loris library for sound modeling and manipulation. The opcodes were further adapted as a plugin for Csound 5 by Michael Gogins. Ben Hackbarth (hackbarth@ucsd.edu) wrote the Extended Loris Opcodes.