LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   can I transform a MIDI into a non-digital sound? (https://www.linuxquestions.org/questions/linux-software-2/can-i-transform-a-midi-into-a-non-digital-sound-4175447199/)

newbiesforever 01-25-2013 12:32 PM

can I transform a MIDI into a non-digital sound?
 
I always wanted to put my MIDI music collection on a CD or on my music player, but it's impossible--the only way I know how to listen to MIDI music is using a MIDI player on a computer (Timidity, in Linux). Can I use Audacity to transform MIDI sound into a non-digital sound format-- OGG or anything else playable by non-MIDI software or equipment? So far, all I can do is open my MIDI files in Audacity.

headrift 01-25-2013 01:09 PM

Timidity++ will convert a MIDI to an OGG without much hassle.

Code:

timidity -Ov midifile.mid
...will save a new file called "midifile.ogg".

Audacity might edit your MIDI file, but I'm pretty sure it doesn't play audio from them. I haven't checked for a decade.

There are more output options if you look at the timidity help.

newbiesforever 01-25-2013 01:53 PM

Thanks. Do I need to have the output file already made? because (assuming "midifile.mid" was your example) I specified an output .OGG file with the same filename as the MIDI piece and it didn't work. I entered:

Quote:

timidity -Ov '/media/sda1/data/music/midi/rainbowc.mid' rainbowc.ogg

and regarding the output file, the output said:


Quote:

Playing rainbowc.ogg
MIDI file: rainbowc.ogg
rainbowc.ogg: No such file or directory
...

EDIT: Forget that question. Well, this is strange: even though it said "No such file or directory" (indicating the output file doesn't exist, right?), once I actually looked, I found the newly made output file where it's supposed to be. It does sound exactly the same as the MIDI (I wasn't sure it would).

headrift 01-25-2013 02:08 PM

Don't specify an output file. In your example, timidity would create a file named rainbowc.ogg automatically from rainbowc.mid -- timidity will look for rainbowc.ogg as a second midi input file if you specify it on the command line like you've done.

Again, there are more options you can play with... I can't seem to find a good man page for timidity online, but `man timidity` or just `timidity -h` will show them to you.

newbiesforever 01-25-2013 02:43 PM

Thanks, this does what I wanted.


All times are GMT -5. The time now is 01:45 AM.