Link to home
Start Free TrialLog in
Avatar of Raid
Raid

asked on

Midi

How do I play a midi file in Turbo Pascal 7.
I make the midi's in midisoft session, and I
want to be able to play them in my games.
I want it to be able to play all the instruments
like windows can.
Avatar of jack_p50
jack_p50

see here : http://www.hornet.org/code/   
(in music, sound or smth like this section), you can also search "midi"
Avatar of Raid

ASKER

Sorry Jack, But I did a search and looked for a midi
player but there was none.  Thanks for trying anyway :)
And, if you have other sites, I'd like to try them out.
I found something on http://www.cs.vu.nl/~jprins in the sound section. I think it's a unit to play MIDI files.
Hi,
I found what you need, go to

http://195.103.168.21/pascal/unitsing.html

in here you can find code to play some more formats, including MIDI.

See ya
PJA
well what am i going to do is give you paradise for programmers

    ftp:\\x2ftp.oulu.fi\pub\programming\

enjoy it, i did

Avatar of Raid

ASKER

Sorry, but that midi player didn't even work.  I don't have a midi mpu-401 card.  Thanks for trying anyway.
Avatar of Raid

ASKER

Whatboy, I don't think that address works, I tried to goto it, but it said there was no such site as that.  If you typed it wrong, may I have a re-type on that address.
Thanks
What card do you have then? A real GM-adapter? Or just a Soundblaster?
Avatar of Raid

ASKER

I don't think I have a real GM-Adapter, but it says in the BLASTER environment variable that there is a midi-port.  Does that mean I have midi-capability then?
Often midi-files are written for a specific set of instruments. The GM (General Midi) standard is a standard supported by most MIDI-device manufacturers, but not all of them, that describes (it may contain more, I'm not a MIDI-expert) which number belongs to which instrument. Most Roland synthesizers are GM-compliant, and most Yamaha aren't.

The MIDI-port that's on your SoundBlaster is probably just an FM synthesizer, or if you have an AWE, it's a wavetable synthesizer. I'm not sure about the wavetable, but the FM synthesizer is not GM-compliant.

If you want to play MIDI-files, you'll have to know what your MIDI-output device will be. If it's a SoundBlaster don't be GM-compliant, and the other way around.

But there's always the possibility that you have a MIDI-box connected to your SoundBlaster gameport and you've connected a GM-compliant MIDI-device.
ASKER CERTIFIED SOLUTION
Avatar of girts063098
girts063098

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Well XMI does differ a bit from MIDI: MIDI files can be stored in three types: type 0 and 1 (the well known MIDI-format) and type 2, XMI. XMI is short for eXtended MIDI, but I'm not sure if it really extends MIDI in a way.

By the way, I've never been able to convert a MIDI file to an XMI, because I didn't have the right utilities to do that, but it could work with the converter.
XMI is eXtended MIDI format, coz in one XMI file can be stored more than one MIDI music (tracks).
But a MIDI file can store an unlimited number of tracks (or at least 64), so what's the point in using XMI, except that you can use it with your programs/units?
you didnt understand me (maybe my fault), in one XMI file you can store multiple MID files.
Oh, but isn't that a feature for extremely lazy people, who don't want to copy and paste tracks to just one MIDI file? :)

I can imagine it would be useful. Thank for the info.
Avatar of Raid

ASKER

That was very useful, and it REALLY works.  It is definitely worth the 200 points.  Thank you Girts.
can you give it to me?
jack_p50@usa.net