Scroll up, click on Code
and select Download ZIP
.
Unzip the file, and you're good to go!
You can now skip to the instructions.
- Download Git from here
- Open a terminal and run the following command:
git clone https://github.com/artahadhahd/musical
- Then run this command:
cd musical
For now, you can't import other files into your project.
Open test.musical
and start writing
Then, run the run.sh
file. Make sure that you have FFMPEG (required for compiling to a wav
file) and the latest version of Python installed on your machine.
Make sure that there's always a new line at the end of your file.
Every program has a header. You have to give at least a meter or a BPM. There are other keys that you can define, but they are not necessary as they are assigned to a default value. Example:
meter: 4/4
bpm: 60
Functions start with @
. A main
function is required in all programs. A function can be empty. Two functions with the same name cannot be defined.
@main
save main.bin
In order to call a function, you use the goto
keyword.
@main
goto intro
save main.bin
@intro
A 1/2
The order of the functions doesn't matter, you can write them anywhere inside the file. So this is the same as above:
@intro
A 1/2
@main
goto intro
save main.bin
Variables are defined like this:
variable_name: value
For example:
@main
octave: 5
A 1
octave: 4
A 1
pitch: 415
A 1
save main.bin
Not implemented yet, no need for them for now.
Coming soon.
ADSR, Chords
But this project is gonna be retired soon, and it will be replaced by a more modern one with way more capabilities.