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.

Tap Tempo<br />

This file contains examples of <strong>Sound</strong>s that can, in various ways, match a tempo that you establish by tapping<br />

on the MIDI keyboard (or other MIDI controllers). You can use these <strong>Sound</strong>s as examples of how to<br />

set up your own <strong>Sound</strong>s <strong>for</strong> live per<strong>for</strong>mances with more than one per<strong>for</strong>mer (or <strong>for</strong> that matter, in any<br />

situation where you might have a need to measure the time it takes <strong>for</strong> someone to tap one key or switch<br />

followed by another).<br />

For example, select and play the <strong>Sound</strong> called tap tempo sample. As per the instructions that appear on<br />

the virtual control surface, tap the 2 C on your MIDI keyboard followed by the 2 D. <strong>The</strong> sample is triggered<br />

at the same rate at which you play the two keys on the keyboard. Listen to the tempo, and try<br />

playing something twice as fast or twice as slow.<br />

<strong>The</strong> Heart of the Clock<br />

Double-click the <strong>Sound</strong> called stop watch to see how you can use <strong>Kyma</strong> <strong>Sound</strong>s to measure time.<br />

<strong>The</strong> rightmost <strong>Sound</strong> is an Annotation; double-click it so you can read the explanation in the Text parameter:<br />

Play 2 c to start the clock, and 2 d to stop it. Its value is one tenth<br />

of the number of seconds between start and stop. 2 c triggers a FunctionGenerator<br />

to start a ramp that takes 10 s. 2 d triggers a<br />

TriggeredSampleAndHold on that ramp.<br />

In other words, suppose you have a friend who can run at an unerringly constant speed of 10 kilometers<br />

per hour. Imagine that you look at your watch, and at exactly 11:30 am, you yell, “Start!” Your friend<br />

starts running, and you follow alongside driving a car (not because you are lazy, just because the car has<br />

an odometer). After a while you yell “Stop,” slam on the brakes and read from the odometer that you<br />

have traveled 5 km. If your friend can really maintain a constant rate of 10 km per hour, then you know<br />

exactly how much time has passed without even looking at your watch. Since 5 km is one half of 10 km, it<br />

must have taken half an hour to run that far. So you let your friend get in the car and you go out to have<br />

lunch together.<br />

In this <strong>Sound</strong>, the FunctionGenerator is the person running. Double-click on it. <strong>The</strong> Wavetable is Ramp<br />

(a straight line from zero up to one) and the OnDuration is 10 s. <strong>The</strong> way to trigger this <strong>Sound</strong> is not by<br />

yelling “Start!” but by pressing MIDI key number 36, as you can see in the Trigger field:<br />

!KeyNumber eq: 36<br />

<strong>The</strong> way to yell “Stop!” and measure how far the ramp function got is seen in the next <strong>Sound</strong> to the right,<br />

the TriggeredSampleAndHold. Its Trigger<br />

!KeyNumber eq: 38<br />

170

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

Saved successfully!

Ooh no, something went wrong!