LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-12-2009, 12:16 AM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,342

Rep: Reputation: Disabled
what makes MIDI files sound different?


I know it's obvious, but MIDI music sounds different on different computers. What is mainly responsible for that? Is it mainly the sound card (the most obvious thing), the MIDI playing program, or even the operating system? As I expected (because my last several computers were much older than this one, which I built last year), the MIDIs sound less digital and more like music that wasn't made with a MIDI keyboard. But I didn't expect them to sound so different from what they sounded like on the Windows Media Player running on sound cards from the mid-90s to early 2000s.
 
Old 03-12-2009, 12:49 AM   #2
Hendronicus
Member
 
Registered: Feb 2006
Location: Oldsmar, Fl. USA
Distribution: Slackware, Ubuntu
Posts: 176

Rep: Reputation: 50
A MIDI file is just a series of instructions to a synthesizer, (or another piece of digital equipment, but that's another question) if the synth is different then the sound may be different. MIDI itself is just a glorified serial protocol. You may have a synth like the famous opl2 and 3 series that directly creates the analog sounds you hear or you may have a "wavetable" setup which references small recorded samples for the notes. Wavetables are generally considered by most people to sound better. Newer OSs, generally include some kind of wavetable setup that redirects the samples to your sound card, this takes only a trivial amount of modern processing power. Older sound cards synthesized the sounds directly with oscillators and filters.

Last edited by Hendronicus; 03-12-2009 at 01:04 AM. Reason: spelling
 
Old 03-12-2009, 01:00 AM   #3
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,342

Original Poster
Rep: Reputation: Disabled
Too bad. These sound good, but I like the old MIDI sound better.
 
Old 03-12-2009, 01:12 AM   #4
Hendronicus
Member
 
Registered: Feb 2006
Location: Oldsmar, Fl. USA
Distribution: Slackware, Ubuntu
Posts: 176

Rep: Reputation: 50
You could get the "older" sound a couple of ways if you really wanted to. One way would be to use sampled "synth" sounds in the wavetable, another way would be to use an external synth that works the "old" way. I suggest a really cheap Casio or mid '90s Yamaha. I doubt you have any ISA slots to plug an old SB16 into; the newer ones don't have an OPL chip. I used to have a Linux program that mimicked an analog synth, but I've forgotten the name and it only had direct controls, meaning you couldn't play MIDI files with it.
 
Old 03-12-2009, 01:24 AM   #5
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,342

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Hendronicus View Post
You could get the "older" sound a couple of ways if you really wanted to. One way would be to use sampled "synth" sounds in the wavetable, another way would be to use an external synth that works the "old" way. I suggest a really cheap Casio or mid '90s Yamaha. I doubt you have any ISA slots to plug an old SB16 into; the newer ones don't have an OPL chip. I used to have a Linux program that mimicked an analog synth, but I've forgotten the name and it only had direct controls, meaning you couldn't play MIDI files with it.
That's a thought. Some of my MIDI files are so good that I would pay a reasonable amount of money for an old sound card. I don't even know what an ISA slot is.
 
Old 03-12-2009, 01:36 AM   #6
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,342

Original Poster
Rep: Reputation: Disabled
But is the sound influenced in any way by how the sound card works with Linux? Or should I expect these MIDI files to sound the same if this computer were running Windows?
 
Old 03-12-2009, 01:38 AM   #7
Hendronicus
Member
 
Registered: Feb 2006
Location: Oldsmar, Fl. USA
Distribution: Slackware, Ubuntu
Posts: 176

Rep: Reputation: 50
ISA is what they had before PCI. The newest mobo with an ISA slot I've seen was from around 2003. Now, I'm pretty sure there are still some specialty boards that have ISA slots for legacy hardware decryptors and such, but I wouldn't know where to get one. The easiest way is to look around the 'net for Timidity patch sets that emulate an old synth. I don't know where to find those either, but I'll bet they exist. Lots of people like that old "analog" sound. It reminds me of old NES games. One other thing you could try is installing a SID player and converting your .mid files to .sid and playing them that way. It's kind of crazy but I've seen dumber things work. There's also a project called ADPlug that is supposed to emulate an old ADlib sound card. That might be the sound you're looking for. I got it to work once with XMMS, of all things.

No, Linux doesn't really have anything to do with how MIDIs sound, it's all the sound card and drivers.

Last edited by Hendronicus; 03-12-2009 at 01:41 AM.
 
Old 03-12-2009, 02:17 AM   #8
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,342

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Hendronicus View Post
Lots of people like that old "analog" sound. It reminds me of old NES games.
Exactly! And several of my MIDIs are indeed NES video game themes. In that category, I've collected the "The Legend of Zelda" original theme; several pieces from the Teenage Mutant Ninja Turtles games (including the underwater theme from the original); at least three from Maniac Mansion; a few racing game themes; and the "Chill" music from Dr. Mario. The Zelda and Maniac Mansion pieces are great, but the others are mediocre.
My other MIDIs are also of varying quality. Some of them, such as the two versions I found of a Bob Seger hit, are as good as or better than the non-MIDI music they are based on; but others (such as the version of Herb Alpert's "Rise") are just weird curiosities.
I should mention that none of them are made by me. I found them all online, some in the late nineties when the Internet still seemed young and new to someone who didn't use it until circa 1994.

Last edited by newbiesforever; 03-12-2009 at 02:21 AM.
 
Old 03-12-2009, 04:29 AM   #9
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Most new cards doesn't have a midi synth. That has cons and pros.

So, most of them use a software synth to play midi, and in that case, it's the software which counts. It's not usually the player which do the conversion (though it's possible, but not a common thing). Most players use the synth installed in your OS, the player doesn't care if it's a software or hardware synth and it doesn't need to know about that either. It just sends notes and instrument numbers, and the synth does the rest of the work.

That synth needs a proper instrument table so it knows what sound is to be played when you say "play C-2 with instrument number 11". Most hardware synths can be programmed with different instrument sets, just like you'd configure a midi piano. Software synths need the same. To change how your synth sounds you just need to load a new soundfont patchset. The question here is "which one can give you the sounds that you like", and there I can't help you.

There are lots of soundfonts in the net, some for free, some are propietary and will require the payment of a given quantity (that can vary depending on the author and the quality of the samples. For example:

http://www.sf2midi.com/

Just google "free midi soundfonts" to get an idea. Once you have a soundfont you can load it in your synth and all the instruments will be reprogrammed with the new soundfont. How this is done depends on the synth you use. So first you will have to find what synth software you are using. Two popular ones for linux are timitidy++ and fluidsynth.

EDITED: Also, I *think* but not sure that dosbox can play midis without having any synth software loaded. You might want to try a DOS midi player under dosbox and see if that works for you. At least, the midi stuff for kyrandia and similar games play ok there, from what I remember.

Last edited by i92guboj; 03-12-2009 at 04:30 AM.
 
Old 03-12-2009, 11:02 PM   #10
Hendronicus
Member
 
Registered: Feb 2006
Location: Oldsmar, Fl. USA
Distribution: Slackware, Ubuntu
Posts: 176

Rep: Reputation: 50
I went and checked today and ADPlug is definitely in the Ubuntu repos so it might be in the Mepis ones as well, and it has an XMMS plugin. It emulates an OPL2 chip and sounds just like an NES. No hassle at all, too, just install it, activate the plugin, and browse for a .mid file. You might have to de-activate the Timidity plugin, if you have one in XMMS as well.

Last edited by Hendronicus; 03-12-2009 at 11:04 PM. Reason: spelling
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Via 8235 plays midi files but no sound the-yikes Slackware 1 07-30-2008 01:16 PM
midi keyboard, how to make sound?midi keyboard, how to produce sounds? Blyiss Linux - Software 10 03-24-2007 08:53 PM
sound card makes scratchi sounds playing .wav files. krmane Fedora 0 06-27-2006 12:35 PM
No sound with MIDI files in kmid - Fedora Core 4 PeterRJG Linux - Newbie 1 08-06-2005 03:08 AM
How to play MIDI files: needed a MIDI mapper? vharishankar Linux - General 3 12-30-2004 12:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration