NOGDUS
July 21, 2018, 12:42:40 PM *
Welcome, Guest. Please login or register.

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

Respect: 3425
Offline Offline

Posts: 1027


happy


« 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
202192397
Administrator
Member
*

Respect: 3425
Offline Offline

Posts: 1027


happy


« 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 Valid XHTML 1.0! Valid CSS!