PDA

View Full Version : What is your favorite 'BEEP' song?



o0Chris0o
May 13th, 2009, 04:38 AM
Hey folks,

Just thought I would start a thread here about the program named "Beep". It is a command line application that will Beep your internal PC speaker. You can input a song or melody and it will play through the internal speaker.

I am pretty new and I couldn't really find many sites that had a selection, so I thought....HEY lets make a thread and see how many people will post their files :)

So if you have something you would like to share with us, feel free. I'm really looking forward to checking them all out :guitar:

here is one a buddy sent me.


taps.sh

G4='-f 392.00'
C5='-f 523.25'
E5='-f 659.26'
G5='-f 783.99'

whole='-l 2048'
dottedhalf='-l 1536'
half='-l 1024'
dottedquarter='-l 768'
quarter='-l 512'
dottedeighth='-l 384'
eighth='-l 256'
sixteenth='-l 128'

smallspace='-D 64'
longspace='-D 128'

beep \
$dottedeighth $G4 $smallspace -n \
$sixteenth $G4 $smallspace -n \
$dottedhalf $C5 $longspace -n \
$dottedeighth $G4 $smallspace -n \
$sixteenth $C5 $smallspace -n \
$dottedhalf $E5 $longspace -n \
$dottedeighth $G4 $smallspace -n \
$sixteenth $C5 $smallspace -n \
$quarter $E5 $smallspace -n \
$dottedeighth $G4 $smallspace -n \
$sixteenth $C5 $smallspace -n \
$quarter $E5 $smallspace -n \
$dottedeighth $G4 $smallspace -n \
$sixteenth $C5 $smallspace -n \
$dottedhalf $E5 $longspace -n \
$eighth $C5 $smallspace -n \
$eighth $E5 $smallspace -n \
$half $G5 $smallspace -n \
$quarter $E5 $smallspace -n \
$quarter $C5 $smallspace -n \
$dottedhalf $G4 $longspace -n \
$dottedeighth $G4 $smallspace -n \
$sixteenth $G4 $smallspace -n \
$whole $C5

o0Chris0o
May 13th, 2009, 08:41 PM
There has to be some beep fans out there!

baseface
May 13th, 2009, 08:45 PM
why would anyone really want to listen to "beep music" coming out of their crappy pc speaker? that would be annoying as hell.

steev182
May 13th, 2009, 09:07 PM
Beep by the Pussycat Dolls, they were so clever when they beep out the naughty words

nothingspecial
May 13th, 2009, 09:08 PM
I`m gonna become a beep fan!

scottuss
May 13th, 2009, 09:09 PM
why would anyone really want to listen to "beep music" coming out of their crappy pc speaker? that would be annoying as hell.

It's only a bit of fun! :p

argie
May 13th, 2009, 09:16 PM
I just wanted to say that this is awesome! Ha ha, it's awesome.

o0Chris0o
May 13th, 2009, 10:17 PM
why would anyone really want to listen to "beep music" coming out of their crappy pc speaker? that would be annoying as hell.

You don't understand, your not geeky or nerdy enough!

It is cool to do! Its nifty to show off to your friends and use a default system beep!

Tipped OuT
May 13th, 2009, 10:18 PM
You don't understand, your not geeky or nerdy enough!

It is cool to do! Its nifty to show off to your friends and use a default system beep!

Uhhh...

o0Chris0o
May 14th, 2009, 03:34 AM
Uhhh...

If your only going to say a few words, you shouldn't waste posting to a thread. [-X

dagrump
May 14th, 2009, 04:32 AM
Pot meet Kettle

LightB
May 14th, 2009, 04:38 AM
Hah, reminds me of some dweeby as hell thing me and some people used to do at a computer lab. Can you say beep symphony? It's very similar to sequencing midi by hand and I used to do that.

o0Chris0o
May 14th, 2009, 04:48 AM
Hah, reminds me of some dweeby as hell thing me and some people used to do at a computer lab. Can you say beep symphony? It's very similar to sequencing midi by hand and I used to do that.

Yeah, its fun to play around with. I see not many people think so though.

I don't like your quote btw, but thats for another disccussion somewhere else.

LightB
May 14th, 2009, 05:07 AM
Yeah, its fun to play around with. I see not many people think so though.

I don't like your quote btw, but thats for another disccussion somewhere else.

Quote??

Tipped OuT
May 14th, 2009, 05:18 AM
Beep Boop Bop Beep Beep Bop Boop Beep Beep

LightB
May 14th, 2009, 05:22 AM
Beep Boop Bop Beep Beep Bop Boop Beep Beep

Mars People?

Rob@ThePCWiz.info
January 31st, 2010, 10:11 AM
Could someone write funky town for me? i want to use it when i join irc channels...
just put it in code like


beep -f ### -l ###; beep -f ### -l ###
and so on

Khakilang
January 31st, 2010, 10:42 AM
Huh! I use to do that on a DOS machine. But already lost touch when Window appear. That's cool.

RATM_Owns
January 31st, 2010, 02:47 PM
If someone made a beep version of Cannibal Corpse's "Frantic Disembowelment", I'm sure I'd love it.

Kai69
January 31st, 2010, 02:52 PM
UK version of the Jerry Springer show anyone Beep Beep you Beep lol:lolflag:

Sporkman
January 31st, 2010, 03:33 PM
why would anyone really want to listen to "beep music" coming out of their crappy pc speaker? that would be annoying as hell.

For the same reason people like ASCII art (http://sporkforge.com/imaging/ascii.php). It's old-school geek fun.

chriswyatt
January 31st, 2010, 07:49 PM
I had to do this first to enable the speaker:


sudo modprobe pcspkr

Rob@ThePCWiz.info
January 31st, 2010, 07:58 PM
C'mon somebody has gotta be able to do funky town and cannibal corpses.

chriswyatt
January 31st, 2010, 08:26 PM
Why not do it yourself?

coolbrook
February 1st, 2010, 06:36 PM
What Happened to that Boy (http://www.youtube.com/watch?v=FoQVLVY3js8) - Baby feat. Clipse

Used to be my MP3 ringtone. I'll give it a try when I get a chance and see if I can get it to play at start up.

aaaantoine
February 1st, 2010, 06:51 PM
Not, "Beep", but "Beep Beep (http://www.youtube.com/watch?v=D4W7oZBhAJg)"...

On topic: this sort of thing used to be up my alley, but that was a time before sound cards. :P

chriswyatt
February 1st, 2010, 09:22 PM
Beep boop boop bop? Boo boo beep bop? Not beep boo boo beep?

http://www.youtube.com/watch?v=YSfleHFmUg0

http://www.youtube.com/watch?v=U3BITkgUoms

binarypearl
March 22nd, 2010, 04:37 AM
I expanded upon one of the original posters who posted a script to play Taps. The perl script below has 4 songs, 1 original I wrote a while ago, 2 covers, and Taps from the original post in this tread. To run this script you need 3 things:

1. A computer with a PC speaker
2. The `beep` command
3. perl


Songs:
1. Bass Warmup
2. On To Zanarkand
3. Entry of the Gladiators "aka Circus theme song"
4. Taps

I saw some posts about wanting a Cannibal Corpse song, and something else, too drunk to go back to right now. We'll see what we can do, maybe get some Emperor songs in beep too :)

Enjoy!

--Shaun



#!/usr/bin/perl

use strict;

# beep.pl : A menu and CLI based script to play songs through your PC speaker
#
# Don't know exactly howto document this code as GPL, but this code is GPL friendly :)
#
# Author: binarypearl
#
# Versions:
# 0.01 - SMM - 03/21/2010
# Contains 4 songs. The first is original, the 2nd and 3rd are covers, and the 4th (taps) was taken from
# a forum in ubuntuforums.org; where I learned some of the details to make
# the other songs.
#

use Getopt::Long;

my $version = "0.01";
my $version_flag = "";

my $user_input = "";
my $song_requested = "";

GetOptions (
"song:s" => \$song_requested,
"version" => \$version_flag,
);

# Octave 0
my $CN0 = "-f 16.35";
my $CS0 = my $Db0 = "-f 17.32";
my $DN0 = "-f 18.35";
my $DS0 = my $Eb0 = "-f 19.45";
my $EN0 = "-f 20.60";
my $FN0 = "-f 21.83";
my $FS0 = my $Gb0 = "-f 23.12";
my $GN0 = "-f 24.50";
my $GS0 = my $Ab0 = "-f 25.96";
my $AN0 = "-f 27.50";
my $AS0 = my $Bb0 = "-f 29.14";
my $BN0 = "-f 30.87";

# Octave 1
my $CN1 = "-f 32.70";
my $CS1 = my $Db1 = "-f 34.65";
my $DN1 = "-f 36.71";
my $DS1 = my $Eb1 = "-f 38.89";
my $EN1 = "-f 41.20";
my $FN1 = "-f 43.65";
my $FS1 = my $Gb1 = "-f 46.25";
my $GN1 = "-f 49.00";
my $GS1 = my $Ab1 = "-f 51.91";
my $AN1 = "-f 55.00";
my $AS1 = my $Bb1 = "-f 58.27";
my $BN1 = "-f 61.74";

# Octave 2
my $CN2 = "-f 65.41";
my $CS2 = my $Db2 = "-f 69.30";
my $DN2 = "-f 73.42";
my $DS2 = my $Eb2 = "-f 77.78";
my $EN2 = "-f 82.41";
my $FN2 = "-f 87.31";
my $FS2 = my $Gb2 = "-f 92.50";
my $GN2 = "-f 98.00";
my $GS2 = my $Ab2 = "-f 103.83";
my $AN2 = "-f 110.00";
my $AS2 = my $Bb2 = "-f 116.54";
my $BN2 = "-f 123.47";

# Octave 3
my $CN3 = "-f 130.81";
my $CS3 = my $Db3 = "-f 138.59";
my $DN3 = "-f 146.83";
my $DS3 = my $Eb3 = "-f 155.56";
my $EN3 = "-f 164.81";
my $FN3 = "-f 174.61";
my $FS3 = my $Gb3 = "-f 185.00";
my $GN3 = "-f 196.00";
my $GS3 = my $Ab3 = "-f 207.65";
my $AN3 = "-f 220.00";
my $AS3 = my $Bb3 = "-f 233.08";
my $BN3 = "-f 246.94";

# Octave 4
my $CN4 = "-f 261.63";
my $CS4 = my $Db4 = "-f 277.63";
my $DN4 = "-f 293.66";
my $DS4 = my $Eb4 = "-f 311.13";
my $EN4 = "-f 329.63";
my $FN4 = "-f 349.23";
my $FS4 = my $Gb4 = "-f 369.99";
my $GN4 = "-f 392.00";
my $GS4 = my $Ab4 = "-f 415.30";
my $AN4 = "-f 440.00";
my $AS4 = my $Bb4 = "-f 466.16";
my $BN4 = "-f 493.88";

# Octave 5
my $CN5 = "-f 523.25";
my $CS5 = my $Db5 = "-f 554.37";
my $DN5 = "-f 587.33";
my $DS5 = my $Eb5 = "-f 622.25";
my $EN5 = "-f 659.26";
my $FN5 = "-f 698.46";
my $FS5 = my $Gb5 = "-f 739.99";
my $GN5 = "-f 783.99";
my $GS5 = my $Ab5 = "-f 830.61";
my $AN5 = "-f 880.00";
my $AS5 = my $Bb5 = "-f 932.33";
my $BN5 = "-f 987.77";

# Octave 6
my $CN6 = "-f 1046.50";
my $CS6 = my $Db6 = "-f 1108.73";
my $DN6 = "-f 1174.66";
my $DS6 = my $Eb6 = "-f 1244.51";
my $EN6 = "-f 1318.51";
my $FN6 = "-f 1396.91";
my $FS6 = my $Gb6 = "-f 1479.98";
my $GN6 = "-f 1567.98";
my $GS6 = my $Ab6 = "-f 1661.22";
my $AN6 = "-f 1760.00";
my $AS6 = my $Bb6 = "-f 1864.66";
my $BN6 = "-f 1975.53";

# Octave 7
my $CN7 = "-f 2093.00";
my $CS7 = my $Db7 = "-f 2217.46";
my $DN7 = "-f 2349.32";
my $DS7 = my $Eb7 = "-f 2489.02";
my $EN7 = "-f 2637.02";
my $FN7 = "-f 2793.83";
my $FS7 = my $Gb7 = "-f 2959.96";
my $GN7 = "-f 3135.96";
my $GS7 = my $Ab7 = "-f 3322.44";
my $AN7 = "-f 3520.00";
my $AS7 = my $Bb7 = "-f 3729.31";
my $BN7 = "-f 3951.07";

# Octave 8 (Don't know all of it)
my $CN8 = "-f 4186.01";
my $CS8 = my $Db8 = "-f 4434.92";
my $DN8 = "-f 4698.64";
my $DS8 = my $Eb8 = "-f 4978.03";

my $whole='-l 2048';
my $dottedhalf='-l 1536';
my $half='-l 1024';
my $dottedquarter='-l 768';
my $quarter='-l 512';
my $dottedeighth='-l 384';
my $eighth='-l 256';
my $sixteenth='-l 128';

my $super_small='-D 32';
my $smallspace='-D 64';
my $longspace='-D 128';

if ($version_flag) {
system ("clear");
print "beep.pl: $version\n";
exit 0;
}

while (1) {
print_header();
display_menu();
}

sub print_header() {
system ("clear");
print "----------"x10;
print "\nBeep song menu\tversion: $version\n";
print "----------"x10;
print "\n\n";
}

sub display_menu() {
print "1. Bass warmup\n";
print "2. On to Zanarkand\n";
print "3. Entry of the Gladiators\n";
print "4. Taps\n";
print "Q. Quit / Exit\n";

print "\nSong to play: ";

chomp ($song_requested);

if ($song_requested ne "") {
$user_input = $song_requested;
#print "***$song_requested***\n";
determine_song();
$song_requested = "";
}

else {
get_user_input();
determine_song();
}
}

sub get_user_input() {
$user_input = <>;
chomp ($user_input);
}

sub determine_song() {

if ($user_input == 1) {
base_warmup();
}

elsif ($user_input == 2) {
on_to_zanarkand();
}

elsif ($user_input == 3) {
entry_of_the_gladiators();
}

elsif ($user_input == 4) {
taps();
}


elsif ($user_input eq 'q' || $user_input eq 'Q') {
print "\nThanks to play Zpong\n";
exit 0;
}
}

# SONGS
# REMEMBER TO PUT A SPACE AFTER EACH -n !!!
# Otheriwse the song won't play
#
# REMEMBER TO NOT have a -n on the last note. Otherwise you get an aditional, unintentional beep at the end

sub taps() {
my $song = join (":", <<SONG =~ /(.+)/g);
$dottedeighth $GN4 $smallspace -n
$sixteenth $GN4 $smallspace -n
$dottedhalf $CN5 $longspace -n
$dottedeighth $GN4 $smallspace -n
$sixteenth $CN5 $smallspace -n
$dottedhalf $EN5 $longspace -n
$dottedeighth $GN4 $smallspace -n
$sixteenth $CN5 $smallspace -n
$quarter $EN5 $smallspace -n
$dottedeighth $GN4 $smallspace -n
$sixteenth $CN5 $smallspace -n
$quarter $EN5 $smallspace -n
$dottedeighth $GN4 $smallspace -n
$sixteenth $CN5 $smallspace -n
$dottedhalf $EN5 $longspace -n
$eighth $CN5 $smallspace -n
$eighth $EN5 $smallspace -n
$half $GN5 $smallspace -n
$quarter $EN5 $smallspace -n
$quarter $CN5 $smallspace -n
$dottedhalf $GN4 $longspace -n
$dottedeighth $GN4 $smallspace -n
$sixteenth $GN4 $smallspace -n
$whole $CN5
SONG
`beep $song`;
}

sub entry_of_the_gladiators() {
my $song = join (":", <<SONG =~ /(.+)/g);
#=INTRO========================================
$dottedquarter $EN5 $super_small -n
$sixteenth $EN5 $super_small -n
$sixteenth $EN5 $super_small -n

$dottedquarter $EN5 $super_small -n
$sixteenth $EN5 $super_small -n
$sixteenth $EN5 $super_small -n

$sixteenth $EN5 $super_small -n
$sixteenth $Eb5 $super_small -n
$sixteenth $DN5 $super_small -n
$sixteenth $Db5 $super_small -n
$sixteenth $CN5 $super_small -n
$sixteenth $BN4 $super_small -n
$sixteenth $Bb4 $super_small -n
$sixteenth $AN4 $super_small -n
$sixteenth $Ab4 $super_small -n
$sixteenth $GN4 $super_small -n
$sixteenth $Gb4 $super_small -n
$sixteenth $FN4 $super_small -n
$sixteenth $EN4 $super_small -n
$sixteenth $Eb4 $super_small -n
$sixteenth $DN4 $super_small -n
$sixteenth $CS4 $super_small -n
#-----------------------------------------------
$dottedquarter $FS5 $super_small -n
$sixteenth $FS5 $super_small -n
$sixteenth $FS5 $super_small -n

$dottedquarter $FS5 $super_small -n
$sixteenth $FS5 $super_small -n
$sixteenth $FS5 $super_small -n

$sixteenth $FS5 $super_small -n
$sixteenth $FN5 $super_small -n
$sixteenth $EN5 $super_small -n
$sixteenth $Eb5 $super_small -n
$sixteenth $DN5 $super_small -n
$sixteenth $Db5 $super_small -n
$sixteenth $CN5 $super_small -n
$sixteenth $BN4 $super_small -n
$sixteenth $Bb4 $super_small -n
$sixteenth $AN4 $super_small -n
$sixteenth $Ab4 $super_small -n
$sixteenth $GN4 $super_small -n
$sixteenth $FS4 $super_small -n
$sixteenth $FN4 $super_small -n
$sixteenth $EN4 $super_small -n
$sixteenth $DS4 $super_small -n
#------------------------------------------
$dottedquarter $GN5 $super_small -n
$sixteenth $GN5 $super_small -n
$sixteenth $GN5 $super_small -n

$dottedquarter $GN5 $super_small -n
$sixteenth $GN5 $super_small -n
$sixteenth $GN5 $super_small -n

#=Intro to part A===========================
$sixteenth $GN4 $super_small -n
$sixteenth $GS4 $super_small -n
$sixteenth $AN4 $super_small -n
$sixteenth $AS4 $super_small -n
$sixteenth $BN4 $super_small -n
$sixteenth $CN5 $super_small -n
$sixteenth $CS5 $super_small -n
$sixteenth $DN5 $super_small -n
$sixteenth $DS5 $super_small -n
$sixteenth $EN5 $super_small -n
$sixteenth $FN5 $super_small -n
$sixteenth $FS5 $super_small -n
$sixteenth $GN5 $super_small -n
$sixteenth $GS5 $super_small -n
$sixteenth $AN5 $super_small -n
$sixteenth $BN5 $super_small -n

#=Part A===================================

$eighth $CN6 $super_small -n
$eighth $BN5 $super_small -n
$sixteenth $Bb5 $super_small -n
$sixteenth $BN5 $super_small -n
$sixteenth $Bb5 $super_small -n
$sixteenth $AN5 $super_small -n

$eighth $Ab5 $super_small -n
$eighth $GN5 $super_small -n
$eighth $FS5 $super_small -n
$eighth $GN5 $super_small -n

$eighth $AN5 $super_small -n
$eighth $Ab5 $super_small -n
$sixteenth $GN5 $super_small -n
$sixteenth $Ab5 $super_small -n
$sixteenth $GN5 $super_small -n
$sixteenth $FS5 $super_small -n

$eighth $FN5 $super_small -n
$eighth $EN5 $super_small -n
$eighth $DS5 $super_small -n
$eighth $EN5 $super_small -n

$sixteenth $GN5 $longspace -n
$sixteenth $FN5 $super_small -n
$sixteenth $FN5 $super_small -n
$eighth $CS5 $super_small -n
$eighth $DN5 $super_small -n

$sixteenth $GN5 $longspace -n
$sixteenth $FN5 $super_small -n
$sixteenth $FN5 $super_small -n
$eighth $CS5 $super_small -n
$eighth $DN5 $super_small -n

$sixteenth $BN4 $super_small -n
$sixteenth $CN5 $super_small -n
$sixteenth $CS5 $super_small -n
$sixteenth $DN5 $super_small -n
$sixteenth $DS5 $super_small -n
$sixteenth $EN5 $super_small -n
$sixteenth $FN5 $super_small -n
$sixteenth $FS5 $super_small -n
$sixteenth $GN5 $super_small -n
$sixteenth $GS5 $super_small -n
$sixteenth $AN5 $super_small -n
$sixteenth $BN5 $super_small -n
$eighth $AN5 $super_small -n
$eighth $GN5 $super_small -n
#=Part A2==========================================
$eighth $CN6 $super_small -n
$eighth $BN5 $super_small -n
$sixteenth $Bb5 $super_small -n
$sixteenth $BN5 $super_small -n
$sixteenth $Bb5 $super_small -n
$sixteenth $AN5 $super_small -n

$eighth $Ab5 $super_small -n
$eighth $GN5 $super_small -n
$eighth $FS5 $super_small -n
$eighth $GN5 $super_small -n

$eighth $AN5 $super_small -n
$eighth $Ab5 $super_small -n
$sixteenth $GN5 $super_small -n
$sixteenth $Ab5 $super_small -n
$sixteenth $GN5 $super_small -n
$sixteenth $FS5 $super_small -n

$eighth $FN5 $super_small -n
$eighth $EN5 $super_small -n
$eighth $DS5 $super_small -n
$eighth $EN5 $super_small -n

# Ending 1
$eighth $DS5 $super_small -n
$sixteenth $DS5 $super_small -n
$sixteenth $DS5 $super_small -n
$eighth $FS5 $super_small -n
$eighth $BN4 $super_small -n

$sixteenth $GN5 $super_small -n
$sixteenth $AN5 $super_small -n
$sixteenth $GN5 $super_small -n
$sixteenth $FS5 $super_small -n
$eighth $EN5 $super_small -n
$eighth $BN4 $super_small -n

$eighth $BN5 $super_small -n
$sixteenth $BN5 $super_small -n
$sixteenth $BN5 $super_small -n
$eighth $BN5 $super_small -n
$eighth $BN5 $super_small -n

$sixteenth $BN5 $super_small -n
$sixteenth $BN5 $super_small -n
$sixteenth $BN5 $super_small -n
$sixteenth $BN5 $super_small -n
$sixteenth $BN5 $super_small -n
$sixteenth $BN5 $super_small -n
$eighth $BN5 $super_small -n

#=Part A===================================

$eighth $CN6 $super_small -n
$eighth $BN5 $super_small -n
$sixteenth $Bb5 $super_small -n
$sixteenth $BN5 $super_small -n
$sixteenth $Bb5 $super_small -n
$sixteenth $AN5 $super_small -n

$eighth $Ab5 $super_small -n
$eighth $GN5 $super_small -n
$eighth $FS5 $super_small -n
$eighth $GN5 $super_small -n

$eighth $AN5 $super_small -n
$eighth $Ab5 $super_small -n
$sixteenth $GN5 $super_small -n
$sixteenth $Ab5 $super_small -n
$sixteenth $GN5 $super_small -n
$sixteenth $FS5 $super_small -n

$eighth $FN5 $super_small -n
$eighth $EN5 $super_small -n
$eighth $DS5 $super_small -n
$eighth $EN5 $super_small -n

$sixteenth $GN5 $longspace -n
$sixteenth $FN5 $super_small -n
$sixteenth $FN5 $super_small -n
$eighth $CS5 $super_small -n
$eighth $DN5 $super_small -n

$sixteenth $GN5 $longspace -n
$sixteenth $FN5 $super_small -n
$sixteenth $FN5 $super_small -n
$eighth $CS5 $super_small -n
$eighth $DN5 $super_small -n

$sixteenth $BN4 $super_small -n
$sixteenth $CN5 $super_small -n
$sixteenth $CS5 $super_small -n
$sixteenth $DN5 $super_small -n
$sixteenth $DS5 $super_small -n
$sixteenth $EN5 $super_small -n
$sixteenth $FN5 $super_small -n
$sixteenth $FS5 $super_small -n
$sixteenth $GN5 $super_small -n
$sixteenth $GS5 $super_small -n
$sixteenth $AN5 $super_small -n
$sixteenth $BN5 $super_small -n
$eighth $AN5 $super_small -n
$eighth $GN5 $super_small -n
#=Part A2==========================================
$eighth $CN6 $super_small -n
$eighth $BN5 $super_small -n
$sixteenth $Bb5 $super_small -n
$sixteenth $BN5 $super_small -n
$sixteenth $Bb5 $super_small -n
$sixteenth $AN5 $super_small -n

$eighth $Ab5 $super_small -n
$eighth $GN5 $super_small -n
$eighth $FS5 $super_small -n
$eighth $GN5 $super_small -n

$eighth $AN5 $super_small -n
$eighth $Ab5 $super_small -n
$sixteenth $GN5 $super_small -n
$sixteenth $Ab5 $super_small -n
$sixteenth $GN5 $super_small -n
$sixteenth $FS5 $super_small -n

$eighth $FN5 $super_small -n
$eighth $EN5 $super_small -n
$eighth $DS5 $super_small -n
$eighth $EN5 $super_small -n

#=Ending 2
$eighth $DN5 $super_small -n
$sixteenth $DN5 $super_small -n
$sixteenth $DN5 $super_small -n
$eighth $AN5 $super_small -n
$eighth $DN5 $super_small -n

$eighth $Eb5 $super_small -n
$sixteenth $Eb5 $super_small -n
$sixteenth $Eb5 $super_small -n
$quarter $Bb5 $super_small -n

$sixteenth $BN5 $super_small -n
$sixteenth $DN6 $super_small -n
$sixteenth $CS6 $super_small -n
$sixteenth $CN6 $super_small -n
$eighth $BN5 $super_small -n
$eighth $AN5 $super_small -n

$eighth $GN5 $super_small
SONG
`beep $song`;
}

sub on_to_zanarkand() {
my $song = join (":", <<SONG =~ /(.+)/g);
$eighth $EN5 $longspace -n
$eighth $EN4 $longspace -n
$eighth $GN4 $longspace -n
$eighth $BN4 $longspace -n
$eighth $EN5 $longspace -n
$eighth $FS5 $longspace -n
$dottedhalf $GN5 $longspace -n

$eighth $DN5 $longspace -n
$eighth $DN4 $longspace -n
$eighth $FS4 $longspace -n
$eighth $AN4 $longspace -n
$eighth $DN5 $longspace -n
$eighth $EN5 $longspace -n
$dottedhalf $FS5 $longspace -n

$quarter $BN4 $longspace -n
$quarter $BN4 $longspace -n
$quarter $BN4 $longspace -n
$quarter $BN4 $longspace -n
$dottedquarter $AN4 $longspace -n
$eighth $DN5 $longspace -n
$dottedhalf $GN4 $longspace -n

$quarter $EN5 $longspace -n
$quarter $EN5 $longspace -n
$quarter $EN5 $longspace -n
$quarter $EN5 $longspace -n
$dottedquarter $DN5 $longspace -n
$eighth $GN5 $longspace -n
$dottedhalf $CN5 $longspace -n

$eighth $FN4 $longspace -n
$eighth $CN4 $longspace -n
$eighth $FN4 $longspace -n
$eighth $GN4 $longspace -n
$eighth $AN4 $longspace -n
$eighth $CN5 $longspace -n

$dottedquarter $EN5 $longspace -n
$eighth $BN4 $longspace -n
$eighth $EN5 $longspace -n
$eighth $FS5 $longspace -n

$quarter $GN5 $longspace -n
$quarter $FS5 $longspace -n
$quarter $EN5 $longspace -n

$dottedquarter $DN5 $longspace -n
$eighth $EN5 $longspace -n
$quarter $DN5 $longspace -n
$dottedhalf $BN4 $longspace -n
#----------------------------------------------------------
$dottedquarter $EN5 $longspace -n
$eighth $BN4 $longspace -n
$eighth $EN5 $longspace -n
$eighth $FS5 $longspace -n

$quarter $GN5 $longspace -n
$quarter $FS5 $longspace -n
$quarter $GN5 $longspace -n

$dottedquarter $AN5 $longspace -n
$eighth $GN5 $longspace -n
$quarter $AN5 $longspace -n
$dottedhalf $BN5 $longspace -n

$dottedquarter $EN5 $longspace -n
$eighth $BN4 $longspace -n
$eighth $EN5 $longspace -n
$eighth $FS5 $longspace -n

$quarter $GN5 $longspace -n
$quarter $FS5 $longspace -n
$quarter $EN5 $longspace -n

$dottedquarter $DN5 $longspace -n
$eighth $EN5 $longspace -n
$quarter $DN5 $longspace -n

$half $BN4 $longspace -n
$eighth $GN4 $longspace -n
$eighth $AN4 $longspace -n

$quarter $BN4 $longspace -n
$quarter $BN4 $longspace -n
$quarter $BN4 $longspace -n

$quarter $BN4 $longspace -n
$quarter $AN4 $longspace -n
$quarter $DN5 $longspace -n

$dottedquarter $GN4 $longspace -n
$eighth $GN4 $longspace -n
$eighth $FS4 $longspace -n
$eighth $DN4 $longspace -n

$dottedhalf $EN4 $longspace -n

# Bass line, melody is empty. Might want to remove this measure
$eighth $GN4 $longspace -n
$eighth $GN3 $longspace -n
$eighth $BN3 $longspace -n
$eighth $EN4 $longspace -n
$eighth $GN4 $longspace -n
$eighth $BN4 $longspace -n

$half $AN5 $longspace -n
$quarter $EN6 $longspace -n

$quarter $EN6 $longspace -n
$quarter $DN6 $longspace -n
$quarter $CN6 $longspace -n

$half $BN5 $longspace -n
$quarter $GN6 $longspace -n

$dottedhalf $GN6 $longspace -n

$half $BN5 $longspace -n
$quarter $FS6 $longspace -n

$dottedhalf $FS6 $longspace -n

$half $AN5 $longspace -n
$quarter $EN6 $longspace -n

$quarter $EN6 $longspace -n
$half $DS6 $longspace -n

# Key change. Now in key of D
$half $BN4 $longspace -n
$quarter $FS5 $longspace -n

$quarter $FS5 $longspace -n
$quarter $EN5 $longspace -n
$quarter $DN5 $longspace -n

$half $CS5 $longspace -n
$quarter $AN5 $longspace -n

$dottedhalf $AN5 $longspace -n

$quarter $GS5 $longspace -n
$quarter $EN5 $longspace -n
$quarter $CS5 $longspace -n

$half $BN4 $longspace -n
$quarter $FS5 $longspace -n

$dottedhalf $AN4 $longspace -n
$eighth $FS4 $longspace -n
$quarter $AN4 $longspace -n

$half $BN4 $longspace

SONG
`beep $song`;
}

sub base_warmup() {
# Play!
`beep $AN3; beep $AN3; beep $DN4; beep $EN4; beep $GN4; beep $EN4; beep $GN4; beep $AN4`;
`beep $AN3; beep $AN3; beep $DN4; beep $EN4; beep $GN4; beep $EN4; beep $DS4; beep $DN4`;
`beep $AN3; beep $AN3; beep $DN4; beep $EN4; beep $GN4; beep $EN4; beep $GN4; beep $AN4`;
`beep $CN5; beep $AN4; beep $CN5; beep $DN5; beep $DN5; beep $CN5; beep $AN4; beep $GN4; beep $AN4`;

`beep $AN3; beep $AN3; beep $DN4; beep $EN4; beep $GN4; beep $EN4; beep $GN4; beep $AN4`;
`beep $AN3; beep $AN3; beep $DN4; beep $EN4; beep $GN4; beep $EN4; beep $DS4; beep $DN4`;
`beep $AN3; beep $AN3; beep $DN4; beep $EN4; beep $GN4; beep $EN4; beep $GN4; beep $AN4`;
`beep $CN5; beep $AN4; beep $CN5; beep $DN5; beep $DN5; beep $CN5; beep $AN4; beep $GN4; beep $AN4`;

`beep $DN5; beep $CN5; beep $AN4; beep $GN4; beep $AN4; beep $CN5; beep $AN4; beep $GN4`;
`beep $DN5; beep $CN5; beep $AN4; beep $GN4; beep $AN4; beep $CN5; beep $AN4; beep $GN4`;
`beep $DN5; beep $CN5; beep $AN4; beep $GN4; beep $AN4; beep $CN5; beep $AN4; beep $CN5`;
`beep $DN5; beep $CN5; beep $DN5; beep $DN5; beep $EN5; beep $DN5; beep $CN5; beep $AN4`;

`beep $DN5; beep $CN5; beep $AN4; beep $GN4; beep $AN4; beep $CN5; beep $AN4; beep $GN4`;
`beep $DN5; beep $CN5; beep $AN4; beep $GN4; beep $AN4; beep $CN5; beep $AN4; beep $GN4`;
`beep $DN5; beep $CN5; beep $AN4; beep $GN4; beep $AN4; beep $CN5; beep $AN4; beep $CN5`;
`beep $DN5; beep $CN5; beep $DN5; beep $DN5; beep $EN5; beep $DN5; beep $CN5; beep $AN4`;

`beep $AN3; beep $AN3; beep $DN4; beep $EN4; beep $GN4; beep $EN4; beep $GN4; beep $AN4`;
`beep $AN3; beep $AN3; beep $DN4; beep $EN4; beep $GN4; beep $EN4; beep $DS4; beep $DN4`;
`beep $AN3; beep $AN3; beep $DN4; beep $EN4; beep $GN4; beep $EN4; beep $GN4; beep $AN4`;
`beep $CN5; beep $AN4; beep $CN5; beep $DN5; beep $DN5; beep $CN5; beep $AN4; beep $GN4; beep $AN4`;
}

2hot6ft2
March 22nd, 2010, 04:46 AM
Man this thread is not what I was expecting by the title.
Little Nash Rambler is my favorite Beep song.

For those that don't know it here's the lyrics.

While riding in my Cadillac, what to my surprise,
A little Nash Rambler was following me, about one-third my size.
The guy must have wanted to pass me out
As he kept on tooting his horn (beep beep).
I'll show him that a Cadillac is not a car to scorn.

chorus: Beep beep (beep beep),
Beep beep (beep beep),
His horn went beep beep beep (beep beep).

I pushed my foot down to the floor to give the guy the shake,
But the little Nash Rambler stayed right behind, he still had
on his brake.
He must have thought his car had more guts,
As he kept on tooting his horn (beep beep).
I'll show him that a Cadillac is not a car to scorn.

chorus:

My car went in to passing gear and we took off with gust,
And soon we were doing ninety, must have left him in the dust.
When I peeked in the mirror of my car, I couldn't believe my eyes.
The little Nash Rambler was right behind, you'd think that
guy could fly.

chorus:

Now we're doing a hundred and ten, it certainly was a race,
For a Rambler to pass a Caddy would be a big disgrace.
The guy must have wanted to pass me out as he kept on tooting his horn.
I'll show him that a Cadillac is not a car to scorn.

chorus:

Now we're doing a hundred and twenty, as fast as I could go.
The Rambler pulled alongside of me as if we were going slow.
The fellow rolled his window down and yelled for me to hear:
"Hey, buddy, how can I get this car out of second gear?"+

SlugSlug
April 26th, 2010, 04:53 PM
Cheers binarypearl (http://ubuntuforums.org/member.php?u=1040470) !

nicely done, I have put this on a colleges machine am sure he'll soon tire of my ssh sessions :)

binarypearl
May 22nd, 2010, 03:16 AM
Cheers binarypearl (http://ubuntuforums.org/member.php?u=1040470) !

nicely done, I have put this on a colleges machine am sure he'll soon tire of my ssh sessions :smile:

Awesome, glad someone could appreciate the art of the PC speaker ;)

2 things:
1. I learned there is a difference between the native`beep` and the `beep` command from http://www.johnath.com/beep/. You need the package from this website. The default beep command won't work with these frequencies. It's pretty much distro specific on whether you have the enhanced version or not.

2. I have an updated version of this script that works much better for embedding beep.pl into scripts. So you should be able to do something like `beep.pl -s3` and have it play song 3. I'll post the updated version once I get a chance.

--Shaun

edeion
May 26th, 2010, 01:23 PM
Awesome! Thanks!

AnoPoli
June 16th, 2010, 11:41 AM
Don't try this at home!!!
:-)

#!/bin/bash
for i in {21..4000..1}
do
beep -f $i -l 2000
done
for i in {4000..21..1}
do
beep -f $i -l 2000
done

I also have this for startup sound to my headless torrentbox-router
so i know it finishes booting without problems (rarely rebooting though)


#!/bin/bash
for i in {1000..2000..100}
do
beep -f $i -l 100
done
beep -f 200 -d 1 -r 5 -n -f 300 -d 10 -r 4 -n -f 400 -d 100 -r 3
for i in {2000..1000..100}
do
beep -f $i -l 100
done


And this is the event for deluge upon torrent completion (execute plugin)


#!/bin/bash
for i in {21..3500..40}
do
beep -f $i -d 20 -l 20
done
for i in {3500..21..40}
do
beep -f $i -d 20 -l 20
done

Really... you don't want to try the first one!!!
I have put it there for reference to what my speaker can play, below 21
and above 4000 is not "playable" for my Torrentbox's speaker.

AnoPoli
June 16th, 2010, 12:05 PM
I also have this in my crontab:

0 * * * * beep
Since beep is in my path, my torrentbox produces a beep every hour at :00
trying to act as an old-fashion timex wrist watch i used to have years ago.

Another old-fashion idea would be a crontab for equal beeps accordind to
the time value. This way you could convince your wife how usefull is this
torrentbox of yours, in the middle of the living room, and get rid of that
annoying pendulum of hers.
:p :p :p :p :p

alphaniner
June 16th, 2010, 02:24 PM
I love beep. I tried to write the Mario Bros. theme once but didn't get very far. The most I ever did was run an infinite loop with changing tones and lengths which mystified my co-workers for a few hilarious minutes.


for i in {21..3500..40}

This construction doesn't work for me :(

It just sets i to {21..3500..40} and runs once...

Iam8up
June 18th, 2010, 10:02 PM
# cat ffvictory.sh
#thanks to kriel of irc.freenode.net/#linux
#echo "Victory"
#stick out cd drive
#eject&
beep -f 784 -r 3 -l 100
sleep .1
beep -f 784 -l 600
beep -f 622 -l 600
beep -f 698 -l 600
beep -f 784 -l 200
sleep .2
beep -f 698 -l 200
beep -f 784 -l 800
#stick out cd drive
#eject -t

alepac
August 19th, 2010, 04:50 PM
Another old-fashion idea would be a crontab for equal beeps accordind to
the time value.
Try this:

*/15 * * * * /bin/sh /home/alepac/bell.sh
Where bell.sh is:

#!/bin/sh
beep -D 500 -l 500 -r `date +%I` -f 440 -n -D 1000 -l 0 -n -D 800 -l 200 -f 880 -r `echo $(($(date +%M)/15))`

mrinvader
June 17th, 2011, 01:03 AM
Hi all

I went to try these beeptunes on Lucid and the beepin' thing wouldn't work. so I searched the beepin' internet and came up with this for all you beepers who have the same beepin' issue!

http://superuser.com/questions/22767/enable-system-beep-in-ubuntu/22777#22777


sudo modprobe pcspkr

8-)type that into your terminal to enable the speaker.8-)

I added the same line to the bottom of /etc/rc.local and marked it as +x so that it gets inserted at boot.

Now y'all can get your beep on. :guitar:

(This functionality was disabled at some point - in /etc/modprobe.d/blacklist.conf


# ugly and loud noise, getting on everyone's nerves; this should be done by a
# nice pulseaudio bing (Ubuntu: #77010)
blacklist pcspkr

)

binarypearl
June 18th, 2011, 04:24 AM
Thanks for the input, I had to do the same thing (or something similar in Fedora too I believe). I'm actually about to release version 0.07 of 'beepbeep', which is an expanded version of beep.pl (v 0.01) from a previous post. The new version has a few new features:

1. The ability to write your own songs using a template perl script (so you can specify actual note names and lengths of notes instead of raw arguments to the beep executable)
2. The ability to a set a tempo for each song. The tempo is specified in Beets Per Minute (BPM).
3. The Final Fantasy VI (FF III America) Decisive Battle Theme can be played through beepbeep.

Stay tuned, I have a few last minute enhancements to make. Once it's ready I'll post it on github and post the link here. I'm really excited, I think beepbeep has a lot of potential and I hope by releasing it, we can make it easier for people to write songs for the PC speaker.

--Shaun

binarypearl
June 27th, 2011, 02:04 AM
beepbeep 0.08 has now been released! beepbeep is a menu and CLI based console program to play and write songs for the PC Speaker.

You can download beepbeep here:
https://github.com/binarypearl/beepbeep/raw/master/beepbeep.0.08.tar.bz2

The project directory, which includes instructions on how to install beepbeep is located here:
https://github.com/binarypearl/beepbeep

Once installed, run the command 'beepbeep' and this will take you into the menu. beepbeep contains songs posted on this forum, and a few songs I implemented myself.

For starters, check out:
2. Classical Music
-> 1. Entry of the Gladiators

and

5. Video Game
-> 2. FFVI (FFIII) Decisive Battle

If you have any issues installing or running it let me know, and I'll do what I can to get them resolved.

--Shaun

christopher.wortman
June 27th, 2011, 02:13 AM
http://www.youtube.com/watch?v=CTGkdEiGJVs

RobinJ1995
August 30th, 2011, 06:37 PM
Don't try this at home!!!
:-)

#!/bin/bash
for i in {21..4000..1}
do
beep -f $i -l 2000
done
for i in {4000..21..1}
do
beep -f $i -l 2000
done

I also have this for startup sound to my headless torrentbox-router
so i know it finishes booting without problems (rarely rebooting though)


#!/bin/bash
for i in {1000..2000..100}
do
beep -f $i -l 100
done
beep -f 200 -d 1 -r 5 -n -f 300 -d 10 -r 4 -n -f 400 -d 100 -r 3
for i in {2000..1000..100}
do
beep -f $i -l 100
done


And this is the event for deluge upon torrent completion (execute plugin)


#!/bin/bash
for i in {21..3500..40}
do
beep -f $i -d 20 -l 20
done
for i in {3500..21..40}
do
beep -f $i -d 20 -l 20
done

Really... you don't want to try the first one!!!
I have put it there for reference to what my speaker can play, below 21
and above 4000 is not "playable" for my Torrentbox's speaker.

I think the top one may actually have killed my speaker... :cry:
It didn't stop when I pressed CTRL+C, and when I just closed the terminal it kept playing at that frequency until I shutted down my laptop... wich took about a minute :mad: And now aI can't listen to beep music anymore :(

ziekfiguur
August 31st, 2011, 09:04 PM
I added the same line to the bottom of /etc/rc.local and marked it as +x so that it gets inserted at boot.


Instead of doing that you could also add a line with `pcspkr' to /etc/modules


I think the top one may actually have killed my speaker...
It didn't stop when I pressed CTRL+C, and when I just closed the terminal it kept playing at that frequency until I shutted down my laptop... wich took about a minute And now aI can't listen to beep music anymore

The pcspeaker is controlled by sending signals that change its state, when you send a term signal to a program (by pressing Ctrl+C) and the program does not specifically catch that signal and stop the speaker, nothing will be changed when the program exits.
I'm not sure why you can't listen to it anymore now, you could check if the pcspkr module is still loaded, and check its volume with alsamixer.

Here is a little C program to turn off the beep when you accidentally stopped the beep progam

#include <unistd.h>
#include <fcntl.h>
#include <sys/kd.h>
#include <sys/ioctl.h>

int main()
{
int console_fd = -1;

if((console_fd = open("/dev/tty0", O_WRONLY)) == -1)
console_fd = open("/dev/vc/0", O_WRONLY);

ioctl(console_fd, KIOCSOUND, 0);
close(console_fd);
return 0;
}

compile it with
gcc -o stopbeep stopbeep.c
For it to work you have to use sudo, as this program tries to speak directly to the kernel to stop the speaker.

BrainwreckedTech
October 24th, 2011, 11:26 AM
Here is a little C program to turn off the beep when you accidentally stopped the beep [program]

You can also just issue beep again with no arguments. I know that's not the super-geek way of doing it, but taking time out to compile a simple C program to fix a beep that drove you nuts enough to hit CTRL+C is asking a bit much. :)

Atamisk
October 24th, 2011, 04:20 PM
This is the coolest thing i've ever done with ubuntu. Thanks for showing my a fantastic way to waste hours!!

ziekfiguur
October 24th, 2011, 05:17 PM
You can also just issue beep again with no arguments. I know that's not the super-geek way of doing it, but taking time out to compile a simple C program to fix a beep that drove you nuts enough to hit CTRL+C is asking a bit much. :)

Lol, I hadn't even thought of that way :P Maybe I should start coding less and thinking more.

pekarna
November 3rd, 2011, 03:48 AM
I remember hearing Civilization music for the first time... Since then, PC speaker is inherent part of my childhood memories :)

Orbitoid
November 24th, 2011, 01:00 AM
I have been making a few songs for beep over the last week. I'm at work at the moment but i'll post what I have made when i get home.

Does anyone have a good way to sync several machines together?
so far the best i can manage is updating the time on all the machines and then getting them all to wait until a particular time (sleep). Even then though they can get out of time (even if it is just by a few ms). Is there an easy to way make sure they all have the exact same time or get them all to keep in time?

brainwrecked-tech
December 4th, 2011, 11:11 PM
Does anyone have a good way to sync several machines together? so far the best i can manage is updating the time on all the machines and then getting them all to wait until a particular time (sleep). Even then though they can get out of time (even if it is just by a few ms). Is there an easy to way make sure they all have the exact same time or get them all to keep in time?

Not really. See: the whole reason for NTP. My guess is that beep works off of CPU ticks rather than the system time. Computer clocks will drift slightly (but consistently) and no two computers are guaranteed to drift by the same amount or even in the same direction. Therefore, even if you get all the computers involved perfectly in sync with NTP, the synchronized beep tune will quickly become out of sync.

Also see: A/V sync theory. The timing range for A/V sync on DVDs is -15ms (early) and 45ms (late). The reason for the discrepancy is outside the range of this discussion, but the point is that you'll notice when something starts playing 15ms early, which is easily exacerbated by the fact that your perception of this synchronization is all relative. (E.g., if one machine is playing 7.5ms too slow and another is playing 7.5ms too fast, you will only perceive one machine as being 15ms off.)

That 15ms is just a tighter range of accuracy than beep was ever intended for. With the author's focus on small code (initially just for the sake of being small, but the security concerns of needing the SUID bit set for functionality under X aren't exactly convincing him to enlarge the scope of beep any further) I doubt it'll ever be implemented.

adz89
January 17th, 2013, 12:03 PM
I have found and awesome song, that someone has painstakingly written into beep format, I've included it in a script that I've annoyingly had to name a txt file for this forum.

Anyway, install the package "beep" and set the file to executable, then enjoy!

Personally I use this when remotely locking my colleagues computers just to screw with them!



Enjoy, and I can't take any credit for the song except for making it into a bash script...

:popcorn:

overdrank
January 17th, 2013, 12:07 PM
Back to sleep thread. Thread closed