arch log #2

Installed slrn, rdesktop, beep (I love the PC speaker!)

Here is a melody I wrote quickly to test it:

#!/bin/bash

note(){
case $1 in
"C" ) freq=261.6;;
"Cis") freq=277.2;;
"D" ) freq=293.7;;
"Dis") freq=311.1;;
"Es") freq=311.1;;
"E" ) freq=329.6;;
"F" ) freq=349.2;;
"Fis") freq=370.0;;
"G" ) freq=392.0;;
"Gis") freq=415.3;;
"A" ) freq=440.0;;
"Ais") freq=466.2;;
"B") freq=466.2;;
"H" ) freq=493.9;;
"c" ) freq=523.2;;
*) freq=1;;
esac
if [ "$2" != "" ]; then dur=$2; else dur=250; fi
beep -f $freq -l $dur
}

note 0 500
note Es
note D
note D 500
note Es
note D
note D 500
note Es
note D
note D 500
note B 500
note 0 500
note B
note A
note G 500
note G
note F
note Es 500
note Es
note D
note C 500
note C 500

Leave a Reply

Your email address will not be published. Required fields are marked *