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.

SpectralShape<br />

Spectral Sources Category<br />

A SpectralShape sets the frequencies and amplitudes of oscillators in an OscillatorBank according to the<br />

Spacing and SpectralEnvelope parameters. This kind of <strong>Sound</strong> makes sense only when used as an<br />

Input to an OscillatorBank. Frequencies are output on the right channel and their corresponding<br />

amplitudes are output on the left channel.<br />

Frequency<br />

<strong>The</strong> frequency can be specified in units of pitch or frequency. <strong>The</strong> following are all ways to specify the A<br />

above middle C:<br />

440 hz (in hertz or cycles per second)<br />

4 a (as the 4th octave A)<br />

69 nn (as a MIDI notenumber)<br />

4 c + 9 nn (as 9 half steps above middle C)<br />

1.0 / 0.00227273 s (inverse of a period at 44.1 kHz sample rate)<br />

<strong>The</strong> following are examples of how to control the frequency using MIDI, the virtual control surface, or a<br />

third-party program:<br />

!Pitch (key number plus pitch bend)<br />

!KeyNumber nn (MIDI notenumber)<br />

4 c + (!Frequency * 9 nn) (continuous controller from 4 c to 4 a)<br />

Spacing<br />

This is the spacing between the partials and should be specified in units of frequency. To specify<br />

harmonic partials, set the Spacing to be the same as the Frequency. For example, if you have set<br />

Frequency to !KeyNumber nn, then setting Spacing to !KeyNumber nn will tell the OscillatorBank to<br />

generate harmonics of !KeyNumber nn.<br />

NbrPartials<br />

This is the number of (amplitude,frequency) pairs that the SpectralShape will supply to an OscillatorBank.<br />

For example, if there are 20 partials, this <strong>Sound</strong> will output the amp1 and freq1 on the first sample, amp2<br />

and freq2 on the second sample, and on through amp20 and freq20 on the 20th sample. <strong>The</strong>n it will start<br />

over again with amp1 and freq1.<br />

Wavetable<br />

<strong>The</strong> shape stored in this wavetable is interpreted as the shape of the spectrum, from 0 hz up to half the<br />

sampling rate. An OscillatorBank can use this table to set the amplitude of each of its oscillators<br />

according to that oscillator’s frequency. For example, if the frequency falls in a region with a low<br />

amplitude in this table, it will be attenuated in the OscillatorBank. To see the spectral envelope, open this<br />

file using File open with the file type set to Samples file. If the OscillatorBank wave<strong>for</strong>m is Sine, and you<br />

have chosen harmonic spacing, then this shape will be something like a filter acting on a bandlimited<br />

pulse train (equal amplitude, harmonically spaced sine waves).<br />

Scale<br />

Used as an overall amplitude scale applied equally to all of the oscillators.<br />

352

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

Saved successfully!

Ooh no, something went wrong!