Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert MIDI file to WAV using fluidsynth on OS X

I'm trying to convert a MIDI file to a WAV file, on OS X.

So far, I have this:

fluidsynth -F output_sound soundfont.sf2 note.mid

This creates an output_sound file, however, that file is not WAV, it seems to be in sint16 format given that I get this output:

~ $ fluidsynth -O help
FluidSynth version 1.1.6
Copyright (C) 2000-2012 Peter Hanappe and others.
Distributed under the LGPL license.
SoundFont(R) is a registered trademark of E-mu Systems, Inc.

-O options (audio file format):
   's16'

Is there an easy way to convert the output_sound to a WAV file in Terminal (or in any scriptable fashion)?

like image 346
houbysoft Avatar asked Nov 04 '13 05:11

houbysoft


People also ask

How do I convert a MIDI file to WAV?

How to convert a MIDI to a WAV file? Choose the MIDI file that you want to convert. Select WAV as the the format you want to convert your MIDI file to. Click "Convert" to convert your MIDI file.


1 Answers

I found the easiest solution to be timidity:

timidity input.mid -Ow -o out.wav

If you use homebrew it's also trivial to install:

brew install timidity
like image 147
jjs Avatar answered Oct 06 '22 05:10

jjs