468,512 Members | 1,361 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,512 developers. It's quick & easy.

Playing MIDI File in C

Can anybody tell me you to play MIDI file through a C program ?

i am using Turbo C++

Thanks.........
Dec 2 '07 #1
8 4732
ravi wrote:
Can anybody tell me you to play MIDI file through a C program ?

i am using Turbo C++
Please ask in <news:comp.os.ms-windows.programmer.win32or one of the
microsoft.public.* groups. Standard C by itself has no concept of audio
other than the '\a' escape sequence. You'll have to use a platform
specific library or API.

Dec 2 '07 #2
ravi wrote:
Can anybody tell me you to play MIDI file through a C program ?

i am using Turbo C++

Thanks.........
Also a web search turns up these two links that might help you.

<http://www.borg.com/~jglatt/tech/winapi.htm>
<http://www.borg.com/~jglatt/progs/software.htm>

The first link is a tutorial for Windows MIDI and digital audio and the
second link contains software for this. See the "Developer's software"
section at the second link.

Dec 2 '07 #3
Please ask in <news:comp.os.ms-windows.programmer.win32or one of the
microsoft.public.* groups. Standard C by itself has no concept of audio
other than the '\a' escape sequence. You'll have to use a platform
specific library or API.
Decoding the midi file and then play it by directly interfacing with
speakers using inportb() function in conio.h or sound() function in
dos.h.

is it possible or not and if possible then HOW TO DECODE MIDI FILE ?
Dec 3 '07 #4
ravi wrote:
>Please ask in <news:comp.os.ms-windows.programmer.win32or one of the
microsoft.public.* groups. Standard C by itself has no concept of audio
other than the '\a' escape sequence. You'll have to use a platform
specific library or API.

Decoding the midi file and then play it by directly interfacing with
speakers using inportb() function in conio.h or sound() function in
dos.h.

is it possible or not and if possible then HOW TO DECODE MIDI FILE ?
It is possible using MSDOS.

It is NOT possible using windows XP or above.

It is NOT possible using any 32 bit system.

--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32
Dec 3 '07 #5
It is possible using MSDOS.
>
It is NOT possible using windows XP or above.

It is NOT possible using any 32 bit system.

--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatiquehttp://www.cs.virginia.edu/~lcc-win32
Can you tell me how ?
I am using MS DOS i.e Turbo C++ 3.0 which is a DOS based C/C++
compiler.
Dec 3 '07 #6
jacob navia wrote:
ravi wrote:
>>Please ask in <news:comp.os.ms-windows.programmer.win32or one of the
microsoft.public.* groups. Standard C by itself has no concept of audio
other than the '\a' escape sequence. You'll have to use a platform
specific library or API.

Decoding the midi file and then play it by directly interfacing with
speakers using inportb() function in conio.h or sound() function in
dos.h.

is it possible or not and if possible then HOW TO DECODE MIDI FILE ?

It is possible using MSDOS.

It is NOT possible using windows XP or above.

It is NOT possible using any 32 bit system.
Of course I am speaking about using inportb and outportb

--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32
Dec 3 '07 #7
On Dec 3, 3:30 pm, jacob navia <ja...@nospam.comwrote:
jacob navia wrote:
ravi wrote:
>Please ask in <news:comp.os.ms-windows.programmer.win32or one of the
microsoft.public.* groups. Standard C by itself has no concept of audio
other than the '\a' escape sequence. You'll have to use a platform
specific library or API.
Decoding the midi file and then play it by directly interfacing with
speakers using inportb() function in conio.h or sound() function in
dos.h.
is it possible or not and if possible then HOW TO DECODE MIDI FILE ?
It is possible using MSDOS.
It is NOT possible using windows XP or above.
It is NOT possible using any 32 bit system.

Of course I am speaking about using inportb and outportb

--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatiquehttp://www.cs.virginia.edu/~lcc-win32
i am taking about decoding midi files.
Dec 3 '07 #8
ravi wrote:

<snip>
i am taking about decoding midi files.
Search the Net for pre-existing libraries for this. They are available
for most systems, including DOS, Windows and UNIX. However you may have
additional trouble under DOS. As jacob said, decoding MIDI files
yourself may be a tedious task and if you knew how to do that, you
wouldn't be asking here in the first place.

Dec 3 '07 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by SOB-like MIDIs | last post: by
reply views Thread by Put 030516 in email subj to get thru | last post: by
reply views Thread by Max M | last post: by
11 posts views Thread by Kuba Araszkiewicz | last post: by
2 posts views Thread by david | last post: by
6 posts views Thread by Massi | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.