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.

When you paste a <strong>Sound</strong> into a parameter field, you see its name enclosed within a box to indicate that it<br />

is a control signal.<br />

At this point, the Frequency of the FormantBankOscillator is the output of the Oscillator. <strong>The</strong> output<br />

of a <strong>Sound</strong> is a kind of “stereo pair” that carries both the left and the right channel output. ‡ To indicate<br />

the right channel, use an R (<strong>for</strong> right) instead. To indicate a mix of the two channels, use an M (<strong>for</strong> mix).<br />

<strong>Sound</strong> outputs are in the range from -1 to 1, so we are requesting a frequency that ranges between MIDI<br />

note number -1 and MIDI note number 1. This does not make much sense, so let’s add a base pitch and<br />

use the variation between -1 and 1 as a deviation from that central pitch. To set the central pitch to second<br />

octave C, you could use:<br />

Oscillator1 L nn + 2 c<br />

Double-click in a white area of the signal flow editor to <strong>for</strong>ce an update. Now double-click the Oscillator,<br />

and change its frequency to a low value like 1 hz. (Note that the default wavetable <strong>for</strong> the Oscillator is<br />

Sine).<br />

Now select and play the FormantBankOscillator. You will hear its frequency vary in the shape of a sine<br />

wave between a half step below 2 c and a half step above.<br />

Draw<br />

What if you want to draw a shape, rather than rely on the shape of the Sine <strong>for</strong> your frequency deviation?<br />

Replace the Oscillator with a GraphicalEnvelope (from the Envelopes category of the prototypes).<br />

Double-click on it to see its parameters. In the Envelope field, use shift-click to add several more points<br />

and create an envelope that jogs up and down a few times. (Notice that the prototype GraphicalEnvelope<br />

is triggered by !KeyDown).<br />

‡ By default, the <strong>Sound</strong> name is followed by an L (<strong>for</strong> left), indicating that only the left channel should be used as a<br />

control signal.<br />

53

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

Saved successfully!

Ooh no, something went wrong!