mirror of
https://github.com/danog/system-bus-radio.git
synced 2024-11-27 01:34:40 +01:00
26 lines
680 B
Markdown
26 lines
680 B
Markdown
# 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 :-) |