Problem of the Day
A new programming or logic puzzle every Mon-Fri

Sound Off

An easy objective for today. Using your favorite programming language create a program that makes a sound. For bonus points make multiple different tonal sounds.

Permalink: http://problemotd.com/problem/sound-off/

Comments:

  • Johnathan - 3┬áhours ago

    I tried to make a GUI for it with tkinter, but still don't have a good grasp on making them yet.

    import winsound
    
    while True:
        x = int(raw_input("enter a freqency between 300 and 500 and I will play it: "))
        if x >= 300 and x <= 500:
            winsound.Beep(x,1000)
    

    reply permalink

  • Johnathan - 3┬áhours ago

    Also be careful the sound could be kinda loud from this if you have it turned up and try running it.

    reply permalink

Content curated by @MaxBurstein