09.12.2012 Views

The Kyma Language for Sound Design, Version 4.5

The Kyma Language for Sound Design, Version 4.5

The Kyma Language for Sound Design, Version 4.5

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SetRange<br />

Math Category<br />

This maps the output range of the Input to the specified range of newMin to newMax.<br />

Input<br />

<strong>The</strong> output of this <strong>Sound</strong> is scaled to a range of newMin to newMax. Set oldMin and oldMax to the<br />

current output range of this <strong>Sound</strong> (typically -1.0 to 1.0 or 0 to 1.0). For example, a FunctionGenerator<br />

that steps through the wavetable #ramp has a range of 0 to 1.0, but if the wavetable is #sine the range is<br />

-1.0 to 1.0.<br />

OldMin<br />

<strong>The</strong> current minimum value of the Input. This is typically -1.0 (<strong>for</strong> full range wavetables) or 0 (<strong>for</strong><br />

wavetables like #ramp that never go negative).<br />

OldMax<br />

<strong>The</strong> current maximum output of the Input. Typically, this is the full amplitude: 1.0.<br />

NewMin<br />

This is the new minimum output.<br />

NewMax<br />

This is the new maximum output.<br />

346

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!