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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

You can create shared inputs between <strong>Sound</strong>s in several ways using an input field:<br />

♦ Use Copy from the Edit menu to place the input <strong>Sound</strong> into the clipboard. <strong>The</strong>n repeatedly use Paste<br />

special… from the Edit menu to place the input <strong>Sound</strong> into each of the parameter fields that need<br />

that input <strong>Sound</strong>.<br />

♦ Hold the Control or Option key while dragging the input <strong>Sound</strong> from the parameter field where the<br />

<strong>Sound</strong> is used on top of the <strong>Sound</strong> you want to replace in the signal flow diagram.<br />

♦ Hold the Control or Option key while dragging the input <strong>Sound</strong> from the signal flow diagram into<br />

the parameter field where you want to share that <strong>Sound</strong>.<br />

Script fields are text fields that contain a script <strong>for</strong> <strong>Kyma</strong> to evaluate when it is compiling a <strong>Sound</strong>. For<br />

more in<strong>for</strong>mation about scripts, see Scripting on page 522.<br />

Value fields are text fields that contain a numeric value. <strong>The</strong> numeric value may be given directly, or it<br />

may be the result of a Smalltalk-80 calculation. Certain value fields (with cyan colored backgrounds) are<br />

hot; hot value fields can be set to a time-varying numeric value. Some value fields require units to be supplied<br />

along with the numeric value. You can add explanatory comments to value fields by enclosing the<br />

comments within double quotes.<br />

Array fields are value fields that contain a list of numeric values. <strong>The</strong> numeric values are simply listed one<br />

after another, separated by spaces. If the value is complex or the result of a calculation, it must be enclosed<br />

in curly braces so that <strong>Kyma</strong> can find where one value ends and the next begins. For example,<br />

1 !Fader1 {2 + 3} {!Frequency * 2}<br />

could be used in an array parameter to specify four different values.<br />

More about Value Fields<br />

A value fields is a text field that contains a numeric value. <strong>The</strong>se fields can contain anything from a simple<br />

constant value to a complete Smalltalk program. <strong>The</strong> value of the field is calculated when the <strong>Sound</strong><br />

that contains the field is compiled.<br />

<strong>The</strong>re are two types of value parameters: hot and cold. Cold parameters are fixed values, set when you<br />

first load the <strong>Sound</strong> and never altered again. Cold parameter values can be constants, variables, or<br />

Smalltalk expressions that evaluate to constant values. Hot parameters can be continuously updated even<br />

after the <strong>Sound</strong> has been loaded into the signal processor. Using hot parameters, you can control <strong>Kyma</strong><br />

<strong>Sound</strong> parameters in real time. Hot parameter fields can be identified by their light cyan background<br />

color and italicized parameter names. Hot parameter fields can take all the same kinds of values that cold<br />

parameters can; in addition, they can be controlled by Event Values or the output of other <strong>Kyma</strong> <strong>Sound</strong>s.<br />

See Event Values, Virtual Control Surface, and Global Map on page 472 <strong>for</strong> more in<strong>for</strong>mation.<br />

Duration and Sample are cold parameters; Frequency, Gate, etc. are hot parameters.<br />

469

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

Saved successfully!

Ooh no, something went wrong!