Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

Commonmark migration
Source Link

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.

Source Link
12Me21
  • 6.8k
  • 1
  • 23
  • 40

#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.

AltStyle によって変換されたページ (->オリジナル) /