Last active
August 29, 2015 14:07
-
-
Save ykrkn/a067b6e11c2c5c299200 to your computer and use it in GitHub Desktop.
ubuntu playing midi sf2
This file contains hidden or 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
sudo apt-get install fluidsynth fluid-soundfont-gm fluid-soundfont-gs lame | |
git clone https://github.com/beschulz/wav2png | |
gst-launch-1.0 filesrc location=222.mid ! midiparse ! fluiddec ! pulsesink | |
gst-launch-1.0 filesrc location=222.mid ! midiparse ! fluiddec ! audioconvert ! audio/x-raw,channels=1 ! lamemp3enc ! filesink location=222.mp3 | |
gst-launch-1.0 filesrc location=222.mid ! midiparse ! fluiddec ! audioconvert ! audio/x-raw,channels=1,format=S16LE ! wavenc ! filesink location=222.wav | |
fluiddec synth-chorus=false synth-reverb=false synth-gain=1 | |
audioconvert ! rgvolume pre-amp=6.0 headroom=10.0 ! rglimiter ! audioconvert | |
fluidsynth -C0 -R0 -O s16 -F 222.wav /usr/share/sounds/sf2/FluidR3_GM.sf2 222.mid | |
lame 222.wav 222.mp3 | |
vlc --started-from-file 222.mp3 | |
wav2png --background-color=ddddddaa --foreground-color=003168ff -o 222.png 222.wav |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment