also included in FMP (Fundamentals of Music Processing) Notebooks
decompress the file (to a directory)
install Miniconda
open your Miniconda prompt
switch to the FMP directory you have decompressed
create the FMP environment
activate the FMP environment
install Spyder ("conda install spyder") or other IDE (integrated development environment) you prefer
environment
install FMP environment: conda env create -f environment.yml
activate FMP environment: conda activate FMP
deactivate FMP environment: conda deactivate
remove FMP environment: conda env remove --name FMP
package
list all installed packages: conda list
list all installed packages in specific environment: conda list -n FMP
install package: conda install [PACKAGE_NAME]
remove package: conda remove [PACKAGE_NAME]
update package: conda update [PACKAGE_NAME]
upgrade to the latest version (optional)
connect to internet
open your Miniconda
"conda activate FMP"
"pip install -U music21"
wait for download and installation
two ways to import
the easy way
from music21 import *
the safe way (advanced digression )
import music21
two ways to change music21 environment settings (optional)
modify and run the code
In [1]: inspect your settings
In [2]: change your settings
directly edit the hidden setting file
Windows: music21-settings.xml
macOS: .music21rc
naming convention
lowerCamelCase
UpperCamelCase
lowercase_separated_by_underscores
CAPITALIZED_WITH_UNDERSCORES
readability
comprehensible identifier's name
a = b * c
weeklyWages = weeklyHours * hourlyPayRate
always leave comments
purpose
agenda
question
idea
alternatives
draft
etc.
references