The Extended Loris Opcodes

Home | Download | Opcodes | Examples/Sounds | Contact Me


lorisnoiselimit

lorisnoiselimit — Limit the range of noise coefficients in a Loris analysis.

Syntax

lorisnoiselimit  isrcidx, istoreidx, kLowNoise, kHighNoise

Description

Partial noise coefficients below kLowNoise are changed to kLowNoise; noise coefficients above kHighNoise are changed to kHighNoise; 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

kLowNoise is the lower noise coefficient boundary which limits noise coefficients in istoreidx.

kHighNoise is the higher noise coefficient boundary which limits noise coefficients in istoreidx.

Warning! Only an SDIF file that uses the RBEP frame type will contain bandwidth-enhanced partials (noise coefficients). If you are using another frame type (such as Audiosculpt's or SPEAR's 1TRC), resynthesis will work properly but all noise coefficients will be 0. You can alter them, but only at your own peril!

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.