diff options
author | Anthony Wang | 2022-12-17 11:57:48 -0600 |
---|---|---|
committer | Anthony Wang | 2022-12-17 11:57:48 -0600 |
commit | 92e83efd95250c8c61a6993c7a3c8e211b49d9a8 (patch) | |
tree | a69cd3171dae673962f029de25219a64170c5a26 /README.md | |
parent | 9b62eed93c2ba0b5112ad804f97cabc0e95d6d5a (diff) |
Add new bytebeat in Scheme implementation
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 26 |
1 files changed, 2 insertions, 24 deletions
@@ -1,24 +1,2 @@ -# M - -A minimal and ergonomic music programming language, inspired by Lisp - -## Design - -A M source code file has the extension `.m` and is basically a Scheme program with some extra spice. All lines that start with an open parenthesis, space, or tab are treated as lines of a normal Scheme program. Lines that do not start with those characters correspond to generating a music tone at a certain time. These lines have the following format: -``` -401/2A 441/2A 471/2A -``` - -Each line consists of multiple notes separated by tab characters. You can use any Scheme variables in for these notes instead of actual numbers. It's recommended to set your tab size to 8 so the notes in different lines are aligned. - -Each note consists of multiple characters: -1. The first character is the octave. -2. The second is the step of the scale it's on in base 12, so 0 is equivalent to the traditional A, A is equivalent to the traditional G, and B is equivlanet to the traditional G sharp. -3. The next few characters are the length of the note. This can be a fraction. -4. The final character is a modifier that changes some property of the note, such as its volume. - -## Toolchain - -The M compiler `mc` will first interpret the Scheme program and generate an M intermediate format file with file extension `.min`. This file consists of all the music tone lines that the compiler ran into while interpreting the Scheme program. This can be then played by the `mplay` tool or converted to formats like `.mp3` with `mconv`. - -The `m` wrapper tool automates this process and will compile and play an M file if no output is specified, or convert it to the desired output format if specified. +# Lambeat +Bytebeat in Scheme |