Advertisement

Anyone know the low-level (Windows) MIDI API?

Started by August 04, 2000 11:33 PM
3 comments, last by win32mfc 24 years, 5 months ago
Hiya- I''m interested in ''playing'' midi notes dynamically. I want to write a program that lets you pick any single note and transmit it to a midi device. Sort of like an interactive piano. Does anyone know how to do this, where to find a write-up or sample program? I already know how to play a Midi file through the Multimedia control samples in the Visual C++ documentation, but I want to dynamically create the notes and play them. In mmsystem.h I see functions that start with "MidiIn" and "MidiStream" and "MidiOut", but was wondering where I can find good information (with a sample, would be nice) on that API''s usage. Thanks in advance for any help! // CHRIS
// CHRIS [win32mfc]
I''m too sleepy to write a long dissertation on MIDI right now so I''ll just give you this link.
~ The opinions stated by this individual are the opinions of this individual and not the opinions of her company, any organization she might be part of, her parrot, or anyone else. ~
Advertisement
Thanks felisandria, that''s a very good resource for MIDI information. I couldn''t find any source code samples (or simple programs that came with source code.) That''s what I am trying to find right now.. I''m going to try and futz around with the MidiIn*, MidiOut* and MidiStream* functions when I get some time.. I''m just hoping to find at least one sample. I couldn''t find any samples included with Visual C++ or on MSDN.

I just ordered the "General MIDI Spec" book from the MMA (Midi Manufacturers Assoc). I''d really like to talk directly to my Roland JV-30 keyboard using MIDI. No big plans, just want to do it for the fun of it and to learn how it''s done.

Thanks agian. If you happen to know any samples or open source projects for windows that do this sort of thing, I''d appreciate a link! I''m still searching myself but no luck yet.

// CHRIS
// CHRIS [win32mfc]
well
i can give a sample for low level midi(NOTES) if you want let me know

btw-it''s for dos, that''s why i dunoo if you need it

anyhow it works...
Look into Windows Programming from Charles Petzold.. A very good book!!!
He goes from the basic windows API to low-level midi and a touch of FTP.

Windows will let your code to access to your sound card I/O ports and the palette addresses in you video card, but I will not let you dramatically change the video mode .. well.. for obvious reasons =).

LPDIRECTDRAWPALETTE ... bah.. I will bother with it because it just creates a big look up table for RGB data.


The nightmare travels across the cosmos with his burning mane. The trail of ash that is produced.

?Have a nice day!?

This topic is closed to new replies.

Advertisement