Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 408 Bytes

README.md

File metadata and controls

11 lines (8 loc) · 408 Bytes

Generates a sine wave of given frequency as audio stream.

Amplitude of for panning in stereo can be found using these
panValue can range from -1(left) to +1(right)

  • normBalance = ( panValue + 1.f ) * 0.5f;

  • leftAmp = (float)Math.cos( PI / 2 * normBalance );

  • rightAmp = (float)Math.sin( PI / 2 * normBalance );