observations.musedata
musedata(path)
Load the MuseData library of music scores. It includes both orchestral and piano classical music. Data is loaded in the piano-roll representation (Boulanger-Lewandowski, Bengio, & Vincent, 2012), i.e., a binary matrix specifying which notes occur at each time step.
Args:
path
: str. Path to directory which either stores file or otherwise file will be downloaded and extracted there. Filename isMuseData.pickle
.
Returns:
list of x_train, x_test, x_valid
, where each is a list of sequences. Each sequence is itself a list of time steps, and each time step is a list of the non-zero elements in the piano-roll at this instant (in MIDI note numbers, between 21 and 108 inclusive).
Boulanger-Lewandowski, N., Bengio, Y., & Vincent, P. (2012). Modeling temporal dependencies in high-dimensional sequences: Application to polyphonic music generation and transcription. In International conference on machine learning.