Inline: Out of Time - Positional Sound

Goal

Simulate basic distance and position driven acoustic properties including stereo panning, inverse-square law, and Doppler effect.

Notes

Algorithm

Driving Data:

Logic:

Each frame:

Figures

Pan

Linear relationship between pan and horizontal distance between the source and listener. Linear relationship between pan and horizontal distance between the source and listener.

\[\mathit{pan} = \frac{\mathit{source\ x} - \mathit{listener\ x}}{\mathit{width}}\]

Volume Scale

Relationship between volume scale and distance between the source and listener. Relationship between volume scale and distance between the source and listener.

\[\mathit{volume} \mathrel{*}= \frac{(\mathit{width} - \mathit{distance})^3}{(2 * \mathit{width})^3} + 0.5\]

Frequency Offset

Linear relationship between frequency scale offset and distance between the source and listener. Linear relationship between frequency scale offset and distance between the source and listener.

\[\mathit{frequency} \mathrel{-}= \frac{\Delta \mathit{distance}}{(2 * \mathit{width})}\]

Note that because the calculation result is subtracted from the frequency multiplier, the audible result is the inverse of the illustration above.

Related Posts