-
Notifications
You must be signed in to change notification settings - Fork 433
Open
Labels
Description
music21 version
9.9.1
Operating System(s) checked
Mac 26
Problem summary
When playing midi file in Colab, only piano soundfont is being used.
Steps to reproduce
Run this code in colab, and click the play button, you'll hear piano sound:
from music21 import converter, instrument
stream = converter.parse('tinyNotation: 4/4 C4 D4 E4 F4 G4 A4 B4 c4')
stream.insert(0, instrument.Accordion())
stream.show('midi')
But using play_midi you'll hear accordion:
from midi_player import MIDIPlayer
from music21 import converter, instrument
stream = converter.parse('tinyNotation: 4/4 C4 D4 E4 F4 G4 A4 B4 c4')
stream.insert(0, instrument.Accordion())
stream.write('midi',fp='/tmp/music-51.midi')
MIDIPlayer('/tmp/music-51.midi', 400)
Expected vs. actual behavior
More information
I could see the grand piano ogg being downloaded, but not others.
Thanks for your work and help!