music21
code:tinynotation1.py
from music21 import *
s = converter.parse('tinyNotation: 4/4 C4 D4 E4 F4 G4 A4 B4 c4')
s.show()
https://gyazo.com/4ae108fa51bb6bf5c51dbef824d2ecb7
有名なライセンスフリーの曲のデータ(主にクラシック)がcorpusを通して直接さわれる
code:corpus.py
bwv255 = corpus.parse('Bwv255')
bwv255.show()
Music21 is a set of tools for helping scholars and other active listeners answer questions about music quickly and simply. If you’ve ever asked yourself a question like, “I wonder how often Bach does that” or “I wish I knew which band was the first to use these chords in this order,” or “I’ll bet we’d know more about Renaissance counterpoint (or Indian ragas or post-tonal pitch structures or the form of minuets) if I could write a program to automatically write more of them,” then music21 can help you with your work.