Created
October 30, 2015 22:27
-
-
Save krin-san/ef6b8b1e501ad4a82902 to your computer and use it in GitHub Desktop.
Happy Birthday song played using a speaker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:beep frequency=264 length=250ms; | |
:delay 500ms; | |
:beep frequency=264 length=250ms; | |
:delay 250ms; | |
:beep frequency=297 length=1000ms; | |
:delay 250ms; | |
:beep frequency=264 length=1000ms; | |
:delay 250ms; | |
:beep frequency=352 length=1000ms; | |
:delay 250ms; | |
:beep frequency=330 length=2000ms; | |
:delay 500ms; | |
:beep frequency=264 length=250ms; | |
:delay 500ms; | |
:beep frequency=264 length=250ms; | |
:delay 250ms; | |
:beep frequency=297 length=1000ms; | |
:delay 250ms; | |
:beep frequency=264 length=1000ms; | |
:delay 250ms; | |
:beep frequency=396 length=1000ms; | |
:delay 250ms; | |
:beep frequency=352 length=2000ms; | |
:delay 500ms; | |
:beep frequency=264 length=250ms; | |
:delay 500ms; | |
:beep frequency=264 length=250ms; | |
:delay 250ms; | |
:beep frequency=264 length=1000ms; | |
:delay 250ms; | |
:beep frequency=440 length=1000ms; | |
:delay 250ms; | |
:beep frequency=352 length=500ms; | |
:delay 250ms; | |
:beep frequency=352 length=250ms; | |
:delay 250ms; | |
:beep frequency=330 length=1000ms; | |
:delay 250ms; | |
:beep frequency=297 length=2000ms; | |
:delay 500ms; | |
:beep frequency=466 length=250ms; | |
:delay 500ms; | |
:beep frequency=466 length=250ms; | |
:delay 250ms; | |
:beep frequency=440 length=1000ms; | |
:delay 250ms; | |
:beep frequency=352 length=1000ms; | |
:delay 250ms; | |
:beep frequency=396 length=1000ms; | |
:delay 250ms; | |
:beep frequency=352 length=2000ms; | |
:delay 250ms; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
beep \ | |
-f 264 -l 250 -d 500 -n \ | |
-f 264 -l 250 -d 250 -n \ | |
-f 297 -l 1000 -d 250 -n \ | |
-f 264 -l 1000 -d 250 -n \ | |
-f 352 -l 1000 -d 250 -n \ | |
-f 330 -l 2000 -d 500 -n \ | |
-f 264 -l 250 -d 500 -n \ | |
-f 264 -l 250 -d 250 -n \ | |
-f 297 -l 1000 -d 250 -n \ | |
-f 264 -l 1000 -d 250 -n \ | |
-f 396 -l 1000 -d 250 -n \ | |
-f 352 -l 2000 -d 500 -n \ | |
-f 264 -l 250 -d 500 -n \ | |
-f 264 -l 250 -d 250 -n \ | |
-f 264 -l 1000 -d 250 -n \ | |
-f 440 -l 1000 -d 250 -n \ | |
-f 352 -l 500 -d 250 -n \ | |
-f 352 -l 250 -d 250 -n \ | |
-f 330 -l 1000 -d 250 -n \ | |
-f 297 -l 2000 -d 500 -n \ | |
-f 466 -l 250 -d 500 -n \ | |
-f 466 -l 250 -d 250 -n \ | |
-f 440 -l 1000 -d 250 -n \ | |
-f 352 -l 1000 -d 250 -n \ | |
-f 396 -l 1000 -d 250 -n \ | |
-f 352 -l 2000 -d 250 -n |
Thanks for the code. I use it on the my CircuitMess Ringo cell phone kit. I also merged it with some other code, and you will be credited when the file is run.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello! I used your beautiful code in the .mikrotik file and merged it with my own code to create a PowerShell program that plays the beep on a Windows computer with no external programs required. Right click the file and click "Run with PowerShell". Does NOT work without windows.
THANK YOU FOR YOUR FABULOUS CODE! You ARE CREDITED WHEN YOU RUN THE FILE.
File:
https://github.com/Helperbot3/RandomStuff/blob/master/bday_song_no_words.ps1