SmileBASIC, 84 bytes
INPUT F
N=LOG(F/440,POW(2,1/12))+57BGMPLAY FORMAT$("@D%D@255T12N%D",(N-(N<<0))*63,N)
#SmileBASIC, 84 bytes INPUT F N=LOG(F/440,POW(2,1/12))+57BGMPLAY FORMAT$("@D%D@255T12N%D",(N-(N<<0))*63,N) ConvertsConverts from Hz to half steps, and plays the a certain note with the a detune value to produce the frequency.
#SmileBASIC, 84 bytes INPUT F N=LOG(F/440,POW(2,1/12))+57BGMPLAY FORMAT$("@D%D@255T12N%D",(N-(N<<0))*63,N) Converts from Hz to half steps, and plays the a certain note with the a detune value to produce the frequency.
SmileBASIC, 84 bytes
INPUT F
N=LOG(F/440,POW(2,1/12))+57BGMPLAY FORMAT$("@D%D@255T12N%D",(N-(N<<0))*63,N)
Converts from Hz to half steps, and plays the a certain note with the a detune value to produce the frequency.