Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
en:music21 [2022/02/28 10:24] martin [music21] |
en:music21 [2022/02/28 10:30] (aktuell) martin |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== music21 ====== | ====== music21 ====== | ||
The Python library //music21// is comprehensively documented on the project page of MIT Boston: In addition to a [[https:// | The Python library //music21// is comprehensively documented on the project page of MIT Boston: In addition to a [[https:// | ||
- | Especially in view of this very extensive documentation, | + | Especially in view of this very extensive documentation, |
==== Overview of the most important music21 commands ==== | ==== Overview of the most important music21 commands ==== | ||
- | The most important and useful commands in //music21// are listed | + | In the following, the most important and useful commands in //music21// are listed. More complex command sequences can be found with examples in the tutorials notes. |
(1) Handling files | (1) Handling files | ||
- | The following commands load the music1 | + | The following commands load the music21 |
Zeile 18: | Zeile 18: | ||
sBach = converter.parse(' | sBach = converter.parse(' | ||
- | Now the piece will be displayed | + | Now the piece will be displayed |
Zeile 27: | Zeile 27: | ||
| | ||
- | And this is how notes are played as midi: | + | And this is how the score is played as midi: |
| | ||
Zeile 40: | Zeile 40: | ||
# chooses bar 2 to 4 of the first voice as ' | # chooses bar 2 to 4 of the first voice as ' | ||
| | ||
- | # selects and displays. | + | # selects and displays |
Show number of elements: | Show number of elements: | ||
Zeile 51: | Zeile 51: | ||
| | ||
| | ||
- | # saves the variable | + | # saves the variables |
# Other formats can be chosen, e.g. | # Other formats can be chosen, e.g. | ||
| | ||
- | # alternative command for the first voice: | + | # alternative command for saving |
| | ||
Zeile 63: | Zeile 63: | ||
| | ||
| | ||
- | # only the second voice is displayed | + | # only the second voice is displayed |
| | ||
# only measures 2-5 are displayed | # only measures 2-5 are displayed |