NOGDUS $1670.00 has been donated to NOGDUS!
September 20, 2017, 08:18:12 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Converting MIDI files to OGG on Linux  (Read 7698 times)
0 Members and 1 Guest are viewing this topic.
Richard Marks
Administrator
Offline Offline

Respect: 3425
« on: November 10, 2008, 01:24:13 PM »

How to create OGG files from MIDIs using Timidity++ and OGGEnc on Linux.

You need to have the OGG/Vorbis tools installed, and Timidity++.
I don't remember the package names exactly, but I think its ogg123 and timidity.
Search in Synaptic (if you are using Ubuntu) for ogg and timidity.

Lets assume that you have a MIDI file called source.mid that you want to convert to an OGG file.

Output the MIDI to a WAV file.

Code:
$ timidity source.mid -Ow -o dest.wav

Convert the WAV to OGG.

Code:
$ oggenc dest.wav

(optional) Delete the intermediate WAV.

Code:
$ rm -f dest.wav

The resulting ogg is named dest.ogg
Logged

Richard Marks
Administrator
Offline Offline

Respect: 3425
« Reply #1 on: November 12, 2008, 06:54:47 PM »

I have been messing with using soundfonts in Rosegarden, and I tried to create an ogg of my composition that I created that made use of special sounds that are in the soundfont I was using, and following the steps above will not give you what you expect.

You need to tell timidity where your soundfont is and optionally adjust the volume.

Code:
$ timidity source.mid --config-string='soundfont "path/to/soundfont/soundfont.sf2"' -A200 -Ow -o dest.wav

As you see above, I'm increasing the volume of the output by 200% with the -A200 command.

The rest of the steps are the same as above.
Logged

Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
.: Theme by Richard Marks :.
Valid XHTML 1.0! Valid CSS!