pyampact.symbolic.Score
- class pyampact.symbolic.Score(score_path)[source]
A class to import a score via music21 and expose pyAMPACT’s analysis utilities.
The analysis utilities are generally formatted as pandas dataframes. This class also ports over some matlab code to help with alignment of scores in symbolic notation and audio analysis of recordings of those scores. Score objects can insert analysis into an MEI file, and can export any type of file to a kern format, optionally also including analysis from a JSON file. Similarly, Score objects can serve clickable URLs of short excerpts of their associated score in symbolic notation. These links open in the Verovio Humdrum Viewer.
- Parameters:
score_path – A string representing the path to the score file.
- Returns:
A Score object.
Example
url_or_path = 'https://github.com/pyampact/pyAMPACTtutorials/blob/main/test_files/M025_00_01a_a.krn' piece = Score(url_or_path)
Methods