Skip to content

Commit

Permalink
Document tune format
Browse files Browse the repository at this point in the history
  • Loading branch information
fulldecent committed Nov 12, 2017
1 parent 6b6b6e0 commit 87dbedb
Show file tree
Hide file tree
Showing 2 changed files with 338 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tunes/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 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 :-)
312 changes: 312 additions & 0 deletions tunes/smb.tune
Original file line number Diff line number Diff line change
@@ -0,0 +1,312 @@
100 660
150 0
100 660
300 0
100 660
300 0
100 510
100 0
100 660
300 0
100 770
550 0
100 380
575 0
100 510
450 0
100 380
400 0
100 320
500 0
100 440
300 0
80 480
330 0
100 450
150 0
100 430
300 0
100 380
200 0
80 660
200 0
50 760
150 0
100 860
300 0
80 700
150 0
50 760
350 0
80 660
300 0
80 520
150 0
80 580
150 0
80 480
500 0
100 510
450 0
100 380
400 0
100 320
500 0
100 440
300 0
80 480
330 0
100 450
150 0
100 430
300 0
100 380
200 0
80 660
200 0
50 760
150 0
100 860
300 0
80 700
150 0
50 760
350 0
80 660
300 0
80 520
150 0
80 580
150 0
80 480
500 0
100 500
300 0
100 760
100 0
100 720
150 0
100 680
150 0
150 620
300 0
150 650
300 0
100 380
150 0
100 430
150 0
100 500
300 0
100 430
150 0
100 500
100 0
100 570
220 0
100 500
300 0
100 760
100 0
100 720
150 0
100 680
150 0
150 620
300 0
200 650
300 0
80 1020
300 0
80 1020
150 0
80 1020
300 0
100 380
300 0
100 500
300 0
100 760
100 0
100 720
150 0
100 680
150 0
150 620
300 0
150 650
300 0
100 380
150 0
100 430
150 0
100 500
300 0
100 430
150 0
100 500
100 0
100 570
420 0
100 585
450 0
100 550
420 0
100 500
360 0
100 380
300 0
100 500
300 0
100 500
150 0
100 500
300 0
100 500
300 0
100 760
100 0
100 720
150 0
100 680
150 0
150 620
300 0
150 650
300 0
100 380
150 0
100 430
150 0
100 500
300 0
100 430
150 0
100 500
100 0
100 570
220 0
100 500
300 0
100 760
100 0
100 720
150 0
100 680
150 0
150 620
300 0
200 650
300 0
80 1020
300 0
80 1020
150 0
80 1020
300 0
100 380
300 0
100 500
300 0
100 760
100 0
100 720
150 0
100 680
150 0
150 620
300 0
150 650
300 0
100 380
150 0
100 430
150 0
100 500
300 0
100 430
150 0
100 500
100 0
100 570
420 0
100 585
450 0
100 550
420 0
100 500
360 0
100 380
300 0
100 500
300 0
100 500
150 0
100 500
300 0
60 500
150 0
80 500
300 0
60 500
350 0
80 500
150 0
80 580
350 0
80 660
150 0
80 500
300 0
80 430
150 0
80 380
600 0
60 500
150 0
80 500
300 0
60 500
350 0
80 500
150 0
80 580
150 0
80 660
550 0
80 870
325 0
80 760
600 0
60 500
150 0
80 500
300 0
60 500
350 0
80 500
150 0
80 580
350 0
80 660
150 0
80 500
300 0
80 430
150 0
80 380
600 0
100 660
150 0
100 660
300 0
100 660
300 0
100 510
100 0
100 660
300 0
100 770
550 0
100 380
575 0

0 comments on commit 87dbedb

Please sign in to comment.