Created
February 1, 2019 13:40
-
-
Save korakot/a0c6b0120bb75d48588aec27030b3325 to your computer and use it in GitHub Desktop.
Convert midi to wav and play in Colab
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
!apt install fluidsynth | |
!cp /usr/share/sounds/sf2/FluidR3_GM.sf2 ./font.sf2 | |
!fluidsynth -ni font.sf2 input.mid -F output.wav -r 44100 | |
from IPython.display import Audio | |
Audio('output.wav') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment