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.

FunctionGenerator<br />

Envelopes & Control Signals Category<br />

Reads the specified Wavetable <strong>for</strong> the specified OnDuration whenever it receives a Trigger.<br />

Useful <strong>for</strong> envelope generation or <strong>for</strong> reading recordings stored in the wavetable memory (see also the<br />

Sample prototype).<br />

In a prototype with an Envelope parameter field (Oscillator, <strong>for</strong> example) you can use the<br />

FunctionGenerator directly as the Envelope parameter. A FunctionGenerator can also be used to control<br />

other parameters (such as Frequency or OnDuration). To apply an envelope to any <strong>Sound</strong>, use the<br />

<strong>Sound</strong> and an envelope generator as Inputs to the VCA prototype. (<strong>The</strong> VCA simply multiplies its two<br />

inputs by each other).<br />

Trigger<br />

When the Trigger becomes nonzero, one event is triggered. You can trigger several events over the<br />

course of the total Duration of this program as long as the value of Trigger returns to zero be<strong>for</strong>e the next<br />

trigger. Some example values <strong>for</strong> Trigger are:<br />

1 (plays once with no retriggering)<br />

0 (the sound is silent, never triggered)<br />

!KeyDown (trigger on MIDI key down)<br />

!F1 (trigger when MIDI switch > 0)<br />

You can also paste another signal into this field, and events will be triggered every time that signal<br />

changes from zero to a nonzero value. (See the manual <strong>for</strong> a complete description of hot parameters,<br />

EventValues, EventSources, and Map files).<br />

OnDuration<br />

This is the duration of each triggered event. It should be the same length or shorter than the value in<br />

Duration (which is the total length of time that this program is available to be triggered). Think of Duration<br />

as analogous to the total lifetime of a piano string, and OnDuration as the duration of each individual note<br />

that you play on that piano string. <strong>The</strong> OnDuration must be greater than zero, and you must specify the<br />

units of time, <strong>for</strong> example:<br />

2 s (<strong>for</strong> 2 seconds)<br />

2 ms (<strong>for</strong> 2 milliseconds)<br />

200 usec (<strong>for</strong> 200 microseconds)<br />

2 m (<strong>for</strong> 2 minutes)<br />

2 h (<strong>for</strong> 2 hours)<br />

2 days<br />

2 samp (<strong>for</strong> 2 samples)<br />

1 / 2 hz (<strong>for</strong> the duration of one period of a 2 hz signal)<br />

Wavetable<br />

This is the name of the function that will be generated (or the sample that will be played) each time the<br />

FunctionGenerator is triggered.<br />

FromMemoryWriter<br />

Check FromMemoryWriter when the wavetable does not come from a disk file but is recorded by a<br />

MemoryWriter in real time.<br />

264

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

Saved successfully!

Ooh no, something went wrong!