OCaml, ocamlbuild, ocamllex and Menhir.
$ make
Now we can generate some .wav-file.
For example, the following code:
๐ 0๐
0ยฝ๐
1๐
1ยฝ๐
2๐
2ยฝ๐
3๐
๐ฝ 2ยฝโฉ 2โฉ 1ยฝโฉ 1โฉ 0ยฝโฉ 0โฉ ยท
Corresponds to the following notes:
In 0ยฝ๐
:
-
Number denotes position on the stave:
1
is first line,1ยฝ
is space between first line and second line,2
is second line etc. -
Symbol denotes note value.
To compile it, we first need to save it:
$ echo "๐ 0๐
0ยฝ๐
1๐
1ยฝ๐
2๐
2ยฝ๐
3๐
๐ฝ 2ยฝโฉ 2โฉ 1ยฝโฉ 1โฉ 0ยฝโฉ 0โฉ ยท" > abc.synth
Then run synth
:
$ ./synth.native abc.synth -o abc.wav
You can find more examples in the examples/
directory.