- G++ 5.4
- Lilypond
- Timidity
- Install
Step 1: Clone the repository
$ git clone https://github.com/joao18araujo/pierluigi.git
Step 2: Install C++ compiler
$ sudo apt-get install g++
- Compile
To compile all .cpp files from src/ folder all the .h headers from include/ folder, use the make command:
$ make
Optionally, to a faster compilation, you can use the -j flag:
$ make -j
- Cleaning obj/ folder
To remove all .d and .o files from obj/ folder , use the clean command:
$ make clean
- Cleaning obj/ folder and removing software executable
To remove all .d and .o files from obj/ folder and delete the binary executable from bin/ folder, user the dist-clean command:
$ make dist-clean
- Running the program
To run the compiled program with a previously defined test file, use the run command:
$ make run
To run the program with another .ly file, run bin/prog:
bin/prog $(FILE_PATH)
Currently, the melody must be monophonic and its note with the shortest duration must be a 8th note with no dots.