13.07.2015 Views

Tutorials and Topics - Peabody Computer Music

Tutorials and Topics - Peabody Computer Music

Tutorials and Topics - Peabody Computer Music

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Tutorial 22MIDI Control:PanningTherefore, we"ll map the range of MIDI values 0 to 127 onto the range 0 to 0.25, <strong>and</strong> usethe result as an angle for looking up the cosine <strong>and</strong> sine values.Technical detail: As the sound source travels on a hypothetical arc from 0˚to 90˚ ( 1 /4 cycle around a circle with the listener at the center), the cosine ofits angle goes from 1 to 0 <strong>and</strong> the sine of its angle goes from 0 to 1. At allpoints along the way, the square of the cosine plus the square of the sineequals 1. This trigonometric identity is analogous to what we are trying toachieve—the sum of the squares of the amplitudes always equaling thesame intensity—so these values are a good way to obtain the relativeamplitudes necessary to simulate a constant distance between soundsource <strong>and</strong> listener.• Double-click on the p "constant distance xfade" object to open its Patcher window.MIDI values 0 to 127 are mapped onto 1/4 cycle of cosine <strong>and</strong> sine functionsOnce again we need to treat MIDI values greater than 64 differently from those less thanor equal to 64, in order to retain 64 as the “center” of the range. Once the MIDI value ismapped into the range 0 to 0.25, the result is used as a phase angle two cycle~ objects, onea cosine <strong>and</strong> the other (because of the additional phase offset of 0.75) a sine.• Close the subpatch window. Choose “Equal Distance Crossfade” from the umenu.Listen to the sound while panning it slowly from one channel to the other.Is the difference from the linear crossfade appreciable? Perhaps you don"t care whetherthe listener has the impression of movement in an arc when listening to the sound beingpanned. But the important point is that the equal distance method is preferable if only182

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

Saved successfully!

Ooh no, something went wrong!