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.