Code archives/Audio/Calculate Sound Pan
This code has been declared by its author to be Public Domain code.
Download source code
| |||||
Note: Formula has been tweaked slightly by Entity. | |||||
Function CalculateSoundPan#(iX%) ; Returns a value in the range -1 to 1 representing "iX" on the screen Return 2 * iX / Float(GraphicsWidth - 1) - 1 End Function |
Comments
None.
Code Archives Forum