Article View: borland.public.cppbuilder.nativeapi
Article #16501Re: API interface to MIDI ?
From: Chris Hill
Date: Sun, 11 May 2003 15:37
Date: Sun, 11 May 2003 15:37
30 lines
2075 bytes
2075 bytes
On Sat, 10 May 2003 19:41:31 -0700, "Nicholas Gessler" <gessler@ucla.edu> wrote: >It was probably a mistake to post this to the Graphics group. My guess is >that there must be an API handle to the MIDI device.. > >So, how can I simply talk to an internal MIDI device? >Is there a Windows API connection to the onboard MIDI? > >Thanks, >Nick There are several APIs that can be used with MIDI data: 1) The low level midiIn* and midiOut* functions can play and record MIDI messages. (For output it mostly involves calling midiOutShortMsg after opening and initializing the device) 2) MCI is a high level way to play MIDI files 3) Recent versions of DirectX have some support for MIDI input and output (via DirectMusic). I personally find DirectMucic confusing because you must learn a whole new terminology in addition to MIDI and figure out how that maps onto MIDI. Since DirectMusic has many features beyond MIDI, this is not simple. The Microsoft documentation for these APIs will probably leave you with questions, but it is a good place to start. When I was experimenting with them, I didn't know much about MIDI and which hurt my understanding of the little documentation there is. Chris Hill Chris244@aol.com
Technical Details
Message-ID:
<3ebe68b4.73552983@forums.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3ebdb81a$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,a7daefd4856e0042 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-11 08:40:54 PST From: Chris244@aol.com (Chris Hill) Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: API interface to MIDI ? Date: Sun, 11 May 2003 15:37:08 GMT Message-ID: <3ebe68b4.73552983@forums.borland.com> References: <3ebdb81a$1@newsgroups.borland.com> X-Newsreader: Forte Free Agent 1.21/32.243 NNTP-Posting-Host: 12.221.66.183 X-Trace: newsgroups.borland.com 1052667427 12.221.66.183 (11 May 2003 08:37:07 -0700) Lines: 30 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail