don't click here

Music playing bash script

Discussion in 'Technical Discussion' started by dust hill resident, May 5, 2015.

  1. I wasn't sure if this should go in 'creative works' or this forum. Sorry if this is the wrong forum.

    I wrote a bash script that plays simple tunes using 'aplay' and some 8bit PCM samples.
    It's probably not very well written because I'm not really a programmer/technical guy, and I only did this for fun anyway.
    This only works on linux, of course. And it doesn't work as well if you use pulseaudio, so if you want to try running this, you should stop the pulseaudio daemon first. And stop any other processes you might have running (like your web browser, etc) for good measure, since it seems to have timing stutter problems if there's a lot of other stuff going on at the same time.

    The script and the music files & samples are here:
    Extract this into a folder, then run on one of the .songfiles. Like "./ coolsong.songfile".

    If you can't or don't want to run the script, there are .ogg recordings of the script playing the tunes here:
    This is probably the best sounding example of the script in action: