Last active
October 15, 2022 17:17
-
-
Save gpirrotta/28acbfd7676f35d7d6dd306f87ef26cb to your computer and use it in GitHub Desktop.
Violin-piano data sonification
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
from music21 import converter,instrument | |
s = converter.parse('../sounds/cad-piano.mid') | |
for p in s.parts: | |
p.insert(0, instrument.Violin()) | |
s.write('midi', '../sounds/cad-violino.mid') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment