Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Experiment: I wrote a bash script that plays simple tunes

Off-Topic discussions about science, technology, and non Debian specific topics.
Post Reply
Message
Author
User avatar
dust hill resident
Posts: 240
Joined: 2007-05-18 13:31

Experiment: I wrote a bash script that plays simple tunes

#1 Post by dust hill resident »

I posted this on linuxquestions, I thought it might also be cool to post it here.

I wrote a script which plays music using the 'aplay' command and some 8bit PCM samples.
Here it is:
http://dusthillguy.se/folder/musicscrip ... ipt.tar.gz

Extract it into a folder, then open one of the .songfiles using v7.sh, like "./v7.sh coolsong.songfile"

It's best to make sure you don't have many other processes running when you run the script, otherwise it can skip a lot and the timing becomes uneven. This problem seems to get even worse if you use pulseaudio. (I don't normally use pulseaudio myself.)

If you don't want to run the script, you can find Ogg Vorbis recordings of the script playing the tunes I wrote for it here:
http://dusthillguy.se/folder/musicscript/ogg/

Post Reply