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.
RaidAsked:
Who is Participating?
 
girts063098Connect With a Mentor Commented:
You can use MIDIPAK driver to play midi files in Pascal. Actualy it doesnt play .mid files but .xmi files. But there is no differece you play .xmi file or .mid file. .mid files can be freely converted to .xmi file. If you are interested in it you can send me an email to girts@eddi.lv, so I could send you MIDIPAK driver, coverter and Pascal source code. It realy works, I have used it in some my Pascal and Asm programs.
0
 
jack_p50Commented:
see here : http://www.hornet.org/code/   
(in music, sound or smth like this section), you can also search "midi"
0
 
RaidAuthor Commented:
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.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
vxCommented:
I found something on http://www.cs.vu.nl/~jprins in the sound section. I think it's a unit to play MIDI files.
0
 
pjmazeCommented:
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
0
 
My name is MudSystems EngineerCommented:
well what am i going to do is give you paradise for programmers

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

enjoy it, i did

0
 
RaidAuthor Commented:
Sorry, but that midi player didn't even work.  I don't have a midi mpu-401 card.  Thanks for trying anyway.
0
 
RaidAuthor Commented:
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
0
 
vxCommented:
What card do you have then? A real GM-adapter? Or just a Soundblaster?
0
 
RaidAuthor Commented:
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?
0
 
vxCommented:
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.
0
 
vxCommented:
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.
0
 
girts063098Commented:
XMI is eXtended MIDI format, coz in one XMI file can be stored more than one MIDI music (tracks).
0
 
vxCommented:
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?
0
 
girts063098Commented:
you didnt understand me (maybe my fault), in one XMI file you can store multiple MID files.
0
 
vxCommented:
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.
0
 
RaidAuthor Commented:
That was very useful, and it REALLY works.  It is definitely worth the 200 points.  Thank you Girts.
0
 
jack_p50Commented:
can you give it to me?
jack_p50@usa.net
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.