Skip to content

Instantly share code, notes, and snippets.

@bearpelican
Created August 1, 2019 08:24
Show Gist options
  • Select an option

  • Save bearpelican/b1bf9ef6d8790e71536f97e9748439f6 to your computer and use it in GitHub Desktop.

Select an option

Save bearpelican/b1bf9ef6d8790e71536f97e9748439f6 to your computer and use it in GitHub Desktop.
# Let's create a partial progression I-V-vi
p = music21.stream.Part()
p.append(music21.chord.Chord('C4 E4 G4', type='half')) # I
p.append(music21.chord.Chord('G3 B3 D4', type='half')) # V
p.append(music21.chord.Chord('A3 C4 E4', type='half')) # vi
s = music21.stream.Score([p])
chord_item = MusicItem.from_stream(s, vocab)
chord_item.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment