Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felixgirault/biip
Play music with your old school motherboard speaker !
https://github.com/felixgirault/biip
Last synced: about 1 month ago
JSON representation
Play music with your old school motherboard speaker !
- Host: GitHub
- URL: https://github.com/felixgirault/biip
- Owner: felixgirault
- Created: 2013-01-24T17:51:27.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-05T09:15:21.000Z (over 10 years ago)
- Last Synced: 2024-05-01T12:40:49.131Z (8 months ago)
- Language: C++
- Homepage:
- Size: 148 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Biip
====Usage
-----```
make./biip FILE [repetitions]
./biip scores/win.txt
./biip scores/all.txt
./biip scores/tron.txt 4
```### Linux
You should edit the modprobe blacklist (/etc/modprobe.d/blacklist.conf) in order to have your motherboard speaker working.
Just comment out this line: `blacklist pcspkr`.Then, run biip as root.
### Windows
Not tested yet, but should work !
Scores
------A biip score looks like that:
```
100C4 1
C#4 1
D4 1
D#4 1
E4 1
F4 1
F#4 1
G4 1
G#4 1
A4 1
A#4 1
B4 1
C5 4
```The first line sets the base unit of time in milliseconds.
Then, each line represents a single note, identified by it's name and duration (multiple of base time unit).In the above example, biip would play each note of the 4th octave for 100ms, and a C of the 5th octave for 400ms.
### Notes
A note is identified by it's name and octave.
You can use any of these standard notes : `A`, `A#`/`Bb`, `B`, `C`, `C#`/`Db`, `D`, `D#`/`Eb`, `E`, `F`, `F#`/`Gb`, `G` and `G#`/`Ab`.
The available octaves go from 2 to 6.There is also a `S` note (without octave), which is basically a silence.