Skip to content

Instantly share code, notes, and snippets.

@korakot
Created February 1, 2019 13:40
Show Gist options
  • Save korakot/a0c6b0120bb75d48588aec27030b3325 to your computer and use it in GitHub Desktop.
Save korakot/a0c6b0120bb75d48588aec27030b3325 to your computer and use it in GitHub Desktop.
Convert midi to wav and play in Colab
!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