473,226 Members | 1,460 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,226 software developers and data experts.

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 5540
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: SOB-like MIDIs | last post by:
The applet for endlessly rising/falling scale (auditory illusion) on this page is fantastic! http://www.cs.ubc.ca/nest/imager/contributions/flinn/Illusions/ST/st.html How is this done?...
0
by: Put 030516 in email subj to get thru | last post by:
I'm trying to learn about Java MIDI programming. Specifically, I'm interested in playing with Java MIDI sequencers (all puns intended). I'm looking at...
0
by: Max M | last post by:
If anybody is interrested in Midi, but are not on the Python Midi list, I will just notify that I have released the first version of a high level midi package for Python. It is fully functional....
11
by: Kuba Araszkiewicz | last post by:
Hello! I have to write a program, which would convert midi files to notes, notes to midi files and which would make one MIDI file from two different. I'm totally lame in C (and any other...
2
by: david | last post by:
1.I am considering doing a midi file generator for my 4th year project in B.SC. 2.I would do it using c language, but i'm not sure abou t the level of difficulyt involved 3.Basically, the...
1
by: tim | last post by:
Someone using Python Midi Package from http://www.mxm.dk/products/public/ lately? I want to do the following : write some note events in a midi file then after doing that, put some controllers...
4
by: dbojan | last post by:
The rhythm giving midi file will be one track.Like midi drummer.And on the other midi file -the rhythm taker -we will place our notes regardless of their length (if they are chords no problem) and...
0
by: dbojan | last post by:
The rhythm giving midi file will be one track.And on the other midi file -the rhythm taker -we will place our notes regardless of their length (if they are chords no problem) and they will have the...
6
by: Massi | last post by:
Hi everyone, I'm searching for "something" which allows me to write scripts which handle midi files. I'm totally a newbie in audio manipulation, therefore any suggestion or link related to this...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.