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.

<strong>The</strong> Field Layout shows a miniature version of the <strong>Sound</strong> editor <strong>for</strong> this new class. Whenever you select<br />

a parameter, its position in the parameter fields is highlighted.<br />

Double check that Expand has a check mark in it. When checked, the Expand option will cause this new<br />

kind of <strong>Sound</strong> to expand be<strong>for</strong>e any trans<strong>for</strong>mations are applied to it. <strong>The</strong> significance of this will be explained<br />

in Parameter Trans<strong>for</strong>mers: Symbolic <strong>Sound</strong>s on page 198.<br />

Close the class editor and save an instance of this new class. <strong>The</strong> instance of your new class should appear<br />

highlighted in the file window; its name will be Stereo.<br />

Edit the new instance of class Stereo by double-clicking on it. Note the positions of the parameter fields<br />

on the bottom half of the <strong>Sound</strong> editor.<br />

Play the <strong>Sound</strong>. From the Modifiers category of the system prototypes window, drag Chopper into the<br />

Variable field. Play Stereo. Try entering different values <strong>for</strong> the Left parameter and play again. Click<br />

on the parameter label of the Left field. It will tell you that no help is available, but we will soon fix that.<br />

Close the <strong>Sound</strong> editor, saving the changes that you have just made. With Stereo still selected, choose Expand<br />

from the Action menu. Double-click on the new <strong>Sound</strong>, called StereoLocator, that appears in the<br />

<strong>Sound</strong> file window. Notice that this <strong>Sound</strong> is like the original Attenuator that we made the class out of,<br />

but this <strong>Sound</strong> has specific values assigned <strong>for</strong> the Left, Right, and Input parameters. When you play<br />

a <strong>Sound</strong>, it is first expanded to its most primitive components and then sent to the Capybara. You can use<br />

Expand from the Action menu to see how complex <strong>Sound</strong>s are actually constructed out of simpler component<br />

<strong>Sound</strong>s.<br />

Close the <strong>Sound</strong> editor. Select Stereo again, and choose Edit class from the Action menu. Edit class lets<br />

you edit an already existing class. From the Action menu, choose Retrieve example from class. This<br />

saves your original example <strong>Sound</strong> in the <strong>Sound</strong> file window. Go to the <strong>Sound</strong> file window and doubleclick<br />

on the <strong>Sound</strong> that was just retrieved. Notice that Retrieve example from class, unlike Expand, saves<br />

the original example <strong>Sound</strong> with the variables still in it. Close the example <strong>Sound</strong>, and go back to the<br />

class editor, so we can add some on-line help messages to the new class.<br />

193

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

Saved successfully!

Ooh no, something went wrong!