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.

Click in a light area to draw a dark dot, and click in a dark area to draw a light dot. If you keep holding<br />

the mouse button down while you move the mouse around, you can draw dots continuously. Sometimes<br />

it helps to click in the zoom box of the class editor window, expanding the class editor size of the screen<br />

in order to get a larger area <strong>for</strong> editing. <strong>Design</strong> both the large and the small icon.<br />

Read the names listed in the Parameter field. Where have you seen these be<strong>for</strong>e? Apart from the name<br />

parameter, which is shared by all <strong>Sound</strong> classes, each parameter name corresponds to the name of a variable<br />

in the original example <strong>Sound</strong>: ?left, and Variable.<br />

Click on Variable in the Parameter field. This is the input of the new Stereo class. To ensure that only<br />

<strong>Sound</strong>s can be used <strong>for</strong> this parameter, select sound in the Type field. <strong>The</strong> types are listed alphabetically,<br />

and you can use the scroll bar to scroll through the list of types.<br />

You may have noticed that after you selected sound, the list of possible parameter field types changed.<br />

Try selecting a different Type temporarily and watch the Field field. Only those fields that are legal <strong>for</strong><br />

the selected parameter type are displayed in the Field field. Make sure that you have re-selected sound<br />

as the type <strong>for</strong> Variable.<br />

Now modify the location <strong>for</strong> Variable in the Field Rectangle field:<br />

0.5 @ 0 corner: 1 @ 0.8<br />

and press Enter. This places the field in a rectangle whose upper left corner is in the middle of the editor<br />

and flush with the top. <strong>The</strong> lower right corner is flush against the right edge and with the top of the class<br />

name field.<br />

<strong>The</strong> first pair of numbers is the x @ y location of the upper left of the rectangle, and the second pair of<br />

numbers is the x @ y location of its lower right. <strong>The</strong> point 0 @ 0 is the upper left corner of the right half of<br />

the <strong>Sound</strong> editor, and its lower right is 1 @ 1.<br />

<strong>The</strong>se numbers don’t represent specific units like pixels or centimeters; they represent the relative proportions<br />

of a rectangle within a unit (1 by 1) rectangle. Thus, if you wanted a parameter field to take up<br />

the bottom half of the entire area, you would specify an upper left corner of 0 @ 0.5 and a lower right<br />

corner of 1 @ 1.<br />

Return to the Parameter field, and select left. <strong>The</strong> value of left must lie within the range of zero to<br />

one, so select positiveScale in the Type field. (<strong>The</strong> range <strong>for</strong> each variable type is shown in Parameter<br />

Types and Ranges on page 540). For the Field Rectangle, enter<br />

0 @ 0 corner: 0.5 @ 0.25<br />

Notice how Field Layout is updated when you press the Enter key.<br />

Select Variable in the Parameter field, and take note of how the Field Layout changes. Alternate<br />

between selecting name, Variable, and left.<br />

192

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

Saved successfully!

Ooh no, something went wrong!