graphic-processing-site-examples-Libraries-Minim--Sound--GetSetPan-GetSetPan.pde / pde
Get Set Pan by Damien Di Fede. This sketch demonstrates how to use the <code>getPan</code> and <code>setPan</code> methods of a <code>Controller</code> object. The class used here is an <code>AudioOutput</code> but you can also get and set the pan of <code>AudioSample</code>, <code>AudioSnippet</code>, <code>AudioInput</code>, and <code>AudioPlayer</code> objects. <code>getPan</code> and <code>setPan</code> will get and set the pan of the <code>DataLine</code> that is being used for input or output, but only if that line has a pan control. A <code>DataLine</code> is a low-level JavaSound class that is used for sending audio to, or receiving audio from, the audio system. You will notice in this sketch that you will hear the pan changing (if it's available) but you will not see any difference in the waveform being drawn. The reason for this is that what you see in the output's sample buffers is what it sends to the audio system. The system makes the pan change after receiving the samples.
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.