system-bus-radio/tunes
2017-11-11 20:35:15 -05:00
..
mary_had_a_little_lamb.tune add mary had a little lamb 2017-11-11 20:35:15 -05:00
README.md Document tune format 2017-11-11 20:34:30 -05:00
smb.tune Document tune format 2017-11-11 20:34:30 -05:00

Tune File Format

This file defines the .tune music file format.

Following is a simple example of the beginning parts of the Super Mario Brothers theme song:

100 660
150 0
100 660
300 0
100 660
300 0
100 510

Full specification

  1. Simple text file
  2. Each line represents a beep or a pause
    1. Column one is a positive integer number of milliseconds
    2. Column two is a positive integer frequency in Hz, or 0 which represents silence
    3. Columns are separated by a space
  3. Line ending is unix format
  4. File extension is .tune
  5. Although not necessarily part of the tune, consider adding a silence at the end so that looped playback sounds good :-)