manual

68 WaveLab Concepts
changeLevel(dbValue) - Changes the level of the selected audio range.
fadeIn(shape) and fadeOut(shape) - Applies a fade on the selected audio range. shape
can be one of the following:
linear
sinus
squareRoot
sinusoid
log
exp
expp
Example:
activeWave.fadeIn(squareRoot);
levelEnvelope(presetName) - Loads the envelope shape and applies its setting to an
audio range.
morph(presetName) - Loads an effect morphing preset and applies it according to its
settings.
invertPhase() - Inverts the phase of the samples in the audio range.
reverse() - Reverses the order of the samples in the audio range.
cut() - Cuts the selected audio range.
copy() - Copies the selected audio range.
paste() - Pastes audio from the clipboard to the current cursor position.
trim() - Trims the selected audio range.
remove() - Deletes the selected audio range.
removeSmooth() - Deletes the selected audio range and cross fades the resulting regions
together.
mute() - Mutes the selected audio range.
swapChannels() - Swaps stereo channels.
undo() - Undoes the last command.
removeDcOffset() - Removes the DC offset in the audio range.
readSamples(channelIndex, from, numSamples) - Reads a number of samples from a
given cursor position, on a given channel:
Use 0 for the left channel
Use 1 for the right channel
Returns the result in an array. Example:
WaveLab 7