MuseScore Interface

muspy.read_musescore(path, resolution=None, compressed=None)[source]

Read a MuseScore file into a Music object.

Parameters
  • path (str or Path) – Path to the MuseScore file to read.

  • resolution (int, optional) – Time steps per quarter note. Defaults to the least common multiple of all divisions.

  • compressed (bool, optional) – Whether it is a compressed MuseScore file. Defaults to infer from the filename.

Returns

Converted Music object.

Return type

muspy.Music

Note

This function is based on MuseScore 3. Files created by an earlier version of MuseScore might not be read correctly.