Added sine volume mapping as described in #50 and factored the volume conversion into its own function which will also handle the calculation of volume for collisions between balls, when sound is added for those collisions.
As an aside, this branch also fixes the leading comment tag in index.html which had an extraneous ! character that could cause editors to think the entire file was commented.
Added sine volume mapping as described in #50 and factored the volume conversion into its own function which will also handle the calculation of volume for collisions between balls, when sound is added for those collisions.
As an aside, this branch also fixes the leading comment tag in index.html which had an extraneous
!
character that could cause editors to think the entire file was commented.