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.

Stereo Placement<br />

If a sound source is to your right or left, it is going to reach one of your ears be<strong>for</strong>e it reaches the other<br />

and by the time it reaches the second ear it will have lost energy — both because it has traveled further by<br />

then and because your head is probably blocking some of the energy. <strong>The</strong> bigger your head is, the more<br />

extreme the differences will be between the signal that reaches your left ear and the signal reaching your<br />

right ear.<br />

Amplitude vs Energy<br />

Play the <strong>Sound</strong> Pan amplitude and use the on-screen fader or a MIDI fader to control !Pan. § Compare<br />

that to energy pan1 and energy pan2. Do you hear a difference in the loudness or position as you pan<br />

across the speakers?<br />

That Space between your Ears<br />

Now try Pan phase only. <strong>The</strong> only difference between the left and right channels is the relative delay.<br />

<strong>The</strong>re is no amplitude difference between the left and right outputs. Double-click Pan phase only to take<br />

a look at what modules were used to construct it.<br />

You can see that a GenericSource is being fed into two different delays. <strong>The</strong>n the delays are fed into a<br />

ChannelJoiner: one into the left input of the ChannelJoiner, the other into the right input. A ChannelJoiner<br />

creates a stereo pair out of two inputs: the left channel of the one is routed entirely to the left<br />

side of the stereo pair, the right channel of the other is routed entirely to the right side of the stereo pair.<br />

(Since the right and left channels of the delay output are the same, it is immaterial which channel is read<br />

by the ChannelJoiner in this particular instance).<br />

Double-click on the <strong>Sound</strong> called RIGHT. Its Delay parameter specifies the maximum delay; DelayScale<br />

determines how much of that maximum delay time you want at any given moment. <strong>The</strong><br />

strange message normCos stands <strong>for</strong> normalized cosine. Since so many expressions involving cosine include<br />

a factor of π, that is automatically added when you ask <strong>for</strong> the normCos. In other words<br />

x normCos = (Float pi * x) cos<br />

So the expression<br />

(0.5 * !Pan) normCos<br />

yields the following delays <strong>for</strong> the right and left channels relative to the value of !Pan:<br />

!Pan (0.5 * !Pan) normCos Right Delay (0.5 * !Pan) normSin Left Delay<br />

0 1 800 usec 0 0 usec<br />

0.5 0.5 sqrt 565.6 usec 0.5 sqrt 565.6 usec<br />

1 0 0 usec 1 800 usec<br />

<strong>The</strong> only thing that you really hear is the difference between the two delays, so the effective interaural<br />

difference is 800 microseconds at the two extremes and zero when the sound source is directly in front of<br />

you (since it takes the same amount of time to get to both ears).<br />

Do a side-by-side (i.e. one-after-another) comparison of pan (phase & energy) against energy pan1. What,<br />

if any, effect does adding phase delays add to the pan?<br />

By the way, if you are interested in where the numbers come from, you can find papers on “interaural<br />

time differences” in the Journal of the Acoustical Society of America that explain how they come up with<br />

these time differences based on the diameter of a typical head, the speed of sound, and the assumption<br />

that the sound source is far enough away that you can consider lines drawn from the source to the two<br />

ears to be parallel.<br />

168

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

Saved successfully!

Ooh no, something went wrong!