https://github.com/datakinds/bytebeat-framework
A Ruby script to ease the creation of bytebeat music, through special .music files.
https://github.com/datakinds/bytebeat-framework
bytebeats metaprogramming music ruby
Last synced: over 1 year ago
JSON representation
A Ruby script to ease the creation of bytebeat music, through special .music files.
- Host: GitHub
- URL: https://github.com/datakinds/bytebeat-framework
- Owner: DataKinds
- Created: 2016-05-15T05:10:21.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-07-02T11:17:34.000Z (about 8 years ago)
- Last Synced: 2025-01-29T11:45:48.834Z (over 1 year ago)
- Topics: bytebeats, metaprogramming, music, ruby
- Language: Ruby
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
bytebeat-framework
===
A Ruby script to ease the creation of bytebeat music, through special .music files.
Requirements
---
* Ruby
* A `gcc` compatible C compiler.
* `aplay` to use the `-r` command line switch.
Usage
---
With `bytebeat.rb` in the same folder as the `c` folder, simply run
bytebeat.rb
and a `music.out` file will appear in your current directory ready to run. Leaving out the music file will pipe input from standard input. Check out some example `.music` files in the `examples/` folder to see how to create one for yourself.
Who's idea was this?
---
Check out the original blog post at http://canonical.org/~kragen/bytebeat/.
Built-in help menu
---
```
Usage: bytebeat.rb [options] [input file]
Note: You must have gcc (or a compatible compiler) installed.
You must have aplay installed to use `-r`.
-o, --output OUTPUTFILE Specify the file to output the compiled binary to (default music.out).
-r, --run-aplay Run the music file after compilation, using `aplay`.
-c, --compiler COMPILER Specify another compiler to use over `gcc`.
-k, --keep-temp Keep the processed files produced before compilation.
--no-instrument Don't compile in the `instrument.c` file.
-h, --help Print this message.
```