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.

Attic<br />

<strong>The</strong> very top of the sample editor is an overview of the entire file. Drag the mouse across this overview to<br />

draw a gray box around any subpart of the file. <strong>The</strong> region enclosed in the gray box is what you see in the<br />

larger wave<strong>for</strong>m display below the line of buttons.<br />

Upstairs<br />

<strong>The</strong> large wave<strong>for</strong>m view is where you can select, copy, cut, paste, and trim sample files. It shows the familiar<br />

representation of a signal as amplitude versus time. To select the entire file, use Select all from the<br />

Edit menu (Ctrl+A). Select a sub-section by dragging the mouse across the desired portion of the wave<strong>for</strong>m<br />

(selections are shown within large red brackets). If you simply click on one point in time within the<br />

wave<strong>for</strong>m, it will mark an insertion point, rather than sweeping out a selection. An insertion point is indicated<br />

by a single, vertical red line that blinks like the insertion cursor in a text editor.<br />

Each of the buttons refers to the current, red-bracketed selection or insertion point.<br />

<strong>The</strong> left and right arrows will jump the display left or right by the size of the selection. <strong>The</strong> play button<br />

plays the selection. <strong>The</strong> disk button will replace the selection with the contents of a sample file that you<br />

select using a file dialog (or, if you have an insertion point rather than a selection, it will insert the entire<br />

contents of the other file at that point in this file). <strong>The</strong> magnifying glass button causes the current selection<br />

to fill the window in both the horizontal and vertical direction. All of the buttons with little<br />

wave<strong>for</strong>ms and arrows on them either stretch or compress the wave<strong>for</strong>m in the direction of the black arrows.<br />

And the ellipsis or et cetera button (…) handles some miscellaneous functions. One of the<br />

miscellaneous options is to inspect and/or edit the header in<strong>for</strong>mation in the sample file. <strong>The</strong> other is a<br />

button rather cryptically labeled as Display Lissajous which will display the wave<strong>for</strong>m in horizontal direction<br />

versus the same wave<strong>for</strong>m delayed by a specified number of samples in the vertical direction.<br />

Downstairs<br />

Spectrum Editor<br />

<strong>The</strong> lowest portion of the sample editor contains templates <strong>for</strong> generating wave<strong>for</strong>ms or functions. Select a<br />

template from the pop up list on the left. When you click the Insert button, the selected algorithm will<br />

generate a wave<strong>for</strong>m based upon the parameters that you have entered in the template, and if you have a<br />

selection in the wave<strong>for</strong>m view it will replace that selection with the newly generated wave<strong>for</strong>m.<br />

<strong>The</strong> Fourier template, <strong>for</strong> example, has fields <strong>for</strong> the duration of the wave<strong>for</strong>m, <strong>for</strong> the number of the<br />

harmonics that you would like to add together to create the wave<strong>for</strong>m, <strong>for</strong> the relative amplitudes and<br />

phases of each of the harmonics, and <strong>for</strong> an overall gain on the entire wave<strong>for</strong>m. To try it, first make sure<br />

the entire wave<strong>for</strong>m is selected in the wave<strong>for</strong>m window by clicking in the wave<strong>for</strong>m area and per<strong>for</strong>ming<br />

Select all (Ctrl+A), and then click the Insert button.<br />

And in the Basement…<br />

By now some of you are probably wondering how to write your own programs to generate arbitrary tables<br />

and store them as <strong>Kyma</strong> wavetables that can be indexed using the Waveshaper module. <strong>The</strong> answer<br />

lies deep at the bottom of the list of the templates where it says Programs. Here you can find a Smalltalk<br />

program corresponding to each of the template wave<strong>for</strong>m generators. Find the program closest to the one<br />

you would like to write, and alter it to do exactly what it is that you need. (If you have never programmed<br />

in Smalltalk be<strong>for</strong>e, you should first read <strong>The</strong> Smalltalk-80 <strong>Language</strong> on page 513.)<br />

One way to display a sound visually is as amplitude versus time as in the sample editor. Another is to<br />

display it as frequency and amplitude versus time as in the spectrum editor.<br />

Creating and Opening a Spectrum File<br />

Be<strong>for</strong>e you can display a <strong>Sound</strong> in the frequency domain, you must first create an analysis of the timedomain<br />

wave<strong>for</strong>m. <strong>The</strong> result of this analysis is a spectrum file which you can open and edit in the spec-<br />

64

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

Saved successfully!

Ooh no, something went wrong!