-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
692da09
commit 57c2024
Showing
118 changed files
with
1,163 additions
and
893 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
============ | ||
Base Classes | ||
============ | ||
|
||
|
||
Base Class | ||
========== | ||
|
||
All MusPy classes inherit from the :class:`muspy.Base` class. A :class:`muspy.Base` object supports the following operations. | ||
|
||
- :meth:`muspy.Base.to_ordered_dict`: convert the content into an ordered dictionary | ||
- :meth:`muspy.Base.from_dict` (class method): create a MusPy object of a certain class | ||
- :meth:`muspy.Base.print`: show the content in a YAML-like format | ||
- :meth:`muspy.Base.validate`: validate the data stored in an object | ||
- :meth:`muspy.Base.is_valid`: return a boolean indicating if the stored data is valid | ||
- :meth:`muspy.Base.adjust_time`: adjust the timing of an object | ||
|
||
|
||
ComplexBase Class | ||
================= | ||
|
||
MusPy classes that contains list attributes also inherit from the :class:`muspy.ComplexBase` class. A :class:`muspy.ComplexBase` object supports the following operations. | ||
|
||
- :meth:`muspy.ComplexBase.append`: append an object to the corresponding list | ||
- :meth:`muspy.ComplexBase.remove_invalid`: remove invalid items from the lists | ||
- :meth:`muspy.ComplexBase.sort`: sort the lists | ||
- :meth:`muspy.ComplexBase.remove_duplicate`: remove duplicate items from the lists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
================== | ||
Supported Datasets | ||
================== | ||
|
||
Here is a list of the supported datasets. | ||
|
||
============================ ======== ====== ======= ========= ====== ====== ========== | ||
Dataset Format Hours Songs Genre Melody Chords Multitrack | ||
============================ ======== ====== ======= ========= ====== ====== ========== | ||
Lakh MIDI Dataset MIDI >5000 174,533 misc \* \* \* | ||
MAESTRO Dataset MIDI 201.21 1,282 classical | ||
Wikifonia Lead Sheet Dataset MusicXML 198.40 6,405 misc O O | ||
Essen Folk Song Dataset ABC 56.62 9,034 folk O O | ||
NES Music Database MIDI 46.11 5,278 game O O | ||
Hymnal Tune Dataset MIDI 18.74 1,756 hymn O | ||
Hymnal Dataset MIDI 17.50 1,723 hymn | ||
music21's Corpus misc 16.86 613 misc \* \* | ||
Nottingham Database ABC 10.54 1,036 folk O O | ||
music21's JSBach Corpus MusicXML 3.46 410 classical O | ||
JSBach Chorale Dataset MIDI 3.21 382 classical O | ||
============================ ======== ====== ======= ========= ====== ====== ========== | ||
|
||
(Asterisk marks indicate partial support.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
===================================== | ||
Iterating over a MusPy Dataset object | ||
===================================== | ||
|
||
Here is an illustration of the two internal processing modes for iterating over | ||
a MusPy Dataset object. | ||
|
||
.. image:: ../images/on_the_fly.svg | ||
:align: center | ||
:width: 475px | ||
|
||
.. image:: ../images/preconverted1.svg | ||
:align: center | ||
:width: 500px | ||
|
||
.. image:: ../images/preconverted2.svg | ||
:align: center | ||
:width: 475px |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: df18c40425533571f04d144c2a989f91 | ||
config: b1e7048c2d42530d6d3e45917004b0ae | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.