score-to-wavefile and wavefile-to-score.
##HeaderFile:
- types.h: define unsigned type of different lengths;
- complex.h: define complex number class and some other mathemathical functions;
- spectrum.h: for frequency/time-domain analysis of wave data, finding key notes, beats & tempo;
- score.h: define score structure based on events, in light of MID format;
- wav.h: read/write wave file, provide score-to-wavefile and wavefile-to-score functions;
- mpeg3.h: read mp3 file, currently unused (to be continued).
##Usage:
- Launch Terminal, navigate to the directory holding main.cpp and all the header files;
- Compile the program using "make" under mac/linux (for windows you can make small change to the Makefile);
- Run the program using "./scoreur", imput the required filenames.
##Score structure version 1.1 (see "scoreV1.txt"):
- First line: "scoreV1.1";
- Three integers in the second line, i)number of beats; ii)number of scores; iii)tempo in beat-per-minute;
- Two integers for each score, for pitch (440Hz as 0) and duration (in multiples of beats) respectively.
##Score structure version 2.0 (see "scoreV2.txt"):
- First line: "scoreV2.0";
- Three integers for each line: i) time difference in miliseconds; ii) type of events; iii) arguments;
- see "score.h" for more infomation for MID::EVENT.