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 read these settings, but you can’t modify the text, at least not by typing. <strong>The</strong> only way to alter<br />

this parameter is to change the settings of the faders in the virtual control surface, and to then press the<br />

button labeled Set to current event values found just below the EventValues parameter field.<br />

Proceeding ever leftward, let’s next double-click the module called LPF. If you don’t see a module to the<br />

left of 3 filtered saws, click on the small tab attached to the center of the left edge of the 3 filtered saws<br />

icon. This little tab with a right-pointing arrow in it indicates that a <strong>Sound</strong> has hidden. Click on the tab to<br />

show the <strong>Sound</strong>’s immediate inputs. Click again to hide the inputs of a <strong>Sound</strong>. To display all of the inputs<br />

of a <strong>Sound</strong> (i.e. all of its immediate inputs, the inputs to those inputs, etc.), click the tab while holding<br />

down the Control or Command key. You can use these tabs to keep your signal flow graphs uncluttered<br />

and easy to read, while still being able to edit any part of the graph when necessary. (See Editing the Signal<br />

Flow Diagram beginning on page 26 <strong>for</strong> more in<strong>for</strong>mation about using the signal flow diagram.)<br />

Here we get our first glimpse of some of the red Event Values we were controlling from the virtual control<br />

surface. This is a generic filter that you can set to lowpass, highpass, or allpass. This particular filter is<br />

set to lowpass, so it will tend to attenuate all frequencies in its input that are above the value in the Frequency<br />

field. <strong>The</strong> other parameters tell us that this is a fourth order filter and that an Event Value called<br />

!Feedback controls a parameter similar to the “resonance” control of analog filters. When you were experimenting<br />

with the faders in the virtual control surface you probably noticed that you could make the<br />

filter ring or even blow up by increasing the value of !Feedback.<br />

<strong>The</strong> expression in the Frequency field<br />

filter cutoff L * (!Cutoff * 11050 hz + 200 hz)<br />

indicates that, depending on the setting of !Cutoff, the maximum Frequency value will be between<br />

200 hz and 11250 hz. This maximum value is in turn multiplied by a <strong>Sound</strong> called filter cutoff that generates<br />

an envelope shape.<br />

To see how the envelope shape controlling the filter cutoff is generated, double-click the icon named filter<br />

cutoff. This is an ADSR (Attack time, initial Decay time, Sustain level, Release time) envelope generator.<br />

From the parameters we can tell that when the envelope generator is triggered by a MIDI key-down<br />

event, it goes from 0 to maximum amplitude with 10 milliseconds, drops to 75% of its maximum amplitude<br />

in the next 10 milliseconds, where it remains <strong>for</strong> as long as the key is held down, after which it drops<br />

back to zero in 5 seconds starting from when the key is released. So, as you already heard when you were<br />

experimenting earlier, each time you press a MIDI key, the filter opens up to allow more high frequencies<br />

to pass through, and when you release the key, the filter closes back down again.<br />

What input is LPF filtering? Double-click the icon called phatness. This is a Gain module that is set to<br />

multiply the amplitude of its input by ten. In this case, since the input is already a full-amplitude signal,<br />

the effect of the Gain will be to distort the signal by clipping it, turning it from a sawtooth-like wave<strong>for</strong>m<br />

into more of a square-shaped wave<strong>for</strong>m, and as a result, changing the timbre from something with all<br />

harmonics to something with only the odd harmonics.<br />

To see and hear this <strong>for</strong> yourself, select phatness and choose Oscilloscope from the Info menu. Leave all<br />

the other faders at zero, and type 0.01 into the field above the !Volume fader (and hit Enter). <strong>The</strong>n play<br />

some low pitches on the keyboard. Gradually increase !Volume using the fader until you see and hear<br />

the wave<strong>for</strong>m flatten out at the top and bottom because it hits the maximum amplitude. Notice that<br />

changing !Volume changes not just the loudness, but the timbre as well.<br />

To see how the spectrum is affected, make sure phatness is still selected, and choose Spectrum analyzer<br />

from the Info menu. ‡ Hold down C 6 on your keyboard (two octaves above middle C), and alternate the<br />

position of the !Volume fader between almost zero and almost one by clicking with the mouse towards<br />

the bottom and then towards the top of the fader. Notice how every other spectral line disappears when<br />

the signal is clipped? Try this a few times, listening to the change in timbre that accompanies this change<br />

in the spectrum. <strong>The</strong>re is another, more subtle effect you can observe on the spectrum: as soon as the<br />

wave<strong>for</strong>m is clipped, it has an infinitely sharp corner on it, and infinitely sharp corners have an infinite<br />

number of harmonics, so some of the short lines you see clustered around the harmonics are actually ali-<br />

‡ By the way, this explanation is not essential to understanding and using <strong>Kyma</strong> — it is just an interesting aside.<br />

90

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

Saved successfully!

Ooh no, something went wrong!