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.

to replace the old value. §<br />

<strong>The</strong>n use Ctrl+Space Bar to hear the results of your change.<br />

Frequency & Duration Fields<br />

Frequency, Duration or Time parameter fields require that you specify the units of frequency or time.<br />

Frequency can be specified in units of hz (<strong>for</strong> hertz), or nn (<strong>for</strong> note number) or specified as an octave<br />

number followed by the lettername of the pitch class (<strong>for</strong> example 4 c is middle C or MIDI note number<br />

60). Time and duration can be specified in units of s (seconds), ms (milliseconds), usec (microseconds),<br />

or longer durations like days. You can also type the word on (with no units) into a Duration field if you<br />

want the <strong>Sound</strong> to stay on <strong>for</strong>ever (actually, just 2 years). See Specifying Units in Parameter Fields on<br />

page 210 <strong>for</strong> a complete list of units.<br />

Any <strong>Sound</strong> that reads a file from disk (<strong>for</strong> example, a GenericSource, DiskPlayer, SumOfSines) can also<br />

read the “natural” or original duration of that file from the file header, so you can use some shortcuts in<br />

the Duration or Frequency fields.<br />

In these <strong>Sound</strong>s, you can use the word Default in either the Frequency or Duration fields (no units<br />

are required because Default is automatically in units of seconds <strong>for</strong> times or durations and units of<br />

hertz <strong>for</strong> frequencies). ‡ This specifies that the originally recorded frequency or duration should be used.<br />

§ It is one of the quirks of Smalltalk that you must include the leading zero whenever you type a fractional number. Try<br />

getting rid of the leading zero and recompiling the <strong>Sound</strong>. <strong>Kyma</strong> will put the error message Nothing more expected-><br />

into the parameter field. This is because Smalltalk interprets the decimal point as the period at the end<br />

of a statement, and it does not expect to see anything beyond the end of the statement.<br />

‡ Alternatively, you can use 0 s instead of Default in Duration fields, and 0 hz instead of Default in Fre-<br />

quency fields.<br />

36

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

Saved successfully!

Ooh no, something went wrong!