diff --git a/docs/_modules/muspy/datasets/base.html b/docs/_modules/muspy/datasets/base.html index 41091bd..3634d84 100644 --- a/docs/_modules/muspy/datasets/base.html +++ b/docs/_modules/muspy/datasets/base.html @@ -176,13 +176,20 @@

Source code for muspy.datasets.base

 )
 
 import numpy as np
+from joblib import Parallel, delayed
 from numpy.random import RandomState, permutation
 from tqdm import tqdm
 
 from ..inputs import load, read_abc_string
 from ..music import Music
 from ..outputs import save
-from .utils import download_url, extract_archive
+from .utils import (
+    check_md5,
+    check_sha256,
+    check_size,
+    download_url,
+    extract_archive,
+)
 
 try:
     from torch.utils.data import Dataset as TorchDataset
@@ -199,12 +206,6 @@ 

Source code for muspy.datasets.base

 except ImportError:
     HAS_TENSORFLOW = False
 
-try:
-    from joblib import Parallel, delayed
-
-    HAS_JOBLIB = True
-except ImportError:
-    HAS_JOBLIB = False
 
 RemoteDatasetType = TypeVar("RemoteDatasetType", bound="RemoteDataset")
 FolderDatasetType = TypeVar("FolderDatasetType", bound="FolderDataset")
@@ -294,13 +295,6 @@ 

Source code for muspy.datasets.base

         **kwargs
             Keyword arguments to pass to :func:`muspy.save`.
 
-        Notes
-        -----
-        The converted files will be named by its index. The original
-        filenames can be found in the ``filenames`` attribute. For
-        example, the file at ``filenames[i]`` will be converted and
-        saved to ``{i}.json``.
-
         """
         if kind not in ("json", "yaml"):
             raise TypeError("`kind` must be either 'json' or 'yaml'.")
@@ -332,19 +326,13 @@ 

Source code for muspy.datasets.base

                 if _saver(idx):
                     count += 1
         else:
-            if not HAS_JOBLIB:
-                raise ValueError(
-                    "Optional package joblib is required for multiprocessing "
-                    "(n_jobs > 1)."
-                )
             # TODO: This is slow as `self` is passed between workers.
             results = Parallel(n_jobs=n_jobs, backend="threading", verbose=5)(
                 delayed(_saver)(idx) for idx in range(len(self))
             )
             count = results.count(True)
         if verbose:
-            print(f"Successfully saved {count} out of {len(self)} files.")
-        (root / ".muspy.success").touch(exist_ok=True)
+ print(f"Successfully saved {count} out of {len(self)} files.")
[docs] def split( self, @@ -692,14 +680,20 @@

Source code for muspy.datasets.base

             filename = self.root / source["filename"]
             if not filename.is_file():
                 return False
-            if "size" in source and filename.stat().st_size != source["size"]:
+            if "size" in source and not check_size(filename, source["size"]):
+                return False
+            if "md5" in source and not check_md5(filename, source["md5"]):
+                return False
+            if "sha256" in source and not check_sha256(
+                filename, source["sha256"]
+            ):
                 return False
         return True
[docs] def download( self: RemoteDatasetType, overwrite: bool = False, verbose: bool = True ) -> RemoteDatasetType: - """Download the source datasets. + """Download the dataset source(s). Parameters ---------- @@ -713,6 +707,13 @@

Source code for muspy.datasets.base

         Object itself.
 
         """
+        if self.exists():
+            if verbose:
+                print(
+                    "Skip downloading as the `.muspy.success` file is found."
+                )
+            return self
+
         for source in self._sources.values():
             download_url(
                 source["url"],
@@ -743,6 +744,11 @@ 

Source code for muspy.datasets.base

         Object itself.
 
         """
+        if self.exists():
+            if verbose:
+                print("Skip extracting as the `.muspy.success` file is found.")
+            return self
+
         for source in self._sources.values():
             filename = self.root / source["filename"]
             if source["archive"]:
@@ -1158,7 +1164,7 @@ 

Source code for muspy.datasets.base

         """
         if self.converted_exists():
             if verbose:
-                print("Skip conversion as the converted folder exists.")
+                print("Skip conversion as the `.muspy.success` file is found.")
             return self
         self.on_the_fly()
         self.converted_dir.mkdir(exist_ok=True)
@@ -1170,6 +1176,7 @@ 

Source code for muspy.datasets.base

             verbose=verbose,
             **kwargs,
         )
+        (self.converted_dir / ".muspy.success").touch(exist_ok=True)
         self.use_converted()
         self.kind = kind
         return self
diff --git a/docs/datasets/base.html b/docs/datasets/base.html index bcf628b..0b0fc86 100644 --- a/docs/datasets/base.html +++ b/docs/datasets/base.html @@ -217,11 +217,6 @@

Base Dataset Classes -

Notes

-

The converted files will be named by its index. The original -filenames can be found in the filenames attribute. For -example, the file at filenames[i] will be converted and -saved to {i}.json.

@@ -404,7 +399,7 @@

Base Dataset Classes
download(overwrite=False, verbose=True)[source]
-

Download the source datasets.

+

Download the dataset source(s).

Parameters
    @@ -494,11 +489,6 @@

    Base Dataset Classes

-

Notes

-

The converted files will be named by its index. The original -filenames can be found in the filenames attribute. For -example, the file at filenames[i] will be converted and -saved to {i}.json.

diff --git a/docs/datasets/local.html b/docs/datasets/local.html index 77128aa..f25f0b6 100644 --- a/docs/datasets/local.html +++ b/docs/datasets/local.html @@ -358,11 +358,6 @@

Local Dataset Classes

-

Notes

-

The converted files will be named by its index. The original -filenames can be found in the filenames attribute. For -example, the file at filenames[i] will be converted and -saved to {i}.json.

@@ -524,11 +519,6 @@

Local Dataset Classes

-

Notes

-

The converted files will be named by its index. The original -filenames can be found in the filenames attribute. For -example, the file at filenames[i] will be converted and -saved to {i}.json.

@@ -742,11 +732,6 @@

Local Dataset Classes

-

Notes

-

The converted files will be named by its index. The original -filenames can be found in the filenames attribute. For -example, the file at filenames[i] will be converted and -saved to {i}.json.

diff --git a/docs/datasets/remote.html b/docs/datasets/remote.html index d290b65..c79d216 100644 --- a/docs/datasets/remote.html +++ b/docs/datasets/remote.html @@ -276,7 +276,7 @@

Remote Dataset Classes
download(overwrite=False, verbose=True)
-

Download the source datasets.

+

Download the dataset source(s).

Parameters
-

Notes

-

The converted files will be named by its index. The original -filenames can be found in the filenames attribute. For -example, the file at filenames[i] will be converted and -saved to {i}.json.

@@ -561,7 +556,7 @@

Remote Dataset Classes
download(overwrite=False, verbose=True)
-

Download the source datasets.

+

Download the dataset source(s).

Parameters
-

Notes

-

The converted files will be named by its index. The original -filenames can be found in the filenames attribute. For -example, the file at filenames[i] will be converted and -saved to {i}.json.

@@ -823,7 +813,7 @@

Remote Dataset Classes
download(overwrite=False, verbose=True)
-

Download the source datasets.

+

Download the dataset source(s).

Parameters
-

Notes

-

The converted files will be named by its index. The original -filenames can be found in the filenames attribute. For -example, the file at filenames[i] will be converted and -saved to {i}.json.

diff --git a/docs/doc/datasets.html b/docs/doc/datasets.html index f86140c..1b6f163 100644 --- a/docs/doc/datasets.html +++ b/docs/doc/datasets.html @@ -295,11 +295,6 @@

Dataset ClassesNotes

-

The converted files will be named by its index. The original -filenames can be found in the filenames attribute. For -example, the file at filenames[i] will be converted and -saved to {i}.json.

@@ -899,7 +894,7 @@

Dataset Classes
download(overwrite=False, verbose=True)[source]
-

Download the source datasets.

+

Download the dataset source(s).

Parameters
@@ -2183,7 +2178,7 @@

Features
download(overwrite=False, verbose=True)[source]
-

Download the source datasets.

+

Download the dataset source(s).

Parameters
    diff --git a/docs/searchindex.js b/docs/searchindex.js index f6e09b4..25e6f71 100644 --- a/docs/searchindex.js +++ b/docs/searchindex.js @@ -1 +1 @@ -Search.setIndex({docnames:["classes/annotation","classes/base","classes/chord","classes/index","classes/key-signature","classes/lyric","classes/metadata","classes/music","classes/note","classes/tempo","classes/time-signature","classes/track","datasets/base","datasets/datasets","datasets/index","datasets/iterator","datasets/local","datasets/remote","doc/datasets","doc/external","doc/index","doc/inputs","doc/metrics","doc/muspy","doc/outputs","doc/processors","doc/schemas","doc/visualization","getting_started","index","io/abc","io/index","io/json","io/midi","io/mido","io/music21","io/musicxml","io/pretty_midi","io/pypianoroll","io/yaml","metrics","representations/event","representations/index","representations/note","representations/pianoroll","representations/pitch","synthesis","timing","visualization"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":3,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":2,"sphinx.domains.rst":2,"sphinx.domains.std":1,"sphinx.ext.intersphinx":1,"sphinx.ext.viewcode":1,sphinx:56},filenames:["classes/annotation.rst","classes/base.rst","classes/chord.rst","classes/index.rst","classes/key-signature.rst","classes/lyric.rst","classes/metadata.rst","classes/music.rst","classes/note.rst","classes/tempo.rst","classes/time-signature.rst","classes/track.rst","datasets/base.rst","datasets/datasets.rst","datasets/index.rst","datasets/iterator.rst","datasets/local.rst","datasets/remote.rst","doc/datasets.rst","doc/external.rst","doc/index.rst","doc/inputs.rst","doc/metrics.rst","doc/muspy.rst","doc/outputs.rst","doc/processors.rst","doc/schemas.rst","doc/visualization.rst","getting_started.rst","index.rst","io/abc.rst","io/index.rst","io/json.rst","io/midi.rst","io/mido.rst","io/music21.rst","io/musicxml.rst","io/pretty_midi.rst","io/pypianoroll.rst","io/yaml.rst","metrics.rst","representations/event.rst","representations/index.rst","representations/note.rst","representations/pianoroll.rst","representations/pitch.rst","synthesis.rst","timing.rst","visualization.rst"],objects:{"":{muspy:[23,0,0,"-"]},"muspy.ABCFolderDataset":{on_the_fly:[23,2,1,""],read:[23,2,1,""]},"muspy.Annotation":{annotation:[23,3,1,""],group:[23,3,1,""],time:[23,3,1,""]},"muspy.Base":{adjust_time:[23,2,1,""],copy:[23,2,1,""],deepcopy:[23,2,1,""],from_dict:[23,2,1,""],is_valid:[23,2,1,""],is_valid_type:[23,2,1,""],pretty_str:[23,2,1,""],print:[23,2,1,""],to_ordered_dict:[23,2,1,""],validate:[23,2,1,""],validate_type:[23,2,1,""]},"muspy.Chord":{adjust_time:[23,2,1,""],clip:[23,2,1,""],duration:[23,3,1,""],end:[23,2,1,""],pitches:[23,3,1,""],pitches_str:[23,3,1,""],start:[23,2,1,""],time:[23,3,1,""],transpose:[23,2,1,""],velocity:[23,3,1,""]},"muspy.ComplexBase":{append:[23,2,1,""],extend:[23,2,1,""],remove_duplicate:[23,2,1,""],remove_invalid:[23,2,1,""],sort:[23,2,1,""]},"muspy.Dataset":{citation:[23,2,1,""],info:[23,2,1,""],save:[23,2,1,""],split:[23,2,1,""],to_pytorch_dataset:[23,2,1,""],to_tensorflow_dataset:[23,2,1,""]},"muspy.EventRepresentationProcessor":{decode:[23,2,1,""],default_velocity:[23,3,1,""],encode:[23,2,1,""],encode_velocity:[23,3,1,""],force_velocity_event:[23,3,1,""],max_time_shift:[23,3,1,""],use_end_of_sequence_event:[23,3,1,""],use_single_note_off_event:[23,3,1,""],velocity_bins:[23,3,1,""]},"muspy.FolderDataset":{convert:[23,2,1,""],converted_dir:[23,2,1,""],converted_exists:[23,2,1,""],exists:[23,2,1,""],load:[23,2,1,""],on_the_fly:[23,2,1,""],read:[23,2,1,""],root:[23,3,1,""],use_converted:[23,2,1,""]},"muspy.HaydnOp20Dataset":{read:[23,2,1,""]},"muspy.HymnalDataset":{download:[23,2,1,""],read:[23,2,1,""]},"muspy.HymnalTuneDataset":{download:[23,2,1,""],read:[23,2,1,""]},"muspy.JSBChoralesDataset":{read:[23,2,1,""]},"muspy.KeySignature":{fifths:[23,3,1,""],mode:[23,3,1,""],root:[23,3,1,""],root_str:[23,3,1,""],time:[23,3,1,""]},"muspy.LakhMIDIAlignedDataset":{read:[23,2,1,""]},"muspy.LakhMIDIDataset":{read:[23,2,1,""]},"muspy.LakhMIDIMatchedDataset":{read:[23,2,1,""]},"muspy.Lyric":{lyric:[23,3,1,""],time:[23,3,1,""]},"muspy.MAESTRODatasetV1":{read:[23,2,1,""]},"muspy.MAESTRODatasetV2":{read:[23,2,1,""]},"muspy.Metadata":{collection:[23,3,1,""],copyright:[23,3,1,""],creators:[23,3,1,""],schema_version:[23,3,1,""],source_filename:[23,3,1,""],source_format:[23,3,1,""],title:[23,3,1,""]},"muspy.Music":{adjust_resolution:[23,2,1,""],annotations:[23,3,1,""],clip:[23,2,1,""],downbeats:[23,3,1,""],get_end_time:[23,2,1,""],get_real_end_time:[23,2,1,""],key_signatures:[23,3,1,""],lyrics:[23,3,1,""],metadata:[23,3,1,""],resolution:[23,3,1,""],save:[23,2,1,""],save_json:[23,2,1,""],save_yaml:[23,2,1,""],show:[23,2,1,""],show_pianoroll:[23,2,1,""],show_score:[23,2,1,""],synthesize:[23,2,1,""],tempos:[23,3,1,""],time_signatures:[23,3,1,""],to_event_representation:[23,2,1,""],to_mido:[23,2,1,""],to_music21:[23,2,1,""],to_note_representation:[23,2,1,""],to_object:[23,2,1,""],to_pianoroll_representation:[23,2,1,""],to_pitch_representation:[23,2,1,""],to_pretty_midi:[23,2,1,""],to_pypianoroll:[23,2,1,""],to_representation:[23,2,1,""],tracks:[23,3,1,""],transpose:[23,2,1,""],write:[23,2,1,""],write_abc:[23,2,1,""],write_audio:[23,2,1,""],write_midi:[23,2,1,""],write_musicxml:[23,2,1,""]},"muspy.Music21Dataset":{convert:[23,2,1,""]},"muspy.MusicDataset":{kind:[23,3,1,""],root:[23,3,1,""]},"muspy.MusicNetDataset":{read:[23,2,1,""]},"muspy.NESMusicDatabase":{read:[23,2,1,""]},"muspy.Note":{adjust_time:[23,2,1,""],clip:[23,2,1,""],duration:[23,3,1,""],end:[23,2,1,""],pitch:[23,3,1,""],pitch_str:[23,3,1,""],start:[23,2,1,""],time:[23,3,1,""],transpose:[23,2,1,""],velocity:[23,3,1,""]},"muspy.NoteRepresentationProcessor":{decode:[23,2,1,""],default_velocity:[23,3,1,""],dtype:[23,3,1,""],encode:[23,2,1,""],encode_velocity:[23,3,1,""],use_start_end:[23,3,1,""]},"muspy.PianoRollRepresentationProcessor":{decode:[23,2,1,""],default_velocity:[23,3,1,""],encode:[23,2,1,""],encode_velocity:[23,3,1,""]},"muspy.PitchRepresentationProcessor":{decode:[23,2,1,""],default_velocity:[23,3,1,""],encode:[23,2,1,""],use_hold_state:[23,3,1,""]},"muspy.RemoteDataset":{download:[23,2,1,""],download_and_extract:[23,2,1,""],exists:[23,2,1,""],extract:[23,2,1,""],root:[23,3,1,""],source_exists:[23,2,1,""]},"muspy.RemoteFolderDataset":{read:[23,2,1,""],root:[23,3,1,""]},"muspy.RemoteMusicDataset":{kind:[23,3,1,""],root:[23,3,1,""]},"muspy.ScorePlotter":{adjust_fonts:[23,2,1,""],axes:[23,3,1,""],fig:[23,3,1,""],font_path:[23,3,1,""],font_scale:[23,3,1,""],note_spacing:[23,3,1,""],plot_bar_line:[23,2,1,""],plot_clef:[23,2,1,""],plot_final_bar_line:[23,2,1,""],plot_key_signature:[23,2,1,""],plot_note:[23,2,1,""],plot_object:[23,2,1,""],plot_staffs:[23,2,1,""],plot_tempo:[23,2,1,""],plot_time_signature:[23,2,1,""],resolution:[23,3,1,""],set_baseline:[23,2,1,""],update_boundaries:[23,2,1,""]},"muspy.Tempo":{qpm:[23,3,1,""],time:[23,3,1,""]},"muspy.TimeSignature":{denominator:[23,3,1,""],numerator:[23,3,1,""],time:[23,3,1,""]},"muspy.Track":{annotations:[23,3,1,""],chords:[23,3,1,""],clip:[23,2,1,""],get_end_time:[23,2,1,""],is_drum:[23,3,1,""],lyrics:[23,3,1,""],name:[23,3,1,""],notes:[23,3,1,""],program:[23,3,1,""],transpose:[23,2,1,""]},"muspy.WikifoniaDataset":{read:[23,2,1,""]},"muspy.datasets":{ABCFolderDataset:[18,1,1,""],Dataset:[18,1,1,""],DatasetInfo:[18,1,1,""],EssenFolkSongDatabase:[18,1,1,""],FolderDataset:[18,1,1,""],HaydnOp20Dataset:[18,1,1,""],HymnalDataset:[18,1,1,""],HymnalTuneDataset:[18,1,1,""],JSBChoralesDataset:[18,1,1,""],LakhMIDIAlignedDataset:[18,1,1,""],LakhMIDIDataset:[18,1,1,""],LakhMIDIMatchedDataset:[18,1,1,""],MAESTRODatasetV1:[18,1,1,""],MAESTRODatasetV2:[18,1,1,""],Music21Dataset:[18,1,1,""],MusicDataset:[18,1,1,""],MusicNetDataset:[18,1,1,""],NESMusicDatabase:[18,1,1,""],NottinghamDatabase:[18,1,1,""],RemoteABCFolderDataset:[18,1,1,""],RemoteDataset:[18,1,1,""],RemoteFolderDataset:[18,1,1,""],RemoteMusicDataset:[18,1,1,""],WikifoniaDataset:[18,1,1,""],get_dataset:[18,5,1,""],list_datasets:[18,5,1,""]},"muspy.datasets.ABCFolderDataset":{on_the_fly:[18,2,1,""],read:[18,2,1,""]},"muspy.datasets.Dataset":{citation:[18,2,1,""],info:[18,2,1,""],save:[18,2,1,""],split:[18,2,1,""],to_pytorch_dataset:[18,2,1,""],to_tensorflow_dataset:[18,2,1,""]},"muspy.datasets.FolderDataset":{convert:[18,2,1,""],converted_dir:[18,2,1,""],converted_exists:[18,2,1,""],exists:[18,2,1,""],load:[18,2,1,""],on_the_fly:[18,2,1,""],read:[18,2,1,""],root:[18,3,1,""],use_converted:[18,2,1,""]},"muspy.datasets.HaydnOp20Dataset":{read:[18,2,1,""]},"muspy.datasets.HymnalDataset":{download:[18,2,1,""],read:[18,2,1,""]},"muspy.datasets.HymnalTuneDataset":{download:[18,2,1,""],read:[18,2,1,""]},"muspy.datasets.JSBChoralesDataset":{read:[18,2,1,""]},"muspy.datasets.LakhMIDIAlignedDataset":{read:[18,2,1,""]},"muspy.datasets.LakhMIDIDataset":{read:[18,2,1,""]},"muspy.datasets.LakhMIDIMatchedDataset":{read:[18,2,1,""]},"muspy.datasets.MAESTRODatasetV1":{read:[18,2,1,""]},"muspy.datasets.MAESTRODatasetV2":{read:[18,2,1,""]},"muspy.datasets.Music21Dataset":{convert:[18,2,1,""]},"muspy.datasets.MusicDataset":{kind:[18,3,1,""],root:[18,3,1,""]},"muspy.datasets.MusicNetDataset":{read:[18,2,1,""]},"muspy.datasets.NESMusicDatabase":{read:[18,2,1,""]},"muspy.datasets.RemoteDataset":{download:[18,2,1,""],download_and_extract:[18,2,1,""],exists:[18,2,1,""],extract:[18,2,1,""],root:[18,3,1,""],source_exists:[18,2,1,""]},"muspy.datasets.RemoteFolderDataset":{read:[18,2,1,""],root:[18,3,1,""]},"muspy.datasets.RemoteMusicDataset":{kind:[18,3,1,""],root:[18,3,1,""]},"muspy.datasets.WikifoniaDataset":{read:[18,2,1,""]},"muspy.external":{download_bravura_font:[19,5,1,""],download_musescore_soundfont:[19,5,1,""],get_bravura_font_dir:[19,5,1,""],get_bravura_font_path:[19,5,1,""],get_musescore_soundfont_dir:[19,5,1,""],get_musescore_soundfont_path:[19,5,1,""]},"muspy.inputs":{MIDIError:[21,4,1,""],MusicXMLError:[21,4,1,""],from_event_representation:[21,5,1,""],from_mido:[21,5,1,""],from_music21:[21,5,1,""],from_music21_opus:[21,5,1,""],from_music21_part:[21,5,1,""],from_music21_score:[21,5,1,""],from_note_representation:[21,5,1,""],from_object:[21,5,1,""],from_pianoroll_representation:[21,5,1,""],from_pitch_representation:[21,5,1,""],from_pretty_midi:[21,5,1,""],from_pypianoroll:[21,5,1,""],from_pypianoroll_track:[21,5,1,""],from_representation:[21,5,1,""],load:[21,5,1,""],load_json:[21,5,1,""],load_yaml:[21,5,1,""],read:[21,5,1,""],read_abc:[21,5,1,""],read_abc_string:[21,5,1,""],read_midi:[21,5,1,""],read_musicxml:[21,5,1,""]},"muspy.metrics":{drum_in_pattern_rate:[22,5,1,""],drum_pattern_consistency:[22,5,1,""],empty_beat_rate:[22,5,1,""],empty_measure_rate:[22,5,1,""],groove_consistency:[22,5,1,""],n_pitch_classes_used:[22,5,1,""],n_pitches_used:[22,5,1,""],pitch_class_entropy:[22,5,1,""],pitch_entropy:[22,5,1,""],pitch_in_scale_rate:[22,5,1,""],pitch_range:[22,5,1,""],polyphony:[22,5,1,""],polyphony_rate:[22,5,1,""],scale_consistency:[22,5,1,""]},"muspy.outputs":{save:[24,5,1,""],save_json:[24,5,1,""],save_yaml:[24,5,1,""],synthesize:[24,5,1,""],to_event_representation:[24,5,1,""],to_mido:[24,5,1,""],to_music21:[24,5,1,""],to_note_representation:[24,5,1,""],to_object:[24,5,1,""],to_pianoroll_representation:[24,5,1,""],to_pitch_representation:[24,5,1,""],to_pretty_midi:[24,5,1,""],to_pypianoroll:[24,5,1,""],to_representation:[24,5,1,""],write:[24,5,1,""],write_abc:[24,5,1,""],write_audio:[24,5,1,""],write_midi:[24,5,1,""],write_musicxml:[24,5,1,""]},"muspy.processors":{EventRepresentationProcessor:[25,1,1,""],NoteRepresentationProcessor:[25,1,1,""],PianoRollRepresentationProcessor:[25,1,1,""],PitchRepresentationProcessor:[25,1,1,""]},"muspy.processors.EventRepresentationProcessor":{decode:[25,2,1,""],default_velocity:[25,3,1,""],encode:[25,2,1,""],encode_velocity:[25,3,1,""],force_velocity_event:[25,3,1,""],max_time_shift:[25,3,1,""],use_end_of_sequence_event:[25,3,1,""],use_single_note_off_event:[25,3,1,""],velocity_bins:[25,3,1,""]},"muspy.processors.NoteRepresentationProcessor":{decode:[25,2,1,""],default_velocity:[25,3,1,""],dtype:[25,3,1,""],encode:[25,2,1,""],encode_velocity:[25,3,1,""],use_start_end:[25,3,1,""]},"muspy.processors.PianoRollRepresentationProcessor":{decode:[25,2,1,""],default_velocity:[25,3,1,""],encode:[25,2,1,""],encode_velocity:[25,3,1,""]},"muspy.processors.PitchRepresentationProcessor":{decode:[25,2,1,""],default_velocity:[25,3,1,""],encode:[25,2,1,""],use_hold_state:[25,3,1,""]},"muspy.schemas":{get_json_schema_path:[26,5,1,""],get_musicxml_schema_path:[26,5,1,""],get_yaml_schema_path:[26,5,1,""],validate_json:[26,5,1,""],validate_musicxml:[26,5,1,""],validate_yaml:[26,5,1,""]},"muspy.visualization":{ScorePlotter:[27,1,1,""],show:[27,5,1,""],show_pianoroll:[27,5,1,""],show_score:[27,5,1,""]},"muspy.visualization.ScorePlotter":{adjust_fonts:[27,2,1,""],axes:[27,3,1,""],fig:[27,3,1,""],font_path:[27,3,1,""],font_scale:[27,3,1,""],note_spacing:[27,3,1,""],plot_bar_line:[27,2,1,""],plot_clef:[27,2,1,""],plot_final_bar_line:[27,2,1,""],plot_key_signature:[27,2,1,""],plot_note:[27,2,1,""],plot_object:[27,2,1,""],plot_staffs:[27,2,1,""],plot_tempo:[27,2,1,""],plot_time_signature:[27,2,1,""],resolution:[27,3,1,""],set_baseline:[27,2,1,""],update_boundaries:[27,2,1,""]},muspy:{ABCFolderDataset:[23,1,1,""],Annotation:[23,1,1,""],Base:[23,1,1,""],Chord:[23,1,1,""],ComplexBase:[23,1,1,""],Dataset:[23,1,1,""],DatasetInfo:[23,1,1,""],EssenFolkSongDatabase:[23,1,1,""],EventRepresentationProcessor:[23,1,1,""],FolderDataset:[23,1,1,""],HaydnOp20Dataset:[23,1,1,""],HymnalDataset:[23,1,1,""],HymnalTuneDataset:[23,1,1,""],JSBChoralesDataset:[23,1,1,""],KeySignature:[23,1,1,""],LakhMIDIAlignedDataset:[23,1,1,""],LakhMIDIDataset:[23,1,1,""],LakhMIDIMatchedDataset:[23,1,1,""],Lyric:[23,1,1,""],MAESTRODatasetV1:[23,1,1,""],MAESTRODatasetV2:[23,1,1,""],MIDIError:[23,4,1,""],Metadata:[23,1,1,""],Music21Dataset:[23,1,1,""],Music:[23,1,1,""],MusicDataset:[23,1,1,""],MusicNetDataset:[23,1,1,""],MusicXMLError:[23,4,1,""],NESMusicDatabase:[23,1,1,""],Note:[23,1,1,""],NoteRepresentationProcessor:[23,1,1,""],NottinghamDatabase:[23,1,1,""],PianoRollRepresentationProcessor:[23,1,1,""],PitchRepresentationProcessor:[23,1,1,""],RemoteABCFolderDataset:[23,1,1,""],RemoteDataset:[23,1,1,""],RemoteFolderDataset:[23,1,1,""],RemoteMusicDataset:[23,1,1,""],ScorePlotter:[23,1,1,""],Tempo:[23,1,1,""],TimeSignature:[23,1,1,""],Track:[23,1,1,""],WikifoniaDataset:[23,1,1,""],adjust_resolution:[23,5,1,""],adjust_time:[23,5,1,""],append:[23,5,1,""],clip:[23,5,1,""],datasets:[18,0,0,"-"],download_bravura_font:[23,5,1,""],download_musescore_soundfont:[23,5,1,""],drum_in_pattern_rate:[23,5,1,""],drum_pattern_consistency:[23,5,1,""],empty_beat_rate:[23,5,1,""],empty_measure_rate:[23,5,1,""],external:[19,0,0,"-"],from_event_representation:[23,5,1,""],from_mido:[23,5,1,""],from_music21:[23,5,1,""],from_music21_opus:[23,5,1,""],from_music21_part:[23,5,1,""],from_music21_score:[23,5,1,""],from_note_representation:[23,5,1,""],from_object:[23,5,1,""],from_pianoroll_representation:[23,5,1,""],from_pitch_representation:[23,5,1,""],from_pretty_midi:[23,5,1,""],from_pypianoroll:[23,5,1,""],from_pypianoroll_track:[23,5,1,""],from_representation:[23,5,1,""],get_bravura_font_dir:[23,5,1,""],get_bravura_font_path:[23,5,1,""],get_dataset:[23,5,1,""],get_end_time:[23,5,1,""],get_json_schema_path:[23,5,1,""],get_musescore_soundfont_dir:[23,5,1,""],get_musescore_soundfont_path:[23,5,1,""],get_musicxml_schema_path:[23,5,1,""],get_real_end_time:[23,5,1,""],get_yaml_schema_path:[23,5,1,""],groove_consistency:[23,5,1,""],inputs:[21,0,0,"-"],list_datasets:[23,5,1,""],load:[23,5,1,""],load_json:[23,5,1,""],load_yaml:[23,5,1,""],metrics:[22,0,0,"-"],n_pitch_classes_used:[23,5,1,""],n_pitches_used:[23,5,1,""],outputs:[24,0,0,"-"],pitch_class_entropy:[23,5,1,""],pitch_entropy:[23,5,1,""],pitch_in_scale_rate:[23,5,1,""],pitch_range:[23,5,1,""],polyphony:[23,5,1,""],polyphony_rate:[23,5,1,""],processors:[25,0,0,"-"],read:[23,5,1,""],read_abc:[23,5,1,""],read_abc_string:[23,5,1,""],read_midi:[23,5,1,""],read_musicxml:[23,5,1,""],remove_duplicate:[23,5,1,""],save:[23,5,1,""],save_json:[23,5,1,""],save_yaml:[23,5,1,""],scale_consistency:[23,5,1,""],schemas:[26,0,0,"-"],show:[23,5,1,""],show_pianoroll:[23,5,1,""],show_score:[23,5,1,""],sort:[23,5,1,""],synthesize:[23,5,1,""],to_event_representation:[23,5,1,""],to_mido:[23,5,1,""],to_music21:[23,5,1,""],to_note_representation:[23,5,1,""],to_object:[23,5,1,""],to_ordered_dict:[23,5,1,""],to_pianoroll_representation:[23,5,1,""],to_pitch_representation:[23,5,1,""],to_pretty_midi:[23,5,1,""],to_pypianoroll:[23,5,1,""],to_representation:[23,5,1,""],transpose:[23,5,1,""],validate_json:[23,5,1,""],validate_musicxml:[23,5,1,""],validate_yaml:[23,5,1,""],visualization:[27,0,0,"-"],write:[23,5,1,""],write_abc:[23,5,1,""],write_audio:[23,5,1,""],write_midi:[23,5,1,""],write_musicxml:[23,5,1,""]}},objnames:{"0":["py","module","Python module"],"1":["py","class","Python class"],"2":["py","method","Python method"],"3":["py","attribute","Python attribute"],"4":["py","exception","Python exception"],"5":["py","function","Python function"]},objtypes:{"0":"py:module","1":"py:class","2":"py:method","3":"py:attribute","4":"py:exception","5":"py:function"},terms:{"18th":[22,23,40],"21st":[22,23,29,40],"32nd":[22,23,40],"boolean":[1,21,23,25,41,43,44,45],"break":[22,23,40],"byte":[23,24,34],"case":[18,23],"class":[14,21,22,23,24,29,40,41,42,43,44,45],"default":[0,2,4,5,6,7,8,9,10,11,12,16,17,18,21,23,24,25,27,30,32,33,34,35,37,38,39,41,42,43,44,45,46,47,48],"f\u00fcr":28,"float":[7,9,12,16,17,18,22,23,27,40,48],"function":[0,2,4,5,6,7,8,9,10,11,12,16,17,18,23,42],"import":[14,28],"int":[0,2,4,5,7,8,9,10,11,12,16,17,18,21,22,23,24,25,27,30,35,37,38,40,41,43,44,45,46,48],"new":[0,2,4,5,6,7,8,9,10,11,23],"public":29,"return":[0,1,2,4,5,6,7,8,9,10,11,12,16,17,18,19,21,22,23,24,25,26,27,28,30,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,48],"true":[0,2,4,5,6,7,8,9,10,11,12,14,16,17,18,21,23,24,25,32,39,41,43,44],"while":[2,7,8,11,21,23,29,33,34,41],And:28,Axes:[23,27,48],For:[0,7,12,16,17,18,23,24,25,28,29,43,47],Has:[21,23,24,32,39],NES:[13,14,18,23],That:[7,11,23,47],The:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,22,23,24,25,34,40,41,42,43,44,45,47,48],Then:28,There:28,These:[20,22,40,47],Will:[23,24,32,39],__getitem__:[12,18,23],__len__:[12,18,23],__repr__:23,_are:[22,23,40],_at:[22,23,40],_attribut:23,_beat:[22,23,40],_class:[22,23,40],_consist:[22,23,40],_convert:[12,16,17,18,23],_entropi:[22,23,40],_extens:[16,18,23],_in:[22,23,40],_info:[12,18,23],_is:[22,23,40],_least:[22,23,40],_list_attribut:23,_measur:[22,23,40],_multipl:[22,23,40],_note:[22,23,40],_on:[22,23,40],_one:[22,23,40],_optional_attribut:23,_pattern:[22,23,40],_pitch:[22,23,40],_rate:[22,23,40],_scale:[22,23,40],_sourc:[12,18,23],_step:[22,23,40],_time:47,_when:[22,23,40],_where:[22,23,40],aaai:[22,23,40],abc:[7,13,16,17,18,21,23,24,29],abcfolderdataset:[16,17,18,23],abil:47,about:[18,23],absolut:47,accept:[21,23,41,43,44,45],accompani:[22,23,40],accord:[11,21,23,41,43,44,45],acoust:[11,21,23,41,43,44,45],across:29,activ:[21,23,24,25,41],add:[23,24,25,41],addit:[12,16,18,23,24,34,47],adjust:[0,1,2,4,5,6,7,8,9,10,11,23,27],adjust_font:[23,27],adjust_resolut:[7,23],adjust_tim:[0,1,2,4,5,6,7,8,9,10,11,23],advanc:23,advantag:[23,24,34],adversari:[22,23,40],after:[12,17,18,23],against:[23,26,32,39],aiff:[23,24,46],align:[18,23],all:[0,1,2,4,5,6,7,8,9,10,11,12,16,17,18,21,22,23,24,25,28,33,34,40,41],allow_unicod:[23,24],along:23,also:[1,14,18,22,23,40],alto:[23,27,48],ani:[0,23,24,29],annot:[7,11,23,24,28],anoth:[7,11,23,28],api:42,append:[1,7,11,21,23,24,25,41],appli:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,23],archiv:[12,17,18,23],argument:[12,16,17,18,21,23,24,32,39],arrai:[12,16,17,18,21,23,24,25,41,43,44,45],array_lik:[12,16,17,18,23],artifici:[22,23,40],arxiv:29,ascii:[23,24,32,39],assess:28,assum:[7,21,23,32,39],asterisk:13,attr1:[0,2,4,5,6,7,8,9,10,11,23],attr2:[0,2,4,5,6,7,8,9,10,11,23],attr:[0,2,4,5,6,7,8,9,10,11,23],attribut:[0,1,2,4,5,6,7,8,9,10,11,12,16,17,18,23,24,32,39,47],audio:[7,23,24,29,46],audio_format:[23,24,46],automat:[7,11,12,18,23],avail:[7,12,16,17,18,23,29,32,39],averag:[22,23,40],avoid:[23,24,34],axes:[23,27,48],bach:[18,23],backend:[21,23,24,30,33,48],bar:[23,27],base:[0,2,4,5,6,7,8,9,10,11,14,16,17,21,23,24,25,29,42],baselin:[23,27],basic:28,bass:[23,27,48],beat:[7,22,23,40,47],beautifulli:[23,28],been:[21,23,29,33,34,41],beethoven:28,befor:[23,24,25,41],being:[16,18,22,23,40],below:[12,18,23],berg:29,better:[0,23],between:[3,22,23,40,47],bin:[21,23,24,25,41],binari:[22,23,24,25,40,42,44],bool:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,21,23,24,25,32,34,36,39,41,43,44,45],both:48,bottom:[23,27],bound:[2,7,8,11,23],boundari:[23,27],bravura:[19,23,27,48],build:[12,16,18,23,29],built:[16,18,23,27,48],call:[7,11,22,23,40],callabl:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,23],can:[0,2,7,8,12,16,17,18,21,23,24,25,28,29,34,41],cast:[23,25],ceil:[7,23],certain:[0,1,2,4,5,6,7,8,9,10,11,18,22,23,40],chang:[7,23,24,25,37,41],charact:[23,24,32,39],check:[7,11,16,17,18,23],checksum:[12,18,23],chen:29,chia:[22,23,40],choral:[13,18,23],chord:[11,13,23],citat:[12,16,17,18,23,29],claim:29,classic:13,classmethod:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,23],cleanup:[12,17,18,23],clef:[23,27,48],clef_octav:[23,27,48],clip:[2,7,8,11,23],close:[21,23,24,25,33,34,41],close_al:[21,23,33,34,41],code:29,collect:[6,18,23,28,29],column:[23,25,44],com:[12,18,23],come:[14,18],common:[21,22,23,24,29,31,42,47],commonli:[21,23,24,25,29],commun:29,compar:[22,40],comparison:42,compat:[23,24,25,45],complexbas:[7,11,23],compon:29,compos:[18,22,23,40],compress:[21,23,24,32,36,39],comput:[0,2,4,5,6,7,8,9,10,11,22,23,40],concept:28,concurr:[12,16,17,18,22,23,40],confer:[22,23,29,40],configur:[23,24,25,27,41,42,48],consid:[22,23,40],consist:[22,23,29,40],constant:[22,23,40],construct:[0,2,4,5,6,7,8,9,10,11,22,23,40],contain:[0,1,2,4,5,6,7,8,9,10,11,18,23],content:[1,23],continu:[22,23,40],contribut:29,convers:[12,16,17,18,21,23,24,25,41],convert:[1,7,12,14,16,17,18,21,23,24,25,27,30,33,34,35,36,37,38,42],converted_dir:[16,17,18,23],converted_exist:[16,17,18,23],coordin:[23,27],copi:[0,2,4,5,6,7,8,9,10,11,23],copyright:[6,23],core:[7,23],corpu:[13,18,23],corresepond:23,correspod:[21,23,33,34,41],correspond:[0,1,2,4,5,6,7,8,9,10,11,18,23],corrupt:[12,16,17,18,23],could:[22,29,40],count:[22,23,40],creat:[1,12,14,16,17,18,23],creation:29,creator:[6,23,28],current:[23,24,25,45,47],custom:[12,16,18,23,29],data:[0,1,2,4,5,6,7,8,9,10,11,12,14,16,17,18,21,22,23,24,25,28,29,31,32,39,40,41,43,44,45],data_str:[21,23],databas:[13,14,18,23],dataset:[20,23,28,29],datasetinfo:[12,18,23],deal:[21,23,29,33,34,41],decid:[21,23,33,34,41],decod:[21,23,25,38,41,42,43,44,45],decompos:[21,23,24,25,41],deep:[0,2,4,5,6,7,8,9,10,11,23],deepcopi:[0,2,4,5,6,7,8,9,10,11,23],default_resolut:[7,21,23,30,35,37,41,43,44,45],default_schema_vers:26,default_veloc:[2,8,21,23,25,38,41,43,44,45],defin:[22,23,25,40],demo:[22,23,40],denomin:[10,23,27,28],denot:42,depend:[12,16,18,19,23,47],descript:[0,2,4,5,6,7,8,9,10,11,18,23,29],desir:[18,23],detail:[12,16,18,20,23],determin:[7,11,23,29,47],develop:[23,29],dict:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,23],dict_:[0,2,4,5,6,7,8,9,10,11,23],dictionari:[0,1,2,4,5,6,7,8,9,10,11,12,18,23],differ:[3,22,23,24,25,40,41,44],dimens:[23,24,25,43],directori:[12,16,17,18,19,23],disabl:[12,16,17,18,23],discard:[23,24,25,43],distanc:[22,23,40],distinguish:[2,8,23],distribut:29,divis:47,do_someth:14,doc:[18,23],docstr:29,document:[7,12,16,18,23],doe:[12,18,23],dong:[22,23,29,40],dot:28,doubl:[7,23],downbeat:[7,23,28],download:[12,14,17,18,19,23,24,27,29,46,48],download_and_extract:[12,14,17,18,23],download_bravura_font:[19,23],download_musescore_soundfont:[19,23],drum:[7,11,22,23,40],drum_in_pattern_r:[22,23,40],drum_pattern_consist:[22,23,40],dtype:[23,24,25,41,43,44,45,46],dump:[23,24,32,39],dupl:[22,23,40],duplic:[1,7,11,21,23,33,34,41],duplicate_note_mod:[21,23,33,34,41],durat:[2,8,21,23,24,25,27,28,42,43],each:[7,11,12,14,18,23,29],earliest:[21,23,33,34,41],easi:[14,18,29],edu:[18,23],effect:[21,23,24,32,39,41],effort:29,element:7,elis:28,emploi:[23,24,34],empti:[0,2,4,5,6,7,8,9,10,11,22,23,24,32,39,40],empty_beat_r:[22,23,40],empty_measure_r:[22,23,40],enabl:[16,17,18,23],encod:[21,23,24,25,32,39,41,42,43,44,45],encode_veloc:[21,23,24,25,41,43,44],end:[2,7,8,21,23,24,25,27,41,43],ensure_ascii:[23,24,32,39],entropi:[22,23,40],equal:[12,16,17,18,23],equival:[0,2,4,5,6,7,8,9,10,11,23],error:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,23],escap:[23,24,32,39],essen:[13,18,23],essenfolksongdatabas:[18,23],essenti:[23,29],etc:[5,23,29],evalu:[22,23,29,40],event:[7,11,21,23,24,25,29,42],eventrepresentationprocessor:[23,25,41],everi:[23,24,25,41],exampl:[7,12,14,16,17,18,23,24,25,28,42,43],except:[21,23],exist:[12,16,17,18,23],expect:[12,18,23],explor:[22,23,40],extend:[7,11,12,16,18,23],extens:[16,18,21,23,24,32,36,39,46],extern:[20,29],extract:[12,14,17,18,23],factor:[7,23,27,47,48],factori:[12,16,17,18,23],fail:[12,16,17,18,23],fair:29,fals:[7,11,12,16,17,18,21,23,24,25,28,32,34,39,41,43,44,45],field:[21,23,30],fifo:[21,23,33,34,41],fifth:[4,23],fig:[23,27,48],figsiz:[23,27,48],figur:[23,27,48],file:[6,7,12,16,17,18,21,23,24,26,28,30,32,33,36,39,46,47],filenam:[12,16,17,18,23,24,36],finetun:[23,27,48],first:[21,23,27,28,33,34,41],fiul:32,flac:[23,24,46],flat:[4,23],flexibl:[0,48],floor:[7,23],fly:[16,17,18,23],folder:[16,17,18,23],folderdataset:[16,17,18,23],folk:[13,18,23],follow:[1,7,12,18,23,28,29,40,47],font:[19,23,27,48],font_path:[23,27,48],font_scal:[23,27,48],forc:[16,17,18,23],force_velocity_ev:[23,24,25,41],format:[0,1,2,4,5,6,7,8,9,10,11,12,13,16,17,18,21,23,24,29,31,32,39,46],formula:[7,23,47],found:[12,16,17,18,22,23,40,47],frac:[22,23,40,47],from:[0,1,2,4,5,6,7,8,9,10,11,12,14,16,17,18,21,23,24,25,29,32,36,39,41,42,46],from_:31,from_dict:[0,1,2,4,5,6,7,8,9,10,11,23],from_event_represent:[21,23,25,41],from_mido:[21,23,34],from_music21:[21,23,35],from_music21_opu:[21,23],from_music21_part:[21,23],from_music21_scor:[21,23],from_note_represent:[21,23,25,43],from_object:[7,21,23],from_pianoroll_represent:[21,23,25,44],from_pitch_represent:[21,23,25,42,45],from_pretty_midi:[21,23,37],from_pypianorol:[21,23,38],from_pypianoroll_track:[21,23],from_represent:[21,23],front:[22,23,40],full:[7,12,16,17,18,23],func:[0,2,4,5,6,7,8,9,10,11,23],g_i:[22,23,40],game:13,gan:[22,23,40],gener:[11,19,21,22,23,24,29,40,41,43,44,45,46],genr:13,get:29,get_bravura_font_dir:[19,23],get_bravura_font_path:[19,23],get_dataset:[18,23],get_end_tim:[7,11,23],get_json_schema_path:[23,26],get_musescore_soundfont_dir:[19,23],get_musescore_soundfont_path:[19,23],get_musicxml_schema_path:[23,26],get_real_end_tim:[7,23],get_yaml_schema_path:[23,26],getter:[2,8],github:29,given:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,21,23,24,32,39],got:28,grace:[21,23,36],grand:[11,21,23,41,43,44,45],great:29,groov:[22,23,40],groove_consist:[22,23,40],group:[0,23],gzip:[21,23,24,32,39],halv:[7,23],ham:[22,23,40],handi:[2,8,23],handl:[22,23,27,40,48],hao:[22,23,29,40],hard:28,has:[0,2,4,5,6,7,8,9,10,11,22,23,40],have:[21,23,28,29,33,34,41],haydn:[13,18,23],haydnop20dataset:[18,23],height:[23,27,48],help:[12,16,17,18,23],here:[3,7,11,12,13,14,15,16,17,18,22,23,28,29,40,42,47],histogram:[22,23,40],hold:[0,21,23,24,25,42,45],homepag:[18,23,29],host:29,hour:13,hsiao:[22,23,40],hsuan:[22,23,40],html:[18,23],http:[11,12,18,21,23,41,43,44,45],humdrum:13,hymn:13,hymnal:[13,18,23],hymnaldataset:[18,23],hymnaltunedataset:[18,23],idx:[7,11,23],ignor:[12,16,17,18,22,23,40],ignore_except:[12,16,17,18,23],illustr:[3,15,47],implement:[2,8,22,23,29,40],inch:[23,27,48],includ:[7,11,23,24,25,29,37,41,46],increas:29,index:[7,11,12,16,17,18,23],indic:[1,12,13,16,18,21,23,24,25,41,43,44,45],infer:[21,23,24,32,36,39,46],info:[12,16,17,18,23],infom:[12,16,17,18,23],inform:[7,12,18,22,23,24,29,37,40,47],inherit:[1,12,14,18,23],input:[12,14,16,17,18,20,23,29],insensit:[18,23],inspect:23,instal:28,instanc:[0,2,4,5,6,7,8,9,10,11,12,18,23],instanti:[0,2,4,5,6,7,8,9,10,11,23],instead:[23,24,34],instrument:11,int16:[23,24,46],integ:[23,24,25,44],integr:[12,16,18,23],intellig:[22,23,40],interfac:[14,18,21,23,24,29],intern:[15,22,23,29,40],intuit:23,invalid:[0,1,2,4,5,6,7,8,9,10,11,23],is_drum:[11,21,23,28,41,43,44,45],is_sort:[7,11,23],is_valid:[0,1,2,4,5,6,7,8,9,10,11,23],is_valid_typ:[0,2,4,5,6,7,8,9,10,11,23],ismir:[22,23,29,40],isn:28,issu:29,item:[1,7,11,21,23,41,43,44,45],iter:[7,11,14,23],its:[12,16,17,18,23],itself:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,23],jazz:[22,23,40],job:[12,16,17,18,23],johann:[18,23],jsbach:13,jsbchoralesdataset:[18,23],json:[7,12,16,17,18,21,23,24,26,28,31,39],julian:29,kei:[0,2,4,5,6,7,8,9,10,11,18,23,27],key_signatur:[7,23,28],keysignatur:[7,23,28],keyword:[12,16,17,18,21,23,24,32,39],kind:[7,12,16,17,18,21,23,24,27],kirkpatrick:29,known:[12,16,17,18,23],kwarg:[7,12,16,17,18,21,23,24,27,32,33,39,48],lakh:[13,18,23],lakhmidialigneddataset:[18,23],lakhmididataset:[18,23],lakhmidimatcheddataset:[18,23],larger:[21,23,24,25,41],largest:[22,23,40],last:[7,11,23],late:[22,23,40],latest:[6,21,23,33,34,41],lead:[13,21,23,24,25,29,41],learn:[14,18,22,23,40],least:[22,23,40,47],left:[23,27],len:[7,11,23,28],length:[7,11,22,23,40],less:[22,23,40],let:28,level:[11,21,23,41,43,44,45],librari:[7,21,23,24,28,29,31,48],licens:[18,23,29],lifo:[21,23,33,34,41],like:[0,1,2,4,5,6,7,8,9,10,11,23],line:[22,23,27,40],list:[0,1,2,4,5,6,7,8,9,10,11,12,13,16,17,18,21,23,24,28,30,32,39,42],list_dataset:[18,23],literatur:[29,40],load:[7,16,17,18,21,23,28,32,39],load_:31,load_json:[21,23,32,39],load_yaml:[21,23],log_2:[22,23,40],look:[16,18,23],loselessli:[7,23,24],lossi:[21,23,24,25,41],lower:[2,7,8,11,23],ludwig:28,lun:[22,23,40],lyric:[7,11,23,28],machin:[14,18,22,23,40],made:48,maestro:[13,18,23],maestrodatasetv1:[18,23],maestrodatasetv2:[18,23],major:[4,22,23,27,40],make:[0,2,4,5,6,7,8,9,10,11,12,16,18,23],manag:[14,18,23,29],manual:[12,16,18,23],map:[0,2,4,5,6,7,8,9,10,11,23],mark:[13,23,27],match:[18,23],matplotlib:[23,27,48],matrix:[23,25,44],max_:[22,23,40],max_time_shift:[21,23,24,25,41],maximum:[12,16,17,18,21,23,24,25,41],mcaulei:29,md5:[12,18,23],mean:[22,23,40],meaning:47,measur:[22,23,40],measure_resolut:[22,23,40],melodi:[13,23,24,25,28,45],messag:[21,23,24,33,34,41],metadata:[7,23,28],meter:[22,23,40],method:[1,12,18,23,42],metric:[20,23,29,47],metronom:[23,27],midi:[2,7,8,11,13,18,21,23,24,29,34,37,41,43,44,45,47],midierror:[21,23],midifil:[7,21,23,24,34],miditrack:[21,23,24],mido:[7,21,23,24,29,33],might:29,minor:[22,23,27,28,40],minut:[7,9,23,28,47],misc:13,mit:[18,23],mode:[4,7,15,16,17,18,22,23,27,28,40],model:[23,29],modul:[18,19,21,22,24,25,26,27,42],mogren:[22,23,40],monophon:[23,24,25,42,45],more:[21,23,24,25,28,41],multi:[22,23,40],multipl:[21,22,23,33,34,40,41,47],multiprocess:[12,16,17,18,23],multitrack:[7,13,21,22,23,24,38,40],musegan:[22,23,40],musescor:[19,23,24,46],music21:[7,13,18,21,23,24,29,30],music21dataset:[18,23],music:[3,8,11,12,13,14,16,17,18,21,22,23,24,25,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],musicdataset:[16,17,18,23],musicnet:[13,18,23],musicnetdataset:[18,23],musicxml:[7,13,21,23,24,26,29,47],musicxmlerror:[21,23],muspi:[0,1,2,4,5,6,7,8,9,10,11,12,14,16,17,20,28,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,48],mxl:[23,24,36],n_job:[12,16,17,18,23],n_pitch_class_us:[22,23,40],n_pitch_classes_us:[22,23,40],n_pitches_us:[22,23,40],name:[0,6,11,12,16,17,18,23,28],nan:[22,23,40],nativ:[21,24,31],ndarrai:[21,23,24,25,41,43,44,45,46],need:[21,23,29,33,34,41,47],neg:[2,4,7,8,11,23],neighbor:[22,23,40],nes:14,nesmusicdatabas:[14,18,23],network:[22,23,40],neuip:[22,23,40],neural:[22,23,40],new_resolut:[7,23],new_tim:[0,2,4,5,6,7,8,9,10,11,23],non:[23,24,32,39],none:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,21,23,24,27,30,32,36,37,39,44,46,48],nonserializ:[23,24],normal:[22,23,40],notat:28,note:[2,4,7,9,11,12,16,17,18,21,22,23,24,25,27,28,29,30,32,33,34,35,36,37,39,40,41,42,44,45,47,48],note_spac:[23,27,48],noterepresentationprocessor:[23,25,43],noth:28,notic:[6,23],nottingham:[13,18,23],nottinghamdatabas:[18,23],now:28,number:[2,4,7,8,11,12,16,17,18,21,22,23,24,25,29,30,40,41,42,43,44,45,47],numer:[10,22,23,27,28,40],numpi:[12,16,17,18,21,23],obj1:23,obj2:23,obj:[7,11,21,23,27],object:[0,1,2,4,5,6,7,8,9,10,11,12,14,16,17,18,21,22,23,24,25,27,28,29,30,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],octav:[23,27,48],off:[21,23,24,25,33,34,41,42],offer:28,offset:[7,23],oga:[23,24,46],old:[0,2,4,5,6,7,8,9,10,11,23],old_resolut:[7,23],old_tim:[0,2,4,5,6,7,8,9,10,11,23],olof:[22,23,40],on_the_fli:[16,17,18,23],one:[11,22,23,24,25,40,41],onli:[11,18,21,22,23,24,25,27,33,40,41,42,45],ons:42,onset:[22,23,40],open:[22,23,29,40],oper:[1,23],optim:[23,27,48],option:[0,2,4,6,7,8,11,12,16,17,18,21,23,24,25,27,30,32,33,34,35,36,37,39,41,43,44,45,46,48],opu:[21,23],order:[0,1,2,4,5,6,7,8,9,10,11,23],ordereddict:[0,2,4,5,6,7,8,9,10,11,23],org:[11,21,23,41,43,44,45],organ:[0,23],origin:[12,16,17,18,23],other:[7,11,21,23,24,29,31],otherwis:[12,16,17,18,22,23,24,25,40,43,44],out:[21,23,33,34,41],output:[12,16,17,18,20,23,25,29,37,41,43,44,45],outsid:[21,23],over:[14,22,23,40],overid:[12,18,23],overview:29,overwrit:[12,17,18,23],owner:29,packag:[22,23,40],page:[18,23],pair:[0,2,4,5,6,7,8,9,10,11,23],paper:29,paramet:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,21,22,23,24,25,26,27,30,32,33,34,35,36,37,38,39,40,41,43,44,45,46,48],pars:[21,23],part:[21,23,29],partial:13,particular:29,pass:[12,16,17,18,21,23,24,32,39],path:[7,12,16,17,18,19,21,23,24,26,27,30,32,33,36,39,46,48],pattern:[22,23,40],per:[7,9,21,22,23,24,27,28,30,35,37,40,41,43,44,45,46,47,48],percuss:[11,21,23,41,43,44,45],permiss:29,piano:[7,11,14,21,23,24,25,27,29,41,42,43,45],pianorol:[7,14,21,22,23,27,40,48],pianorollrepresentationprocessor:[23,25,44],pip:[28,29],pipelin:[14,18,28,29],pitch:[2,7,8,11,21,22,23,24,25,27,28,29,41,42,43,44],pitch_class_entropi:[22,23,40],pitch_entropi:[22,23,40],pitch_in_scale_r:[22,23,40],pitch_rang:[22,23,40],pitch_str:[8,23],pitches_str:[2,23],pitchrepresentationprocessor:[23,25,42,45],plai:[22,23,40],playback:47,pleas:[12,16,18,23,28,29],plot:[23,27,48],plot_bar_lin:[23,27],plot_clef:[23,27],plot_final_bar_lin:[23,27],plot_key_signatur:[23,27],plot_not:[23,27],plot_object:[23,27],plot_staff:[23,27],plot_tempo:[23,27],plot_time_signatur:[23,27],plotter:[23,27,48],polici:[21,23,33,34,41],polyphon:[21,22,23,24,25,40,41],polyphoni:[22,23,40],polyphony_r:[22,23,40],posit:[2,4,7,8,11,22,23,27,40],possibl:48,poster:29,ppq:47,ppqn:47,precomput:[16,18,23],prepar:[14,28,29],preprocess:[23,29],presenc:[23,25,44],presetn:[21,23,33,34,41],pretty_midi:[7,21,23,24,29,33],pretty_str:[0,2,4,5,6,7,8,9,10,11,23],prettymidi:[7,21,23,24,37],prevent:[12,16,18,23],previou:[23,24,25,41],print:[0,1,2,4,5,6,7,8,9,10,11,12,16,17,18,23,28],proceed:[22,23,29,40],process:[15,23],processor:[20,23,29,41,42,43,44,45],program:[11,21,23,28,41,43,44,45],properli:23,properti:[2,8,16,17,18,23],propos:[29,40],provid:[3,14,18,19,21,22,23,24,26,27,29,31,40,42],publish:29,puls:47,pypianorol:[7,21,22,23,24,29,40,48],python:[22,23,29,40],pytorch:[12,14,16,17,18,23,29],pyyaml:[23,24,32,39],qpm:[7,9,23,27,28,47],qualiti:29,quantit:[22,23,40],quarter:[7,9,21,23,27,28,30,35,37,41,43,44,45,47,48],rais:[0,2,4,5,6,7,8,9,10,11,12,18,23],random:[12,16,17,18,23],random_st:[12,16,17,18,23],randomst:[12,16,17,18,23],rang:[22,23,40],rate:[22,23,24,40,46],rather:[21,23,24,25,43],ratio:[12,16,17,18,22,23,40],raw:[7,23,24,46],read:[7,12,16,17,18,21,23,28,30,33,36,47],read_:31,read_abc:[21,23,30],read_abc_str:[21,23],read_midi:[21,23,33],read_musicxml:[21,23,36],realtim:[7,23],recurr:[22,23,40],recurs:[0,2,4,5,6,7,8,9,10,11,23],refer:[7,11,12,16,18,21,22,23,30,40,41,43,44,45,47],referencecorpu:[18,23],relat:[3,21,23,29,47],relationship:47,remot:[12,18,23],remoteabcfolderdataset:[17,18,23],remotedataset:[12,17,18,23],remotefolderdataset:[17,18,23],remotemusicdataset:[17,18,23],remov:[1,7,11,12,17,18,23],remove_dupl:[1,7,11,23],remove_invalid:[1,7,11,23],render:[23,29],repres:[23,24,25,41,43,44,45],represent:[7,12,14,16,17,18,21,23,24,25,27,29],represetant:[23,24,25,41,43,44,45],reproduc:29,resolut:[7,21,23,27,28,30,35,37,41,43,44,45,47,48],respect:[23,42],respons:29,rest:[23,24,25,42,45],result:[28,29],retriev:[22,23,29,40],rhythm:29,right:[23,27],rnn:[22,23,40],roll:[7,14,21,23,24,25,27,29,42],root:[4,12,16,17,18,22,23,27,28,40],root_str:[4,23],round:[7,23],routin:29,row:[23,25,44],run:[12,16,17,18,23,24,28,29,34],runtimeerror:[12,18,23],same:[7,11,22,23,40],sampl:[12,16,18,22,23,24,40,46],save:[7,12,16,17,18,21,23,24,29,32,39],save_:31,save_json:[7,23,24,32,39],save_yaml:[7,23,24],scale:[22,23,27,40,48],scale_consist:[22,23,40],schema:[6,20,23,29,32,39],schema_vers:[6,23,28],score:[7,21,23,24,27,29,35],scoreplott:[23,27,48],sebastian:[18,23],sec:[23,24,46],second:[0,4,5,10,23,24,25,43],see:[11,12,16,17,18,23],self:[0,2,4,5,6,7,8,9,10,11,23],semiton:[2,7,8,11,23],send:[23,24,34],sentenc:[5,23],separ:[21,23,24,25,41],sequenc:[21,23,24,25,41,43,45],sequenti:[22,23,40],serv:[12,16,18,23],set:[7,11,12,16,18,21,23,27,41,43,44,45,47],set_baselin:[23,27],setter:[2,8],setup:29,sever:[3,29,40,42],shallow:[0,2,4,5,6,7,8,9,10,11,23],shannon:[22,23,40],shape:[23,24,25,41,42,43,44,45,46],share:29,sharp:[4,23],sheet:13,shift:[21,23,24,25,41,42],shih:[22,23,40],shortcom:[22,23,40],shorthand:28,should:[12,18,23],show:[1,7,23,27,48],show_pianorol:[7,23,27,48],show_scor:[7,23,27,48],signatur:[4,7,9,10,22,23,27,40,47],singl:[21,23,24,25,41],size:[12,18,23],skip:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,23,24,32,39],skip_miss:[0,2,4,5,6,7,8,9,10,11,23,24,32,39],slide:29,smallest:47,societi:[22,23,29,40],sole:[12,16,18,23],some:[12,16,17,18,23,28,29,47],sometim:[2,8],song:[6,13,18,22,23,28,40],sort:[1,7,11,23],sound:[11,21,23,41,43,44,45],soundfont:[19,23,24,46],soundfont_path:[23,24,46],soundfount:[23,24,46],sourc:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,19,21,22,23,24,25,26,27,29,30,32,33,34,35,36,37,38,39,40,41,43,44,45,46,48],source_exist:[12,17,18,23],source_filenam:[6,23,28],source_format:[6,23],space:[23,27,48],special:[12,16,18,21,23,24,25,45],specif:[7,11,21,23,24,30,41,43,44,45],split:[12,16,17,18,23],split_filenam:[12,16,17,18,23],staff:[23,27],stamp:[0,4,5,6,7,9,10,11,23],standard:29,start:[0,2,4,5,8,9,10,21,23,24,25,27,29,43],state:[12,16,17,18,21,23,24,25,45],statist:[22,40],statu:[23,24,34],step:[0,2,4,5,7,8,9,10,21,22,23,24,25,27,29,30,35,37,40,41,42,43,44,45,47,48],store:[0,1,2,4,5,6,7,8,9,10,11,12,16,17,18,23,24,47],str:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,21,22,23,24,25,26,27,30,32,33,36,39,40,41,43,44,45,46,48],stream:[7,21,23,24,35],string:[0,2,4,5,6,7,8,9,10,11,23],subset:[18,23],success:[12,16,18,23],successfulli:[12,18,23],sum_:[22,23,40],summar:40,support:[1,12,14,16,18,21,23,24,27,36,37,42,46,48],sure:[12,16,18,23,28],syllabl:[5,23],symbol:[3,7,21,22,23,24,29,31,40,42],synthes:[7,23,24,46],synthesi:29,system:[14,18,22,23,29,40,47],take:[16,18,23,42],tar:[12,18,23],target:[7,12,16,17,18,23,24,27],taylor:29,technic:29,tempo:[7,23,24,27,28,37,47],tensor:[12,16,17,18,23],tensorflow:[12,14,16,17,18,23,29],test:[12,16,17,18,23],textio:[21,23,24,32,39],than:[21,22,23,24,25,40,41,43],thank:29,them:[42,47],thi:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,19,21,22,23,24,25,26,27,28,29,40,41,45,47],those:[0,2,4,5,6,7,8,9,10,11,23,24,32,39],three:[12,16,17,18,23,31],threshold:[22,23,40],through:[22,23,28,29,40],tick:[21,23,24,25,41,42,47],time:[0,1,2,4,5,6,7,8,9,10,11,21,22,23,24,25,27,28,29,30,35,37,40,41,42,43,44,45,48],time_signatur:[7,23,28],timesignatur:[7,23,28],titl:[6,23,28],to_:31,to_event_represent:[7,23,24,25,41],to_mido:[7,23,24,34],to_music21:[7,23,24,35],to_note_represent:[7,23,24,25,43],to_object:[7,23,24],to_ordered_dict:[0,1,2,4,5,6,7,8,9,10,11,23],to_pianoroll_represent:[7,23,24,25,44],to_pitch_represent:[7,23,24,25,42,45],to_pretty_midi:[7,23,24,37],to_pypianorol:[7,23,24,38],to_pytorch_dataset:[12,14,16,17,18,23],to_represent:[7,12,16,17,18,23,24],to_tensorflow_dataset:[12,16,17,18,23],token:[23,24,25,45],tonic:[4,23],tool:[23,27,29,48],toolkit:[23,29],top:[23,27],torch:[12,16,17,18,23],total:[22,23,40],touch:29,track:[7,21,22,23,28,35,40,41,43,44,45],train:[12,14,16,17,18,22,23,29,40],transform:[22,23,40],transpos:[2,7,8,11,23],trebl:[23,27,48],tripl:[22,23,40],tune:[13,18,21,23,30],tupl:[23,24,25,42,43],tutori:28,two:[12,15,16,17,18,21,22,23,24,25,40,41,42,47,48],type:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,21,22,23,24,25,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,48],uint16:[23,25],uint8:[23,24,25,44],unchang:23,uncompress:[23,24,36],under:29,uniqu:[22,23,40],unit:47,univers:[7,23],unpitch:[21,23,36],updat:[21,23,27,29],update_boundari:[23,27],upper:[2,7,8,11,23],url:[12,18,23],use:[14,16,17,18,21,23,24,25,28,29,32,33,34,38,39,41,43,44,45,48],use_convert:[16,17,18,23],use_end_of_sequence_ev:[21,23,24,25,41],use_hold_st:[21,23,24,25,45],use_note_off_messag:[23,24,34],use_single_note_off_ev:[21,23,24,25,41],use_start_end:[21,23,24,25,43],used:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,21,22,23,24,25,29,33,34,40,41,47],useful:[2,8,23],uses:[23,24,25,41],using:[14,21,23,24,28,30,33,34],usual:29,utf:[21,23,24,32,39],util:[12,16,17,18,23,29],valid:[0,1,2,4,5,6,7,8,9,10,11,12,16,17,18,23,26,32,39],validate_json:[23,26],validate_musicxml:[23,26],validate_typ:[0,2,4,5,6,7,8,9,10,11,23],validate_yaml:[23,26],valu:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,21,23,24,25,32,38,39,41,42,43,44,45,47],value1:[0,2,4,5,6,7,8,9,10,11,23],value2:[0,2,4,5,6,7,8,9,10,11,23],van:28,variabl:23,vector:[22,23,40],veloc:[2,7,8,11,21,23,24,25,28,34,38,41,42,43,44,45],velocity_bin:[21,23,24,25,41],verbos:[12,16,17,18,23],version:[6,23,29],video:29,visual:[7,20,23,29],vouch:29,wai:[7,23],want:[28,29],warn:[16,17,18,23],wav:[23,24,46],waveform:[23,24,46],web:[18,23],welcom:28,well:[12,16,18,23],wen:[22,23,29,40],what:28,when:[16,18,21,23,24,25,32,33,34,38,39,41,43,44,45,47],where:[22,23,24,25,40,41,43,44,45],whether:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,21,23,24,25,29,32,34,36,39,41,43,44,45],which:[2,8,16,18,21,23,24,25,33,34,41,42,47],whole:[12,16,17,18,23],whose:[0,2,4,5,6,7,8,9,10,11,23],width:[23,27,48],wikifonia:[13,18,23],wikifoniadataset:[18,23],wish:29,word:[5,23],work:[3,19,22,23,26,29,40],workshop:[22,23,40],wrapper:[21,23,24],write:[7,23,24,28,30,33,36,46],write_:31,write_abc:[7,23,24,30],write_audio:[7,23,24,46],write_midi:[7,23,24,33],write_midi_mido:[23,24,33],write_midi_pretty_midi:[23,24,33],write_musicxml:[7,23,24,36],www:[11,12,18,21,23,41,43,44,45],xml:[23,24,36],yaml:[0,1,2,4,5,6,7,8,9,10,11,12,16,17,18,21,23,24,26,31,32],yang:[22,23,40],yet:[21,23,24,33,34,37,41],you:[28,29],your:29,zero:[22,23,24,27,34,40,48]},titles:["Annotation Class","Base Classes","Chord Class","MusPy Classes","KeySignature Class","Lyric Class","Metadata Class","Music Class","Note Class","Tempo Class","TimeSignature Class","Track Class","Base Dataset Classes","Supported Datasets","Datasets","Iterating over a MusPy Dataset object","Local Dataset Classes","Remote Dataset Classes","muspy.datasets","muspy.external","Technical Documentation","muspy.inputs","muspy.metrics","muspy","muspy.outputs","muspy.processors","muspy.schemas","muspy.visualization","Getting Started","MusPy documentation","ABC Interface","Input/Output Interfaces","JSON Interface","MIDI I/O Interface","Mido Interface","music21 Interface","MusicXML Interface","pretty_midi Interface","Pypianoroll Interface","YAML Interface","Metrics","Event-based Representation","Representations","Note-based Representation","Piano-roll Representation","Pitch-based Representation","Synthesis","Timing in MusPy","Visualization"],titleterms:{"class":[0,1,2,3,4,5,6,7,8,9,10,11,12,16,17,18,25,27],"function":[19,21,22,24,26,27],abc:30,annot:0,base:[1,12,18,41,43,45],chord:2,cite:29,complexbas:1,content:29,dataset:[12,13,14,15,16,17,18],disclaim:29,document:[20,29],error:21,event:41,extern:19,featur:[23,29],get:28,input:[21,31],instal:29,interfac:[30,31,32,33,34,35,36,37,38,39],iter:15,json:32,keysignatur:4,local:16,lyric:5,metadata:6,metric:[22,40],midi:33,mido:34,music21:35,music:7,musicxml:36,muspi:[3,15,18,19,21,22,23,24,25,26,27,29,47],note:[8,43],object:15,other:40,output:[24,31],over:15,piano:[44,48],pitch:[40,45],pretty_midi:37,processor:25,pypianorol:38,relat:40,remot:17,represent:[41,42,43,44,45],rhythm:40,roll:[44,48],schema:26,score:48,start:28,support:13,synthesi:46,technic:20,tempo:9,time:47,timesignatur:10,track:11,variabl:26,visual:[27,48],why:29,yaml:39}}) \ No newline at end of file +Search.setIndex({docnames:["classes/annotation","classes/base","classes/chord","classes/index","classes/key-signature","classes/lyric","classes/metadata","classes/music","classes/note","classes/tempo","classes/time-signature","classes/track","datasets/base","datasets/datasets","datasets/index","datasets/iterator","datasets/local","datasets/remote","doc/datasets","doc/external","doc/index","doc/inputs","doc/metrics","doc/muspy","doc/outputs","doc/processors","doc/schemas","doc/visualization","getting_started","index","io/abc","io/index","io/json","io/midi","io/mido","io/music21","io/musicxml","io/pretty_midi","io/pypianoroll","io/yaml","metrics","representations/event","representations/index","representations/note","representations/pianoroll","representations/pitch","synthesis","timing","visualization"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":3,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":2,"sphinx.domains.rst":2,"sphinx.domains.std":1,"sphinx.ext.intersphinx":1,"sphinx.ext.viewcode":1,sphinx:56},filenames:["classes/annotation.rst","classes/base.rst","classes/chord.rst","classes/index.rst","classes/key-signature.rst","classes/lyric.rst","classes/metadata.rst","classes/music.rst","classes/note.rst","classes/tempo.rst","classes/time-signature.rst","classes/track.rst","datasets/base.rst","datasets/datasets.rst","datasets/index.rst","datasets/iterator.rst","datasets/local.rst","datasets/remote.rst","doc/datasets.rst","doc/external.rst","doc/index.rst","doc/inputs.rst","doc/metrics.rst","doc/muspy.rst","doc/outputs.rst","doc/processors.rst","doc/schemas.rst","doc/visualization.rst","getting_started.rst","index.rst","io/abc.rst","io/index.rst","io/json.rst","io/midi.rst","io/mido.rst","io/music21.rst","io/musicxml.rst","io/pretty_midi.rst","io/pypianoroll.rst","io/yaml.rst","metrics.rst","representations/event.rst","representations/index.rst","representations/note.rst","representations/pianoroll.rst","representations/pitch.rst","synthesis.rst","timing.rst","visualization.rst"],objects:{"":{muspy:[23,0,0,"-"]},"muspy.ABCFolderDataset":{on_the_fly:[23,2,1,""],read:[23,2,1,""]},"muspy.Annotation":{annotation:[23,3,1,""],group:[23,3,1,""],time:[23,3,1,""]},"muspy.Base":{adjust_time:[23,2,1,""],copy:[23,2,1,""],deepcopy:[23,2,1,""],from_dict:[23,2,1,""],is_valid:[23,2,1,""],is_valid_type:[23,2,1,""],pretty_str:[23,2,1,""],print:[23,2,1,""],to_ordered_dict:[23,2,1,""],validate:[23,2,1,""],validate_type:[23,2,1,""]},"muspy.Chord":{adjust_time:[23,2,1,""],clip:[23,2,1,""],duration:[23,3,1,""],end:[23,2,1,""],pitches:[23,3,1,""],pitches_str:[23,3,1,""],start:[23,2,1,""],time:[23,3,1,""],transpose:[23,2,1,""],velocity:[23,3,1,""]},"muspy.ComplexBase":{append:[23,2,1,""],extend:[23,2,1,""],remove_duplicate:[23,2,1,""],remove_invalid:[23,2,1,""],sort:[23,2,1,""]},"muspy.Dataset":{citation:[23,2,1,""],info:[23,2,1,""],save:[23,2,1,""],split:[23,2,1,""],to_pytorch_dataset:[23,2,1,""],to_tensorflow_dataset:[23,2,1,""]},"muspy.EventRepresentationProcessor":{decode:[23,2,1,""],default_velocity:[23,3,1,""],encode:[23,2,1,""],encode_velocity:[23,3,1,""],force_velocity_event:[23,3,1,""],max_time_shift:[23,3,1,""],use_end_of_sequence_event:[23,3,1,""],use_single_note_off_event:[23,3,1,""],velocity_bins:[23,3,1,""]},"muspy.FolderDataset":{convert:[23,2,1,""],converted_dir:[23,2,1,""],converted_exists:[23,2,1,""],exists:[23,2,1,""],load:[23,2,1,""],on_the_fly:[23,2,1,""],read:[23,2,1,""],root:[23,3,1,""],use_converted:[23,2,1,""]},"muspy.HaydnOp20Dataset":{read:[23,2,1,""]},"muspy.HymnalDataset":{download:[23,2,1,""],read:[23,2,1,""]},"muspy.HymnalTuneDataset":{download:[23,2,1,""],read:[23,2,1,""]},"muspy.JSBChoralesDataset":{read:[23,2,1,""]},"muspy.KeySignature":{fifths:[23,3,1,""],mode:[23,3,1,""],root:[23,3,1,""],root_str:[23,3,1,""],time:[23,3,1,""]},"muspy.LakhMIDIAlignedDataset":{read:[23,2,1,""]},"muspy.LakhMIDIDataset":{read:[23,2,1,""]},"muspy.LakhMIDIMatchedDataset":{read:[23,2,1,""]},"muspy.Lyric":{lyric:[23,3,1,""],time:[23,3,1,""]},"muspy.MAESTRODatasetV1":{read:[23,2,1,""]},"muspy.MAESTRODatasetV2":{read:[23,2,1,""]},"muspy.Metadata":{collection:[23,3,1,""],copyright:[23,3,1,""],creators:[23,3,1,""],schema_version:[23,3,1,""],source_filename:[23,3,1,""],source_format:[23,3,1,""],title:[23,3,1,""]},"muspy.Music":{adjust_resolution:[23,2,1,""],annotations:[23,3,1,""],clip:[23,2,1,""],downbeats:[23,3,1,""],get_end_time:[23,2,1,""],get_real_end_time:[23,2,1,""],key_signatures:[23,3,1,""],lyrics:[23,3,1,""],metadata:[23,3,1,""],resolution:[23,3,1,""],save:[23,2,1,""],save_json:[23,2,1,""],save_yaml:[23,2,1,""],show:[23,2,1,""],show_pianoroll:[23,2,1,""],show_score:[23,2,1,""],synthesize:[23,2,1,""],tempos:[23,3,1,""],time_signatures:[23,3,1,""],to_event_representation:[23,2,1,""],to_mido:[23,2,1,""],to_music21:[23,2,1,""],to_note_representation:[23,2,1,""],to_object:[23,2,1,""],to_pianoroll_representation:[23,2,1,""],to_pitch_representation:[23,2,1,""],to_pretty_midi:[23,2,1,""],to_pypianoroll:[23,2,1,""],to_representation:[23,2,1,""],tracks:[23,3,1,""],transpose:[23,2,1,""],write:[23,2,1,""],write_abc:[23,2,1,""],write_audio:[23,2,1,""],write_midi:[23,2,1,""],write_musicxml:[23,2,1,""]},"muspy.Music21Dataset":{convert:[23,2,1,""]},"muspy.MusicDataset":{kind:[23,3,1,""],root:[23,3,1,""]},"muspy.MusicNetDataset":{read:[23,2,1,""]},"muspy.NESMusicDatabase":{read:[23,2,1,""]},"muspy.Note":{adjust_time:[23,2,1,""],clip:[23,2,1,""],duration:[23,3,1,""],end:[23,2,1,""],pitch:[23,3,1,""],pitch_str:[23,3,1,""],start:[23,2,1,""],time:[23,3,1,""],transpose:[23,2,1,""],velocity:[23,3,1,""]},"muspy.NoteRepresentationProcessor":{decode:[23,2,1,""],default_velocity:[23,3,1,""],dtype:[23,3,1,""],encode:[23,2,1,""],encode_velocity:[23,3,1,""],use_start_end:[23,3,1,""]},"muspy.PianoRollRepresentationProcessor":{decode:[23,2,1,""],default_velocity:[23,3,1,""],encode:[23,2,1,""],encode_velocity:[23,3,1,""]},"muspy.PitchRepresentationProcessor":{decode:[23,2,1,""],default_velocity:[23,3,1,""],encode:[23,2,1,""],use_hold_state:[23,3,1,""]},"muspy.RemoteDataset":{download:[23,2,1,""],download_and_extract:[23,2,1,""],exists:[23,2,1,""],extract:[23,2,1,""],root:[23,3,1,""],source_exists:[23,2,1,""]},"muspy.RemoteFolderDataset":{read:[23,2,1,""],root:[23,3,1,""]},"muspy.RemoteMusicDataset":{kind:[23,3,1,""],root:[23,3,1,""]},"muspy.ScorePlotter":{adjust_fonts:[23,2,1,""],axes:[23,3,1,""],fig:[23,3,1,""],font_path:[23,3,1,""],font_scale:[23,3,1,""],note_spacing:[23,3,1,""],plot_bar_line:[23,2,1,""],plot_clef:[23,2,1,""],plot_final_bar_line:[23,2,1,""],plot_key_signature:[23,2,1,""],plot_note:[23,2,1,""],plot_object:[23,2,1,""],plot_staffs:[23,2,1,""],plot_tempo:[23,2,1,""],plot_time_signature:[23,2,1,""],resolution:[23,3,1,""],set_baseline:[23,2,1,""],update_boundaries:[23,2,1,""]},"muspy.Tempo":{qpm:[23,3,1,""],time:[23,3,1,""]},"muspy.TimeSignature":{denominator:[23,3,1,""],numerator:[23,3,1,""],time:[23,3,1,""]},"muspy.Track":{annotations:[23,3,1,""],chords:[23,3,1,""],clip:[23,2,1,""],get_end_time:[23,2,1,""],is_drum:[23,3,1,""],lyrics:[23,3,1,""],name:[23,3,1,""],notes:[23,3,1,""],program:[23,3,1,""],transpose:[23,2,1,""]},"muspy.WikifoniaDataset":{read:[23,2,1,""]},"muspy.datasets":{ABCFolderDataset:[18,1,1,""],Dataset:[18,1,1,""],DatasetInfo:[18,1,1,""],EssenFolkSongDatabase:[18,1,1,""],FolderDataset:[18,1,1,""],HaydnOp20Dataset:[18,1,1,""],HymnalDataset:[18,1,1,""],HymnalTuneDataset:[18,1,1,""],JSBChoralesDataset:[18,1,1,""],LakhMIDIAlignedDataset:[18,1,1,""],LakhMIDIDataset:[18,1,1,""],LakhMIDIMatchedDataset:[18,1,1,""],MAESTRODatasetV1:[18,1,1,""],MAESTRODatasetV2:[18,1,1,""],Music21Dataset:[18,1,1,""],MusicDataset:[18,1,1,""],MusicNetDataset:[18,1,1,""],NESMusicDatabase:[18,1,1,""],NottinghamDatabase:[18,1,1,""],RemoteABCFolderDataset:[18,1,1,""],RemoteDataset:[18,1,1,""],RemoteFolderDataset:[18,1,1,""],RemoteMusicDataset:[18,1,1,""],WikifoniaDataset:[18,1,1,""],get_dataset:[18,5,1,""],list_datasets:[18,5,1,""]},"muspy.datasets.ABCFolderDataset":{on_the_fly:[18,2,1,""],read:[18,2,1,""]},"muspy.datasets.Dataset":{citation:[18,2,1,""],info:[18,2,1,""],save:[18,2,1,""],split:[18,2,1,""],to_pytorch_dataset:[18,2,1,""],to_tensorflow_dataset:[18,2,1,""]},"muspy.datasets.FolderDataset":{convert:[18,2,1,""],converted_dir:[18,2,1,""],converted_exists:[18,2,1,""],exists:[18,2,1,""],load:[18,2,1,""],on_the_fly:[18,2,1,""],read:[18,2,1,""],root:[18,3,1,""],use_converted:[18,2,1,""]},"muspy.datasets.HaydnOp20Dataset":{read:[18,2,1,""]},"muspy.datasets.HymnalDataset":{download:[18,2,1,""],read:[18,2,1,""]},"muspy.datasets.HymnalTuneDataset":{download:[18,2,1,""],read:[18,2,1,""]},"muspy.datasets.JSBChoralesDataset":{read:[18,2,1,""]},"muspy.datasets.LakhMIDIAlignedDataset":{read:[18,2,1,""]},"muspy.datasets.LakhMIDIDataset":{read:[18,2,1,""]},"muspy.datasets.LakhMIDIMatchedDataset":{read:[18,2,1,""]},"muspy.datasets.MAESTRODatasetV1":{read:[18,2,1,""]},"muspy.datasets.MAESTRODatasetV2":{read:[18,2,1,""]},"muspy.datasets.Music21Dataset":{convert:[18,2,1,""]},"muspy.datasets.MusicDataset":{kind:[18,3,1,""],root:[18,3,1,""]},"muspy.datasets.MusicNetDataset":{read:[18,2,1,""]},"muspy.datasets.NESMusicDatabase":{read:[18,2,1,""]},"muspy.datasets.RemoteDataset":{download:[18,2,1,""],download_and_extract:[18,2,1,""],exists:[18,2,1,""],extract:[18,2,1,""],root:[18,3,1,""],source_exists:[18,2,1,""]},"muspy.datasets.RemoteFolderDataset":{read:[18,2,1,""],root:[18,3,1,""]},"muspy.datasets.RemoteMusicDataset":{kind:[18,3,1,""],root:[18,3,1,""]},"muspy.datasets.WikifoniaDataset":{read:[18,2,1,""]},"muspy.external":{download_bravura_font:[19,5,1,""],download_musescore_soundfont:[19,5,1,""],get_bravura_font_dir:[19,5,1,""],get_bravura_font_path:[19,5,1,""],get_musescore_soundfont_dir:[19,5,1,""],get_musescore_soundfont_path:[19,5,1,""]},"muspy.inputs":{MIDIError:[21,4,1,""],MusicXMLError:[21,4,1,""],from_event_representation:[21,5,1,""],from_mido:[21,5,1,""],from_music21:[21,5,1,""],from_music21_opus:[21,5,1,""],from_music21_part:[21,5,1,""],from_music21_score:[21,5,1,""],from_note_representation:[21,5,1,""],from_object:[21,5,1,""],from_pianoroll_representation:[21,5,1,""],from_pitch_representation:[21,5,1,""],from_pretty_midi:[21,5,1,""],from_pypianoroll:[21,5,1,""],from_pypianoroll_track:[21,5,1,""],from_representation:[21,5,1,""],load:[21,5,1,""],load_json:[21,5,1,""],load_yaml:[21,5,1,""],read:[21,5,1,""],read_abc:[21,5,1,""],read_abc_string:[21,5,1,""],read_midi:[21,5,1,""],read_musicxml:[21,5,1,""]},"muspy.metrics":{drum_in_pattern_rate:[22,5,1,""],drum_pattern_consistency:[22,5,1,""],empty_beat_rate:[22,5,1,""],empty_measure_rate:[22,5,1,""],groove_consistency:[22,5,1,""],n_pitch_classes_used:[22,5,1,""],n_pitches_used:[22,5,1,""],pitch_class_entropy:[22,5,1,""],pitch_entropy:[22,5,1,""],pitch_in_scale_rate:[22,5,1,""],pitch_range:[22,5,1,""],polyphony:[22,5,1,""],polyphony_rate:[22,5,1,""],scale_consistency:[22,5,1,""]},"muspy.outputs":{save:[24,5,1,""],save_json:[24,5,1,""],save_yaml:[24,5,1,""],synthesize:[24,5,1,""],to_event_representation:[24,5,1,""],to_mido:[24,5,1,""],to_music21:[24,5,1,""],to_note_representation:[24,5,1,""],to_object:[24,5,1,""],to_pianoroll_representation:[24,5,1,""],to_pitch_representation:[24,5,1,""],to_pretty_midi:[24,5,1,""],to_pypianoroll:[24,5,1,""],to_representation:[24,5,1,""],write:[24,5,1,""],write_abc:[24,5,1,""],write_audio:[24,5,1,""],write_midi:[24,5,1,""],write_musicxml:[24,5,1,""]},"muspy.processors":{EventRepresentationProcessor:[25,1,1,""],NoteRepresentationProcessor:[25,1,1,""],PianoRollRepresentationProcessor:[25,1,1,""],PitchRepresentationProcessor:[25,1,1,""]},"muspy.processors.EventRepresentationProcessor":{decode:[25,2,1,""],default_velocity:[25,3,1,""],encode:[25,2,1,""],encode_velocity:[25,3,1,""],force_velocity_event:[25,3,1,""],max_time_shift:[25,3,1,""],use_end_of_sequence_event:[25,3,1,""],use_single_note_off_event:[25,3,1,""],velocity_bins:[25,3,1,""]},"muspy.processors.NoteRepresentationProcessor":{decode:[25,2,1,""],default_velocity:[25,3,1,""],dtype:[25,3,1,""],encode:[25,2,1,""],encode_velocity:[25,3,1,""],use_start_end:[25,3,1,""]},"muspy.processors.PianoRollRepresentationProcessor":{decode:[25,2,1,""],default_velocity:[25,3,1,""],encode:[25,2,1,""],encode_velocity:[25,3,1,""]},"muspy.processors.PitchRepresentationProcessor":{decode:[25,2,1,""],default_velocity:[25,3,1,""],encode:[25,2,1,""],use_hold_state:[25,3,1,""]},"muspy.schemas":{get_json_schema_path:[26,5,1,""],get_musicxml_schema_path:[26,5,1,""],get_yaml_schema_path:[26,5,1,""],validate_json:[26,5,1,""],validate_musicxml:[26,5,1,""],validate_yaml:[26,5,1,""]},"muspy.visualization":{ScorePlotter:[27,1,1,""],show:[27,5,1,""],show_pianoroll:[27,5,1,""],show_score:[27,5,1,""]},"muspy.visualization.ScorePlotter":{adjust_fonts:[27,2,1,""],axes:[27,3,1,""],fig:[27,3,1,""],font_path:[27,3,1,""],font_scale:[27,3,1,""],note_spacing:[27,3,1,""],plot_bar_line:[27,2,1,""],plot_clef:[27,2,1,""],plot_final_bar_line:[27,2,1,""],plot_key_signature:[27,2,1,""],plot_note:[27,2,1,""],plot_object:[27,2,1,""],plot_staffs:[27,2,1,""],plot_tempo:[27,2,1,""],plot_time_signature:[27,2,1,""],resolution:[27,3,1,""],set_baseline:[27,2,1,""],update_boundaries:[27,2,1,""]},muspy:{ABCFolderDataset:[23,1,1,""],Annotation:[23,1,1,""],Base:[23,1,1,""],Chord:[23,1,1,""],ComplexBase:[23,1,1,""],Dataset:[23,1,1,""],DatasetInfo:[23,1,1,""],EssenFolkSongDatabase:[23,1,1,""],EventRepresentationProcessor:[23,1,1,""],FolderDataset:[23,1,1,""],HaydnOp20Dataset:[23,1,1,""],HymnalDataset:[23,1,1,""],HymnalTuneDataset:[23,1,1,""],JSBChoralesDataset:[23,1,1,""],KeySignature:[23,1,1,""],LakhMIDIAlignedDataset:[23,1,1,""],LakhMIDIDataset:[23,1,1,""],LakhMIDIMatchedDataset:[23,1,1,""],Lyric:[23,1,1,""],MAESTRODatasetV1:[23,1,1,""],MAESTRODatasetV2:[23,1,1,""],MIDIError:[23,4,1,""],Metadata:[23,1,1,""],Music21Dataset:[23,1,1,""],Music:[23,1,1,""],MusicDataset:[23,1,1,""],MusicNetDataset:[23,1,1,""],MusicXMLError:[23,4,1,""],NESMusicDatabase:[23,1,1,""],Note:[23,1,1,""],NoteRepresentationProcessor:[23,1,1,""],NottinghamDatabase:[23,1,1,""],PianoRollRepresentationProcessor:[23,1,1,""],PitchRepresentationProcessor:[23,1,1,""],RemoteABCFolderDataset:[23,1,1,""],RemoteDataset:[23,1,1,""],RemoteFolderDataset:[23,1,1,""],RemoteMusicDataset:[23,1,1,""],ScorePlotter:[23,1,1,""],Tempo:[23,1,1,""],TimeSignature:[23,1,1,""],Track:[23,1,1,""],WikifoniaDataset:[23,1,1,""],adjust_resolution:[23,5,1,""],adjust_time:[23,5,1,""],append:[23,5,1,""],clip:[23,5,1,""],datasets:[18,0,0,"-"],download_bravura_font:[23,5,1,""],download_musescore_soundfont:[23,5,1,""],drum_in_pattern_rate:[23,5,1,""],drum_pattern_consistency:[23,5,1,""],empty_beat_rate:[23,5,1,""],empty_measure_rate:[23,5,1,""],external:[19,0,0,"-"],from_event_representation:[23,5,1,""],from_mido:[23,5,1,""],from_music21:[23,5,1,""],from_music21_opus:[23,5,1,""],from_music21_part:[23,5,1,""],from_music21_score:[23,5,1,""],from_note_representation:[23,5,1,""],from_object:[23,5,1,""],from_pianoroll_representation:[23,5,1,""],from_pitch_representation:[23,5,1,""],from_pretty_midi:[23,5,1,""],from_pypianoroll:[23,5,1,""],from_pypianoroll_track:[23,5,1,""],from_representation:[23,5,1,""],get_bravura_font_dir:[23,5,1,""],get_bravura_font_path:[23,5,1,""],get_dataset:[23,5,1,""],get_end_time:[23,5,1,""],get_json_schema_path:[23,5,1,""],get_musescore_soundfont_dir:[23,5,1,""],get_musescore_soundfont_path:[23,5,1,""],get_musicxml_schema_path:[23,5,1,""],get_real_end_time:[23,5,1,""],get_yaml_schema_path:[23,5,1,""],groove_consistency:[23,5,1,""],inputs:[21,0,0,"-"],list_datasets:[23,5,1,""],load:[23,5,1,""],load_json:[23,5,1,""],load_yaml:[23,5,1,""],metrics:[22,0,0,"-"],n_pitch_classes_used:[23,5,1,""],n_pitches_used:[23,5,1,""],outputs:[24,0,0,"-"],pitch_class_entropy:[23,5,1,""],pitch_entropy:[23,5,1,""],pitch_in_scale_rate:[23,5,1,""],pitch_range:[23,5,1,""],polyphony:[23,5,1,""],polyphony_rate:[23,5,1,""],processors:[25,0,0,"-"],read:[23,5,1,""],read_abc:[23,5,1,""],read_abc_string:[23,5,1,""],read_midi:[23,5,1,""],read_musicxml:[23,5,1,""],remove_duplicate:[23,5,1,""],save:[23,5,1,""],save_json:[23,5,1,""],save_yaml:[23,5,1,""],scale_consistency:[23,5,1,""],schemas:[26,0,0,"-"],show:[23,5,1,""],show_pianoroll:[23,5,1,""],show_score:[23,5,1,""],sort:[23,5,1,""],synthesize:[23,5,1,""],to_event_representation:[23,5,1,""],to_mido:[23,5,1,""],to_music21:[23,5,1,""],to_note_representation:[23,5,1,""],to_object:[23,5,1,""],to_ordered_dict:[23,5,1,""],to_pianoroll_representation:[23,5,1,""],to_pitch_representation:[23,5,1,""],to_pretty_midi:[23,5,1,""],to_pypianoroll:[23,5,1,""],to_representation:[23,5,1,""],transpose:[23,5,1,""],validate_json:[23,5,1,""],validate_musicxml:[23,5,1,""],validate_yaml:[23,5,1,""],visualization:[27,0,0,"-"],write:[23,5,1,""],write_abc:[23,5,1,""],write_audio:[23,5,1,""],write_midi:[23,5,1,""],write_musicxml:[23,5,1,""]}},objnames:{"0":["py","module","Python module"],"1":["py","class","Python class"],"2":["py","method","Python method"],"3":["py","attribute","Python attribute"],"4":["py","exception","Python exception"],"5":["py","function","Python function"]},objtypes:{"0":"py:module","1":"py:class","2":"py:method","3":"py:attribute","4":"py:exception","5":"py:function"},terms:{"18th":[22,23,40],"21st":[22,23,29,40],"32nd":[22,23,40],"boolean":[1,21,23,25,41,43,44,45],"break":[22,23,40],"byte":[23,24,34],"case":[18,23],"class":[14,21,22,23,24,29,40,41,42,43,44,45],"default":[0,2,4,5,6,7,8,9,10,11,12,16,17,18,21,23,24,25,27,30,32,33,34,35,37,38,39,41,42,43,44,45,46,47,48],"f\u00fcr":28,"float":[7,9,12,16,17,18,22,23,27,40,48],"function":[0,2,4,5,6,7,8,9,10,11,12,16,17,18,23,42],"import":[14,28],"int":[0,2,4,5,7,8,9,10,11,12,16,17,18,21,22,23,24,25,27,30,35,37,38,40,41,43,44,45,46,48],"new":[0,2,4,5,6,7,8,9,10,11,23],"public":29,"return":[0,1,2,4,5,6,7,8,9,10,11,12,16,17,18,19,21,22,23,24,25,26,27,28,30,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,48],"true":[0,2,4,5,6,7,8,9,10,11,12,14,16,17,18,21,23,24,25,32,39,41,43,44],"while":[2,7,8,11,21,23,29,33,34,41],And:28,Axes:[23,27,48],For:[0,7,16,17,18,23,24,25,28,29,43,47],Has:[21,23,24,32,39],NES:[13,14,18,23],That:[7,11,23,47],The:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,22,23,24,25,34,40,41,42,43,44,45,47,48],Then:28,There:28,These:[20,22,40,47],Will:[23,24,32,39],__getitem__:[12,18,23],__len__:[12,18,23],__repr__:23,_are:[22,23,40],_at:[22,23,40],_attribut:23,_beat:[22,23,40],_class:[22,23,40],_consist:[22,23,40],_convert:[12,16,17,18,23],_entropi:[22,23,40],_extens:[16,18,23],_in:[22,23,40],_info:[12,18,23],_is:[22,23,40],_least:[22,23,40],_list_attribut:23,_measur:[22,23,40],_multipl:[22,23,40],_note:[22,23,40],_on:[22,23,40],_one:[22,23,40],_optional_attribut:23,_pattern:[22,23,40],_pitch:[22,23,40],_rate:[22,23,40],_scale:[22,23,40],_sourc:[12,18,23],_step:[22,23,40],_time:47,_when:[22,23,40],_where:[22,23,40],aaai:[22,23,40],abc:[7,13,16,17,18,21,23,24,29],abcfolderdataset:[16,17,18,23],abil:47,about:[18,23],absolut:47,accept:[21,23,41,43,44,45],accompani:[22,23,40],accord:[11,21,23,41,43,44,45],acoust:[11,21,23,41,43,44,45],across:29,activ:[21,23,24,25,41],add:[23,24,25,41],addit:[12,16,18,23,24,34,47],adjust:[0,1,2,4,5,6,7,8,9,10,11,23,27],adjust_font:[23,27],adjust_resolut:[7,23],adjust_tim:[0,1,2,4,5,6,7,8,9,10,11,23],advanc:23,advantag:[23,24,34],adversari:[22,23,40],after:[12,17,18,23],against:[23,26,32,39],aiff:[23,24,46],align:[18,23],all:[0,1,2,4,5,6,7,8,9,10,11,12,16,17,18,21,22,23,24,25,28,33,34,40,41],allow_unicod:[23,24],along:23,also:[1,14,18,22,23,40],alto:[23,27,48],ani:[0,23,24,29],annot:[7,11,23,24,28],anoth:[7,11,23,28],api:42,append:[1,7,11,21,23,24,25,41],appli:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,23],archiv:[12,17,18,23],argument:[12,16,17,18,21,23,24,32,39],arrai:[12,16,17,18,21,23,24,25,41,43,44,45],array_lik:[12,16,17,18,23],artifici:[22,23,40],arxiv:29,ascii:[23,24,32,39],assess:28,assum:[7,21,23,32,39],asterisk:13,attr1:[0,2,4,5,6,7,8,9,10,11,23],attr2:[0,2,4,5,6,7,8,9,10,11,23],attr:[0,2,4,5,6,7,8,9,10,11,23],attribut:[0,1,2,4,5,6,7,8,9,10,11,12,16,17,18,23,24,32,39,47],audio:[7,23,24,29,46],audio_format:[23,24,46],automat:[7,11,12,18,23],avail:[7,12,16,17,18,23,29,32,39],averag:[22,23,40],avoid:[23,24,34],axes:[23,27,48],bach:[18,23],backend:[21,23,24,30,33,48],bar:[23,27],base:[0,2,4,5,6,7,8,9,10,11,14,16,17,21,23,24,25,29,42],baselin:[23,27],basic:28,bass:[23,27,48],beat:[7,22,23,40,47],beautifulli:[23,28],been:[21,23,29,33,34,41],beethoven:28,befor:[23,24,25,41],being:[16,18,22,23,40],below:[12,18,23],berg:29,better:[0,23],between:[3,22,23,40,47],bin:[21,23,24,25,41],binari:[22,23,24,25,40,42,44],bool:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,21,23,24,25,32,34,36,39,41,43,44,45],both:48,bottom:[23,27],bound:[2,7,8,11,23],boundari:[23,27],bravura:[19,23,27,48],build:[12,16,18,23,29],built:[16,18,23,27,48],call:[7,11,22,23,40],callabl:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,23],can:[0,2,7,8,12,16,17,18,21,23,24,25,28,29,34,41],cast:[23,25],ceil:[7,23],certain:[0,1,2,4,5,6,7,8,9,10,11,18,22,23,40],chang:[7,23,24,25,37,41],charact:[23,24,32,39],check:[7,11,16,17,18,23],checksum:[12,18,23],chen:29,chia:[22,23,40],choral:[13,18,23],chord:[11,13,23],citat:[12,16,17,18,23,29],claim:29,classic:13,classmethod:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,23],cleanup:[12,17,18,23],clef:[23,27,48],clef_octav:[23,27,48],clip:[2,7,8,11,23],close:[21,23,24,25,33,34,41],close_al:[21,23,33,34,41],code:29,collect:[6,18,23,28,29],column:[23,25,44],com:[12,18,23],come:[14,18],common:[21,22,23,24,29,31,42,47],commonli:[21,23,24,25,29],commun:29,compar:[22,40],comparison:42,compat:[23,24,25,45],complexbas:[7,11,23],compon:29,compos:[18,22,23,40],compress:[21,23,24,32,36,39],comput:[0,2,4,5,6,7,8,9,10,11,22,23,40],concept:28,concurr:[12,16,17,18,22,23,40],confer:[22,23,29,40],configur:[23,24,25,27,41,42,48],consid:[22,23,40],consist:[22,23,29,40],constant:[22,23,40],construct:[0,2,4,5,6,7,8,9,10,11,22,23,40],contain:[0,1,2,4,5,6,7,8,9,10,11,18,23],content:[1,23],continu:[22,23,40],contribut:29,convers:[12,16,17,18,21,23,24,25,41],convert:[1,7,12,14,16,17,18,21,23,24,25,27,30,33,34,35,36,37,38,42],converted_dir:[16,17,18,23],converted_exist:[16,17,18,23],coordin:[23,27],copi:[0,2,4,5,6,7,8,9,10,11,23],copyright:[6,23],core:[7,23],corpu:[13,18,23],corresepond:23,correspod:[21,23,33,34,41],correspond:[0,1,2,4,5,6,7,8,9,10,11,18,23],corrupt:[12,16,17,18,23],could:[22,29,40],count:[22,23,40],creat:[1,12,14,16,17,18,23],creation:29,creator:[6,23,28],current:[23,24,25,45,47],custom:[12,16,18,23,29],data:[0,1,2,4,5,6,7,8,9,10,11,12,14,16,17,18,21,22,23,24,25,28,29,31,32,39,40,41,43,44,45],data_str:[21,23],databas:[13,14,18,23],dataset:[20,23,28,29],datasetinfo:[12,18,23],deal:[21,23,29,33,34,41],decid:[21,23,33,34,41],decod:[21,23,25,38,41,42,43,44,45],decompos:[21,23,24,25,41],deep:[0,2,4,5,6,7,8,9,10,11,23],deepcopi:[0,2,4,5,6,7,8,9,10,11,23],default_resolut:[7,21,23,30,35,37,41,43,44,45],default_schema_vers:26,default_veloc:[2,8,21,23,25,38,41,43,44,45],defin:[22,23,25,40],demo:[22,23,40],denomin:[10,23,27,28],denot:42,depend:[12,16,18,19,23,47],descript:[0,2,4,5,6,7,8,9,10,11,18,23,29],desir:[18,23],detail:[12,16,18,20,23],determin:[7,11,23,29,47],develop:[23,29],dict:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,23],dict_:[0,2,4,5,6,7,8,9,10,11,23],dictionari:[0,1,2,4,5,6,7,8,9,10,11,12,18,23],differ:[3,22,23,24,25,40,41,44],dimens:[23,24,25,43],directori:[12,16,17,18,19,23],disabl:[12,16,17,18,23],discard:[23,24,25,43],distanc:[22,23,40],distinguish:[2,8,23],distribut:29,divis:47,do_someth:14,doc:[18,23],docstr:29,document:[7,12,16,18,23],doe:[12,18,23],dong:[22,23,29,40],dot:28,doubl:[7,23],downbeat:[7,23,28],download:[12,14,17,18,19,23,24,27,29,46,48],download_and_extract:[12,14,17,18,23],download_bravura_font:[19,23],download_musescore_soundfont:[19,23],drum:[7,11,22,23,40],drum_in_pattern_r:[22,23,40],drum_pattern_consist:[22,23,40],dtype:[23,24,25,41,43,44,45,46],dump:[23,24,32,39],dupl:[22,23,40],duplic:[1,7,11,21,23,33,34,41],duplicate_note_mod:[21,23,33,34,41],durat:[2,8,21,23,24,25,27,28,42,43],each:[7,11,12,14,18,23,29],earliest:[21,23,33,34,41],easi:[14,18,29],edu:[18,23],effect:[21,23,24,32,39,41],effort:29,element:7,elis:28,emploi:[23,24,34],empti:[0,2,4,5,6,7,8,9,10,11,22,23,24,32,39,40],empty_beat_r:[22,23,40],empty_measure_r:[22,23,40],enabl:[16,17,18,23],encod:[21,23,24,25,32,39,41,42,43,44,45],encode_veloc:[21,23,24,25,41,43,44],end:[2,7,8,21,23,24,25,27,41,43],ensure_ascii:[23,24,32,39],entropi:[22,23,40],equal:[12,16,17,18,23],equival:[0,2,4,5,6,7,8,9,10,11,23],error:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,23],escap:[23,24,32,39],essen:[13,18,23],essenfolksongdatabas:[18,23],essenti:[23,29],etc:[5,23,29],evalu:[22,23,29,40],event:[7,11,21,23,24,25,29,42],eventrepresentationprocessor:[23,25,41],everi:[23,24,25,41],exampl:[7,12,14,16,17,18,23,24,25,28,42,43],except:[21,23],exist:[12,16,17,18,23],expect:[12,18,23],explor:[22,23,40],extend:[7,11,12,16,18,23],extens:[16,18,21,23,24,32,36,39,46],extern:[20,29],extract:[12,14,17,18,23],factor:[7,23,27,47,48],factori:[12,16,17,18,23],fail:[12,16,17,18,23],fair:29,fals:[7,11,12,16,17,18,21,23,24,25,28,32,34,39,41,43,44,45],field:[21,23,30],fifo:[21,23,33,34,41],fifth:[4,23],fig:[23,27,48],figsiz:[23,27,48],figur:[23,27,48],file:[6,7,12,16,17,18,21,23,24,26,28,30,32,33,36,39,46,47],filenam:[12,16,17,18,23,24,36],finetun:[23,27,48],first:[21,23,27,28,33,34,41],fiul:32,flac:[23,24,46],flat:[4,23],flexibl:[0,48],floor:[7,23],fly:[16,17,18,23],folder:[16,17,18,23],folderdataset:[16,17,18,23],folk:[13,18,23],follow:[1,7,12,18,23,28,29,40,47],font:[19,23,27,48],font_path:[23,27,48],font_scal:[23,27,48],forc:[16,17,18,23],force_velocity_ev:[23,24,25,41],format:[0,1,2,4,5,6,7,8,9,10,11,12,13,16,17,18,21,23,24,29,31,32,39,46],formula:[7,23,47],found:[16,17,18,22,23,40,47],frac:[22,23,40,47],from:[0,1,2,4,5,6,7,8,9,10,11,12,14,16,17,18,21,23,24,25,29,32,36,39,41,42,46],from_:31,from_dict:[0,1,2,4,5,6,7,8,9,10,11,23],from_event_represent:[21,23,25,41],from_mido:[21,23,34],from_music21:[21,23,35],from_music21_opu:[21,23],from_music21_part:[21,23],from_music21_scor:[21,23],from_note_represent:[21,23,25,43],from_object:[7,21,23],from_pianoroll_represent:[21,23,25,44],from_pitch_represent:[21,23,25,42,45],from_pretty_midi:[21,23,37],from_pypianorol:[21,23,38],from_pypianoroll_track:[21,23],from_represent:[21,23],front:[22,23,40],full:[7,12,16,17,18,23],func:[0,2,4,5,6,7,8,9,10,11,23],g_i:[22,23,40],game:13,gan:[22,23,40],gener:[11,19,21,22,23,24,29,40,41,43,44,45,46],genr:13,get:29,get_bravura_font_dir:[19,23],get_bravura_font_path:[19,23],get_dataset:[18,23],get_end_tim:[7,11,23],get_json_schema_path:[23,26],get_musescore_soundfont_dir:[19,23],get_musescore_soundfont_path:[19,23],get_musicxml_schema_path:[23,26],get_real_end_tim:[7,23],get_yaml_schema_path:[23,26],getter:[2,8],github:29,given:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,21,23,24,32,39],got:28,grace:[21,23,36],grand:[11,21,23,41,43,44,45],great:29,groov:[22,23,40],groove_consist:[22,23,40],group:[0,23],gzip:[21,23,24,32,39],halv:[7,23],ham:[22,23,40],handi:[2,8,23],handl:[22,23,27,40,48],hao:[22,23,29,40],hard:28,has:[0,2,4,5,6,7,8,9,10,11,22,23,40],have:[21,23,28,29,33,34,41],haydn:[13,18,23],haydnop20dataset:[18,23],height:[23,27,48],help:[12,16,17,18,23],here:[3,7,11,12,13,14,15,16,17,18,22,23,28,29,40,42,47],histogram:[22,23,40],hold:[0,21,23,24,25,42,45],homepag:[18,23,29],host:29,hour:13,hsiao:[22,23,40],hsuan:[22,23,40],html:[18,23],http:[11,12,18,21,23,41,43,44,45],humdrum:13,hymn:13,hymnal:[13,18,23],hymnaldataset:[18,23],hymnaltunedataset:[18,23],idx:[7,11,23],ignor:[12,16,17,18,22,23,40],ignore_except:[12,16,17,18,23],illustr:[3,15,47],implement:[2,8,22,23,29,40],inch:[23,27,48],includ:[7,11,23,24,25,29,37,41,46],increas:29,index:[7,11,16,17,18,23],indic:[1,12,13,16,18,21,23,24,25,41,43,44,45],infer:[21,23,24,32,36,39,46],info:[12,16,17,18,23],infom:[12,16,17,18,23],inform:[7,12,18,22,23,24,29,37,40,47],inherit:[1,12,14,18,23],input:[12,14,16,17,18,20,23,29],insensit:[18,23],inspect:23,instal:28,instanc:[0,2,4,5,6,7,8,9,10,11,12,18,23],instanti:[0,2,4,5,6,7,8,9,10,11,23],instead:[23,24,34],instrument:11,int16:[23,24,46],integ:[23,24,25,44],integr:[12,16,18,23],intellig:[22,23,40],interfac:[14,18,21,23,24,29],intern:[15,22,23,29,40],intuit:23,invalid:[0,1,2,4,5,6,7,8,9,10,11,23],is_drum:[11,21,23,28,41,43,44,45],is_sort:[7,11,23],is_valid:[0,1,2,4,5,6,7,8,9,10,11,23],is_valid_typ:[0,2,4,5,6,7,8,9,10,11,23],ismir:[22,23,29,40],isn:28,issu:29,item:[1,7,11,21,23,41,43,44,45],iter:[7,11,14,23],its:[16,17,18,23],itself:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,23],jazz:[22,23,40],job:[12,16,17,18,23],johann:[18,23],jsbach:13,jsbchoralesdataset:[18,23],json:[7,12,16,17,18,21,23,24,26,28,31,39],julian:29,kei:[0,2,4,5,6,7,8,9,10,11,18,23,27],key_signatur:[7,23,28],keysignatur:[7,23,28],keyword:[12,16,17,18,21,23,24,32,39],kind:[7,12,16,17,18,21,23,24,27],kirkpatrick:29,known:[12,16,17,18,23],kwarg:[7,12,16,17,18,21,23,24,27,32,33,39,48],lakh:[13,18,23],lakhmidialigneddataset:[18,23],lakhmididataset:[18,23],lakhmidimatcheddataset:[18,23],larger:[21,23,24,25,41],largest:[22,23,40],last:[7,11,23],late:[22,23,40],latest:[6,21,23,33,34,41],lead:[13,21,23,24,25,29,41],learn:[14,18,22,23,40],least:[22,23,40,47],left:[23,27],len:[7,11,23,28],length:[7,11,22,23,40],less:[22,23,40],let:28,level:[11,21,23,41,43,44,45],librari:[7,21,23,24,28,29,31,48],licens:[18,23,29],lifo:[21,23,33,34,41],like:[0,1,2,4,5,6,7,8,9,10,11,23],line:[22,23,27,40],list:[0,1,2,4,5,6,7,8,9,10,11,12,13,16,17,18,21,23,24,28,30,32,39,42],list_dataset:[18,23],literatur:[29,40],load:[7,16,17,18,21,23,28,32,39],load_:31,load_json:[21,23,32,39],load_yaml:[21,23],log_2:[22,23,40],look:[16,18,23],loselessli:[7,23,24],lossi:[21,23,24,25,41],lower:[2,7,8,11,23],ludwig:28,lun:[22,23,40],lyric:[7,11,23,28],machin:[14,18,22,23,40],made:48,maestro:[13,18,23],maestrodatasetv1:[18,23],maestrodatasetv2:[18,23],major:[4,22,23,27,40],make:[0,2,4,5,6,7,8,9,10,11,12,16,18,23],manag:[14,18,23,29],manual:[12,16,18,23],map:[0,2,4,5,6,7,8,9,10,11,23],mark:[13,23,27],match:[18,23],matplotlib:[23,27,48],matrix:[23,25,44],max_:[22,23,40],max_time_shift:[21,23,24,25,41],maximum:[12,16,17,18,21,23,24,25,41],mcaulei:29,md5:[12,18,23],mean:[22,23,40],meaning:47,measur:[22,23,40],measure_resolut:[22,23,40],melodi:[13,23,24,25,28,45],messag:[21,23,24,33,34,41],metadata:[7,23,28],meter:[22,23,40],method:[1,12,18,23,42],metric:[20,23,29,47],metronom:[23,27],midi:[2,7,8,11,13,18,21,23,24,29,34,37,41,43,44,45,47],midierror:[21,23],midifil:[7,21,23,24,34],miditrack:[21,23,24],mido:[7,21,23,24,29,33],might:29,minor:[22,23,27,28,40],minut:[7,9,23,28,47],misc:13,mit:[18,23],mode:[4,7,15,16,17,18,22,23,27,28,40],model:[23,29],modul:[18,19,21,22,24,25,26,27,42],mogren:[22,23,40],monophon:[23,24,25,42,45],more:[21,23,24,25,28,41],multi:[22,23,40],multipl:[21,22,23,33,34,40,41,47],multiprocess:[12,16,17,18,23],multitrack:[7,13,21,22,23,24,38,40],musegan:[22,23,40],musescor:[19,23,24,46],music21:[7,13,18,21,23,24,29,30],music21dataset:[18,23],music:[3,8,11,12,13,14,16,17,18,21,22,23,24,25,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],musicdataset:[16,17,18,23],musicnet:[13,18,23],musicnetdataset:[18,23],musicxml:[7,13,21,23,24,26,29,47],musicxmlerror:[21,23],muspi:[0,1,2,4,5,6,7,8,9,10,11,12,14,16,17,20,28,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,48],mxl:[23,24,36],n_job:[12,16,17,18,23],n_pitch_class_us:[22,23,40],n_pitch_classes_us:[22,23,40],n_pitches_us:[22,23,40],name:[0,6,11,12,16,17,18,23,28],nan:[22,23,40],nativ:[21,24,31],ndarrai:[21,23,24,25,41,43,44,45,46],need:[21,23,29,33,34,41,47],neg:[2,4,7,8,11,23],neighbor:[22,23,40],nes:14,nesmusicdatabas:[14,18,23],network:[22,23,40],neuip:[22,23,40],neural:[22,23,40],new_resolut:[7,23],new_tim:[0,2,4,5,6,7,8,9,10,11,23],non:[23,24,32,39],none:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,21,23,24,27,30,32,36,37,39,44,46,48],nonserializ:[23,24],normal:[22,23,40],notat:28,note:[2,4,7,9,11,12,16,18,21,22,23,24,25,27,28,29,30,32,33,34,35,36,37,39,40,41,42,44,45,47,48],note_spac:[23,27,48],noterepresentationprocessor:[23,25,43],noth:28,notic:[6,23],nottingham:[13,18,23],nottinghamdatabas:[18,23],now:28,number:[2,4,7,8,11,12,16,17,18,21,22,23,24,25,29,30,40,41,42,43,44,45,47],numer:[10,22,23,27,28,40],numpi:[12,16,17,18,21,23],obj1:23,obj2:23,obj:[7,11,21,23,27],object:[0,1,2,4,5,6,7,8,9,10,11,12,14,16,17,18,21,22,23,24,25,27,28,29,30,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],octav:[23,27,48],off:[21,23,24,25,33,34,41,42],offer:28,offset:[7,23],oga:[23,24,46],old:[0,2,4,5,6,7,8,9,10,11,23],old_resolut:[7,23],old_tim:[0,2,4,5,6,7,8,9,10,11,23],olof:[22,23,40],on_the_fli:[16,17,18,23],one:[11,22,23,24,25,40,41],onli:[11,18,21,22,23,24,25,27,33,40,41,42,45],ons:42,onset:[22,23,40],open:[22,23,29,40],oper:[1,23],optim:[23,27,48],option:[0,2,4,6,7,8,11,12,16,17,18,21,23,24,25,27,30,32,33,34,35,36,37,39,41,43,44,45,46,48],opu:[21,23],order:[0,1,2,4,5,6,7,8,9,10,11,23],ordereddict:[0,2,4,5,6,7,8,9,10,11,23],org:[11,21,23,41,43,44,45],organ:[0,23],origin:[16,17,18,23],other:[7,11,21,23,24,29,31],otherwis:[12,16,17,18,22,23,24,25,40,43,44],out:[21,23,33,34,41],output:[12,16,17,18,20,23,25,29,37,41,43,44,45],outsid:[21,23],over:[14,22,23,40],overid:[12,18,23],overview:29,overwrit:[12,17,18,23],owner:29,packag:[22,23,40],page:[18,23],pair:[0,2,4,5,6,7,8,9,10,11,23],paper:29,paramet:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,21,22,23,24,25,26,27,30,32,33,34,35,36,37,38,39,40,41,43,44,45,46,48],pars:[21,23],part:[21,23,29],partial:13,particular:29,pass:[12,16,17,18,21,23,24,32,39],path:[7,12,16,17,18,19,21,23,24,26,27,30,32,33,36,39,46,48],pattern:[22,23,40],per:[7,9,21,22,23,24,27,28,30,35,37,40,41,43,44,45,46,47,48],percuss:[11,21,23,41,43,44,45],permiss:29,piano:[7,11,14,21,23,24,25,27,29,41,42,43,45],pianorol:[7,14,21,22,23,27,40,48],pianorollrepresentationprocessor:[23,25,44],pip:[28,29],pipelin:[14,18,28,29],pitch:[2,7,8,11,21,22,23,24,25,27,28,29,41,42,43,44],pitch_class_entropi:[22,23,40],pitch_entropi:[22,23,40],pitch_in_scale_r:[22,23,40],pitch_rang:[22,23,40],pitch_str:[8,23],pitches_str:[2,23],pitchrepresentationprocessor:[23,25,42,45],plai:[22,23,40],playback:47,pleas:[12,16,18,23,28,29],plot:[23,27,48],plot_bar_lin:[23,27],plot_clef:[23,27],plot_final_bar_lin:[23,27],plot_key_signatur:[23,27],plot_not:[23,27],plot_object:[23,27],plot_staff:[23,27],plot_tempo:[23,27],plot_time_signatur:[23,27],plotter:[23,27,48],polici:[21,23,33,34,41],polyphon:[21,22,23,24,25,40,41],polyphoni:[22,23,40],polyphony_r:[22,23,40],posit:[2,4,7,8,11,22,23,27,40],possibl:48,poster:29,ppq:47,ppqn:47,precomput:[16,18,23],prepar:[14,28,29],preprocess:[23,29],presenc:[23,25,44],presetn:[21,23,33,34,41],pretty_midi:[7,21,23,24,29,33],pretty_str:[0,2,4,5,6,7,8,9,10,11,23],prettymidi:[7,21,23,24,37],prevent:[12,16,18,23],previou:[23,24,25,41],print:[0,1,2,4,5,6,7,8,9,10,11,12,16,17,18,23,28],proceed:[22,23,29,40],process:[15,23],processor:[20,23,29,41,42,43,44,45],program:[11,21,23,28,41,43,44,45],properli:23,properti:[2,8,16,17,18,23],propos:[29,40],provid:[3,14,18,19,21,22,23,24,26,27,29,31,40,42],publish:29,puls:47,pypianorol:[7,21,22,23,24,29,40,48],python:[22,23,29,40],pytorch:[12,14,16,17,18,23,29],pyyaml:[23,24,32,39],qpm:[7,9,23,27,28,47],qualiti:29,quantit:[22,23,40],quarter:[7,9,21,23,27,28,30,35,37,41,43,44,45,47,48],rais:[0,2,4,5,6,7,8,9,10,11,12,18,23],random:[12,16,17,18,23],random_st:[12,16,17,18,23],randomst:[12,16,17,18,23],rang:[22,23,40],rate:[22,23,24,40,46],rather:[21,23,24,25,43],ratio:[12,16,17,18,22,23,40],raw:[7,23,24,46],read:[7,12,16,17,18,21,23,28,30,33,36,47],read_:31,read_abc:[21,23,30],read_abc_str:[21,23],read_midi:[21,23,33],read_musicxml:[21,23,36],realtim:[7,23],recurr:[22,23,40],recurs:[0,2,4,5,6,7,8,9,10,11,23],refer:[7,11,12,16,18,21,22,23,30,40,41,43,44,45,47],referencecorpu:[18,23],relat:[3,21,23,29,47],relationship:47,remot:[12,18,23],remoteabcfolderdataset:[17,18,23],remotedataset:[12,17,18,23],remotefolderdataset:[17,18,23],remotemusicdataset:[17,18,23],remov:[1,7,11,12,17,18,23],remove_dupl:[1,7,11,23],remove_invalid:[1,7,11,23],render:[23,29],repres:[23,24,25,41,43,44,45],represent:[7,12,14,16,17,18,21,23,24,25,27,29],represetant:[23,24,25,41,43,44,45],reproduc:29,resolut:[7,21,23,27,28,30,35,37,41,43,44,45,47,48],respect:[23,42],respons:29,rest:[23,24,25,42,45],result:[28,29],retriev:[22,23,29,40],rhythm:29,right:[23,27],rnn:[22,23,40],roll:[7,14,21,23,24,25,27,29,42],root:[4,12,16,17,18,22,23,27,28,40],root_str:[4,23],round:[7,23],routin:29,row:[23,25,44],run:[12,16,17,18,23,24,28,29,34],runtimeerror:[12,18,23],same:[7,11,22,23,40],sampl:[12,16,18,22,23,24,40,46],save:[7,12,16,17,18,21,23,24,29,32,39],save_:31,save_json:[7,23,24,32,39],save_yaml:[7,23,24],scale:[22,23,27,40,48],scale_consist:[22,23,40],schema:[6,20,23,29,32,39],schema_vers:[6,23,28],score:[7,21,23,24,27,29,35],scoreplott:[23,27,48],sebastian:[18,23],sec:[23,24,46],second:[0,4,5,10,23,24,25,43],see:[11,12,16,17,18,23],self:[0,2,4,5,6,7,8,9,10,11,23],semiton:[2,7,8,11,23],send:[23,24,34],sentenc:[5,23],separ:[21,23,24,25,41],sequenc:[21,23,24,25,41,43,45],sequenti:[22,23,40],serv:[12,16,18,23],set:[7,11,12,16,18,21,23,27,41,43,44,45,47],set_baselin:[23,27],setter:[2,8],setup:29,sever:[3,29,40,42],shallow:[0,2,4,5,6,7,8,9,10,11,23],shannon:[22,23,40],shape:[23,24,25,41,42,43,44,45,46],share:29,sharp:[4,23],sheet:13,shift:[21,23,24,25,41,42],shih:[22,23,40],shortcom:[22,23,40],shorthand:28,should:[12,18,23],show:[1,7,23,27,48],show_pianorol:[7,23,27,48],show_scor:[7,23,27,48],signatur:[4,7,9,10,22,23,27,40,47],singl:[21,23,24,25,41],size:[12,18,23],skip:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,23,24,32,39],skip_miss:[0,2,4,5,6,7,8,9,10,11,23,24,32,39],slide:29,smallest:47,societi:[22,23,29,40],sole:[12,16,18,23],some:[12,16,17,18,23,28,29,47],sometim:[2,8],song:[6,13,18,22,23,28,40],sort:[1,7,11,23],sound:[11,21,23,41,43,44,45],soundfont:[19,23,24,46],soundfont_path:[23,24,46],soundfount:[23,24,46],sourc:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,19,21,22,23,24,25,26,27,29,30,32,33,34,35,36,37,38,39,40,41,43,44,45,46,48],source_exist:[12,17,18,23],source_filenam:[6,23,28],source_format:[6,23],space:[23,27,48],special:[12,16,18,21,23,24,25,45],specif:[7,11,21,23,24,30,41,43,44,45],split:[12,16,17,18,23],split_filenam:[12,16,17,18,23],staff:[23,27],stamp:[0,4,5,6,7,9,10,11,23],standard:29,start:[0,2,4,5,8,9,10,21,23,24,25,27,29,43],state:[12,16,17,18,21,23,24,25,45],statist:[22,40],statu:[23,24,34],step:[0,2,4,5,7,8,9,10,21,22,23,24,25,27,29,30,35,37,40,41,42,43,44,45,47,48],store:[0,1,2,4,5,6,7,8,9,10,11,12,16,17,18,23,24,47],str:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,21,22,23,24,25,26,27,30,32,33,36,39,40,41,43,44,45,46,48],stream:[7,21,23,24,35],string:[0,2,4,5,6,7,8,9,10,11,23],subset:[18,23],success:[12,16,18,23],successfulli:[12,18,23],sum_:[22,23,40],summar:40,support:[1,12,14,16,18,21,23,24,27,36,37,42,46,48],sure:[12,16,18,23,28],syllabl:[5,23],symbol:[3,7,21,22,23,24,29,31,40,42],synthes:[7,23,24,46],synthesi:29,system:[14,18,22,23,29,40,47],take:[16,18,23,42],tar:[12,18,23],target:[7,12,16,17,18,23,24,27],taylor:29,technic:29,tempo:[7,23,24,27,28,37,47],tensor:[12,16,17,18,23],tensorflow:[12,14,16,17,18,23,29],test:[12,16,17,18,23],textio:[21,23,24,32,39],than:[21,22,23,24,25,40,41,43],thank:29,them:[42,47],thi:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,19,21,22,23,24,25,26,27,28,29,40,41,45,47],those:[0,2,4,5,6,7,8,9,10,11,23,24,32,39],three:[12,16,17,18,23,31],threshold:[22,23,40],through:[22,23,28,29,40],tick:[21,23,24,25,41,42,47],time:[0,1,2,4,5,6,7,8,9,10,11,21,22,23,24,25,27,28,29,30,35,37,40,41,42,43,44,45,48],time_signatur:[7,23,28],timesignatur:[7,23,28],titl:[6,23,28],to_:31,to_event_represent:[7,23,24,25,41],to_mido:[7,23,24,34],to_music21:[7,23,24,35],to_note_represent:[7,23,24,25,43],to_object:[7,23,24],to_ordered_dict:[0,1,2,4,5,6,7,8,9,10,11,23],to_pianoroll_represent:[7,23,24,25,44],to_pitch_represent:[7,23,24,25,42,45],to_pretty_midi:[7,23,24,37],to_pypianorol:[7,23,24,38],to_pytorch_dataset:[12,14,16,17,18,23],to_represent:[7,12,16,17,18,23,24],to_tensorflow_dataset:[12,16,17,18,23],token:[23,24,25,45],tonic:[4,23],tool:[23,27,29,48],toolkit:[23,29],top:[23,27],torch:[12,16,17,18,23],total:[22,23,40],touch:29,track:[7,21,22,23,28,35,40,41,43,44,45],train:[12,14,16,17,18,22,23,29,40],transform:[22,23,40],transpos:[2,7,8,11,23],trebl:[23,27,48],tripl:[22,23,40],tune:[13,18,21,23,30],tupl:[23,24,25,42,43],tutori:28,two:[12,15,16,17,18,21,22,23,24,25,40,41,42,47,48],type:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,21,22,23,24,25,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,48],uint16:[23,25],uint8:[23,24,25,44],unchang:23,uncompress:[23,24,36],under:29,uniqu:[22,23,40],unit:47,univers:[7,23],unpitch:[21,23,36],updat:[21,23,27,29],update_boundari:[23,27],upper:[2,7,8,11,23],url:[12,18,23],use:[14,16,17,18,21,23,24,25,28,29,32,33,34,38,39,41,43,44,45,48],use_convert:[16,17,18,23],use_end_of_sequence_ev:[21,23,24,25,41],use_hold_st:[21,23,24,25,45],use_note_off_messag:[23,24,34],use_single_note_off_ev:[21,23,24,25,41],use_start_end:[21,23,24,25,43],used:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,21,22,23,24,25,29,33,34,40,41,47],useful:[2,8,23],uses:[23,24,25,41],using:[14,21,23,24,28,30,33,34],usual:29,utf:[21,23,24,32,39],util:[12,16,17,18,23,29],valid:[0,1,2,4,5,6,7,8,9,10,11,12,16,17,18,23,26,32,39],validate_json:[23,26],validate_musicxml:[23,26],validate_typ:[0,2,4,5,6,7,8,9,10,11,23],validate_yaml:[23,26],valu:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,21,23,24,25,32,38,39,41,42,43,44,45,47],value1:[0,2,4,5,6,7,8,9,10,11,23],value2:[0,2,4,5,6,7,8,9,10,11,23],van:28,variabl:23,vector:[22,23,40],veloc:[2,7,8,11,21,23,24,25,28,34,38,41,42,43,44,45],velocity_bin:[21,23,24,25,41],verbos:[12,16,17,18,23],version:[6,23,29],video:29,visual:[7,20,23,29],vouch:29,wai:[7,23],want:[28,29],warn:[16,17,18,23],wav:[23,24,46],waveform:[23,24,46],web:[18,23],welcom:28,well:[12,16,18,23],wen:[22,23,29,40],what:28,when:[16,18,21,23,24,25,32,33,34,38,39,41,43,44,45,47],where:[22,23,24,25,40,41,43,44,45],whether:[0,2,4,5,6,7,8,9,10,11,12,16,17,18,21,23,24,25,29,32,34,36,39,41,43,44,45],which:[2,8,16,18,21,23,24,25,33,34,41,42,47],whole:[12,16,17,18,23],whose:[0,2,4,5,6,7,8,9,10,11,23],width:[23,27,48],wikifonia:[13,18,23],wikifoniadataset:[18,23],wish:29,word:[5,23],work:[3,19,22,23,26,29,40],workshop:[22,23,40],wrapper:[21,23,24],write:[7,23,24,28,30,33,36,46],write_:31,write_abc:[7,23,24,30],write_audio:[7,23,24,46],write_midi:[7,23,24,33],write_midi_mido:[23,24,33],write_midi_pretty_midi:[23,24,33],write_musicxml:[7,23,24,36],www:[11,12,18,21,23,41,43,44,45],xml:[23,24,36],yaml:[0,1,2,4,5,6,7,8,9,10,11,12,16,17,18,21,23,24,26,31,32],yang:[22,23,40],yet:[21,23,24,33,34,37,41],you:[28,29],your:29,zero:[22,23,24,27,34,40,48]},titles:["Annotation Class","Base Classes","Chord Class","MusPy Classes","KeySignature Class","Lyric Class","Metadata Class","Music Class","Note Class","Tempo Class","TimeSignature Class","Track Class","Base Dataset Classes","Supported Datasets","Datasets","Iterating over a MusPy Dataset object","Local Dataset Classes","Remote Dataset Classes","muspy.datasets","muspy.external","Technical Documentation","muspy.inputs","muspy.metrics","muspy","muspy.outputs","muspy.processors","muspy.schemas","muspy.visualization","Getting Started","MusPy documentation","ABC Interface","Input/Output Interfaces","JSON Interface","MIDI I/O Interface","Mido Interface","music21 Interface","MusicXML Interface","pretty_midi Interface","Pypianoroll Interface","YAML Interface","Metrics","Event-based Representation","Representations","Note-based Representation","Piano-roll Representation","Pitch-based Representation","Synthesis","Timing in MusPy","Visualization"],titleterms:{"class":[0,1,2,3,4,5,6,7,8,9,10,11,12,16,17,18,25,27],"function":[19,21,22,24,26,27],abc:30,annot:0,base:[1,12,18,41,43,45],chord:2,cite:29,complexbas:1,content:29,dataset:[12,13,14,15,16,17,18],disclaim:29,document:[20,29],error:21,event:41,extern:19,featur:[23,29],get:28,input:[21,31],instal:29,interfac:[30,31,32,33,34,35,36,37,38,39],iter:15,json:32,keysignatur:4,local:16,lyric:5,metadata:6,metric:[22,40],midi:33,mido:34,music21:35,music:7,musicxml:36,muspi:[3,15,18,19,21,22,23,24,25,26,27,29,47],note:[8,43],object:15,other:40,output:[24,31],over:15,piano:[44,48],pitch:[40,45],pretty_midi:37,processor:25,pypianorol:38,relat:40,remot:17,represent:[41,42,43,44,45],rhythm:40,roll:[44,48],schema:26,score:48,start:28,support:13,synthesi:46,technic:20,tempo:9,time:47,timesignatur:10,track:11,variabl:26,visual:[27,48],why:29,yaml:39}}) \ No newline at end of file diff --git a/muspy/datasets/base.py b/muspy/datasets/base.py index f6146cb..dd029aa 100644 --- a/muspy/datasets/base.py +++ b/muspy/datasets/base.py @@ -15,13 +15,20 @@ ) import numpy as np +from joblib import Parallel, delayed from numpy.random import RandomState, permutation from tqdm import tqdm from ..inputs import load, read_abc_string from ..music import Music from ..outputs import save -from .utils import download_url, extract_archive +from .utils import ( + check_md5, + check_sha256, + check_size, + download_url, + extract_archive, +) try: from torch.utils.data import Dataset as TorchDataset @@ -38,12 +45,6 @@ except ImportError: HAS_TENSORFLOW = False -try: - from joblib import Parallel, delayed - - HAS_JOBLIB = True -except ImportError: - HAS_JOBLIB = False RemoteDatasetType = TypeVar("RemoteDatasetType", bound="RemoteDataset") FolderDatasetType = TypeVar("FolderDatasetType", bound="FolderDataset") @@ -133,13 +134,6 @@ def save( **kwargs Keyword arguments to pass to :func:`muspy.save`. - Notes - ----- - The converted files will be named by its index. The original - filenames can be found in the ``filenames`` attribute. For - example, the file at ``filenames[i]`` will be converted and - saved to ``{i}.json``. - """ if kind not in ("json", "yaml"): raise TypeError("`kind` must be either 'json' or 'yaml'.") @@ -171,11 +165,6 @@ def _saver(idx): if _saver(idx): count += 1 else: - if not HAS_JOBLIB: - raise ValueError( - "Optional package joblib is required for multiprocessing " - "(n_jobs > 1)." - ) # TODO: This is slow as `self` is passed between workers. results = Parallel(n_jobs=n_jobs, backend="threading", verbose=5)( delayed(_saver)(idx) for idx in range(len(self)) @@ -183,7 +172,6 @@ def _saver(idx): count = results.count(True) if verbose: print(f"Successfully saved {count} out of {len(self)} files.") - (root / ".muspy.success").touch(exist_ok=True) def split( self, @@ -531,14 +519,20 @@ def source_exists(self) -> bool: filename = self.root / source["filename"] if not filename.is_file(): return False - if "size" in source and filename.stat().st_size != source["size"]: + if "size" in source and not check_size(filename, source["size"]): + return False + if "md5" in source and not check_md5(filename, source["md5"]): + return False + if "sha256" in source and not check_sha256( + filename, source["sha256"] + ): return False return True def download( self: RemoteDatasetType, overwrite: bool = False, verbose: bool = True ) -> RemoteDatasetType: - """Download the source datasets. + """Download the dataset source(s). Parameters ---------- @@ -552,6 +546,13 @@ def download( Object itself. """ + if self.exists(): + if verbose: + print( + "Skip downloading as the `.muspy.success` file is found." + ) + return self + for source in self._sources.values(): download_url( source["url"], @@ -582,6 +583,11 @@ def extract( Object itself. """ + if self.exists(): + if verbose: + print("Skip extracting as the `.muspy.success` file is found.") + return self + for source in self._sources.values(): filename = self.root / source["filename"] if source["archive"]: @@ -997,7 +1003,7 @@ def convert( """ if self.converted_exists(): if verbose: - print("Skip conversion as the converted folder exists.") + print("Skip conversion as the `.muspy.success` file is found.") return self self.on_the_fly() self.converted_dir.mkdir(exist_ok=True) @@ -1009,6 +1015,7 @@ def convert( verbose=verbose, **kwargs, ) + (self.converted_dir / ".muspy.success").touch(exist_ok=True) self.use_converted() self.kind = kind return self diff --git a/muspy/datasets/utils.py b/muspy/datasets/utils.py index 20fda19..2ff5c2d 100644 --- a/muspy/datasets/utils.py +++ b/muspy/datasets/utils.py @@ -150,7 +150,7 @@ def download_url( """ path = Path(path) if not overwrite and path.is_file(): - if size is not None and path.stat().st_size != size: + if size is not None and not check_size(path, size): raise RuntimeError( "Existing file has a different size from the expected one." ) @@ -176,7 +176,7 @@ def download_url( urlretrieve(url, path) # Run checks - if size is not None and path.stat().st_size != size: + if size is not None and not check_size(path, size): raise RuntimeError( "Downloaded file has a different size from the expected one." )