How to convert a midi file to ogg or flac with Timidity.

Posted: February 23, 2014. At: 3:09 PM. This was 4 years ago. Post ID: 6996
Page permalink.
WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters. These cookies expire two weeks after they are set.

This is how to use Timidity to convert a MIDI file into an ogg vorbis audio file. This is very useful for playing them with Banshee or Audacious.

[[email protected] Documents]$ timidity sound009.mid -Ov -o blood009.ogg
Playing sound009.mid
MIDI file: sound009.mid
Format: 1  Tracks: 10  Divisions: 480
Sequence: Seq-1
Track name: Track-5
Track name: Track-7
Track name: Track-1
Track name: Track-2
Track name: Track-3
Track name: Track-4
Track name: Track-6
Track name: Track-8
Track name: Track-9
Tone bank 4 is undefined
Tone bank 56 is undefined
Playing time: ~231 seconds
Notes cut: 0
Notes lost totally: 0

This is how to convert to a flac file, this is another good option for converting a MIDI file to listen with a music player.

[[email protected] Documents]$ timidity sound009.mid -OF -o blood009.flac
Playing sound009.mid
MIDI file: sound009.mid
Format: 1  Tracks: 10  Divisions: 480
Sequence: Seq-1
Track name: Track-5
Track name: Track-7
Track name: Track-1
Track name: Track-2
Track name: Track-3
Track name: Track-4
Track name: Track-6
Track name: Track-8
Track name: Track-9
Tone bank 4 is undefined
Tone bank 56 is undefined
Playing time: ~231 seconds
Notes cut: 0
Notes lost totally: 0
Wrote 14136559/40409644 bytes(34.9831% compressed)

Timidity uses soundfonts to play midi files. They can be replaced with better ones to improve the playback of midi files. But I really like this ability. Converting midi files into ogg and flac is very useful.

No comments have been made. Use this form to start the conversation :)

Leave a Reply