Guide
The chord labels can already be found at the Bach Chorales Multiple Chord Labels (BCMCL) repo. If you want to actually run the script, you need to follow the steps below. Note that the generated results will overwrite the ones you cloned from the BCMCL repo.
- Use
git clone --recurse-submodules git@github.com:juyaolongpaul/harmonic_analysis.gitin the terminal to clone the project, then usecd harmonic_analysisto go into the project folder. Making sure that you are on the master branch. - Create a virtual environment using Python 3. Making sure you have it already installed in your computer, and added to
PATH. Also, making sure you havevirtualenvalready installed. To install it in Windows, please refer here, until “Launch virtualenv” Section since you are going to use the following commands to launch it. In Linux and Mac OS, an example is:virtualenv .env --python=python3. In Windows, usevirtualenv .env --python=python. - Activate the virtual environment. If you use the command line provided in the second step, you can activate it by
source ./.env/bin/activatein Mac OS and Linux; in Windows, it is.\.env\Scripts\activate. - Use
pip install -r requirements_cpu.txtto install the required packages. - Use
python FB2lyrics.pyto run the script. The generate figured bass (saved as MusicXML files) can be found in the directory:./Bach_chorale_FB/FB_source/musicXML_master/BCMCL/. To see the example of the generated chord labels, please see the documentation here.
If you have questions or further inquiries, please send an email to yaolong.ju@mail.mcgill.ca.