fixed readme

This commit is contained in:
Ellie D 2019-05-18 10:06:46 -05:00
parent 0d96e014ab
commit e127d35867
3 changed files with 8 additions and 8 deletions

View File

@ -18,15 +18,15 @@ With the Rust compiler installed under a Unix-like OS, you can compile this sour
`rustc -O interval.rs` to produce the `interval` binary executable.
###How to Use
`interval` can be run at the command line with the following syntax:
`./interval [input file] [output file]`.
`interval` can be run at the command line with the following syntax:
`./interval [input file] [output file]`
This will attempt to read Interval code from the input file, generate audio based on it, and emit the resulting data,
prefixed with a suitable RIFF header, into the output file (which will be in `.wav` format). The audio stream is signed
16-bit little endian samples, at a sample rate defined by a static variable in the source code (48 kHz by default).
###Example Usage
Under Linux with ALSA, you can compile and play a .ITV source file with a command like this:
`./interval test.itv`
Under Linux with ALSA, you can compile and play a .ITV source file with a command like this:
`./interval test.itv`
This will write WAV data into `test.wav`, creating it if it does not exist and overwriting it if it does.
###Documentation

View File

@ -2,15 +2,15 @@
# Ellie Diode, May 2019
# Public Domain
~T120;
~P440;
p1:1 v200 t0 r0 h0 f400;
~T120 b-90 d-90;
p1:1 v200 t0 f400 b180:4+ d180:4+;
p4:3 t800+;
p3:2; #comment comment comment
p2:1;
T4:3*
p2:1 t0 r0 f200;
~T4:3* b90 d90;
p2:1 t0 f200 b180:5- d180:5-;
p8:3 t800+;
p3:1;
p4:1;

Binary file not shown.