octoberclub/NetduinoDemo — pull request #1 by kenegozi (2013-12-05 07:50:14+00:00)
Title: bugfix - all sounds are C

n/12 is always zero | 0<=n<=11, so the result is always 261.6
easiest fix is to replace 12 with 12f.

also, instead of casting all double operands to float, we can cast just the end-result to float instead.