Article View: borland.public.cppbuilder.nativeapi
Article #16507Re: API interface to MIDI ?
From: Pete Fraser
Date: Mon, 12 May 2003 08:19
Date: Mon, 12 May 2003 08:19
44 lines
2639 bytes
2639 bytes
There are several components for talking to MIDI devices. The one I use is at: http://www.delphi32.com/members/1022/ It's very good and even works for USB MIDI ports -- Rgds Pete GenHelp: The Component Writers Help Authoring package ================================= Web: www.frasersoft.net "Chris Hill" <Chris244@aol.com> wrote in message news:3ebe68b4.73552983@forums.borland.com... 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:
<3ebf5912$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3ebdb81a$1@newsgroups.borland.com> <3ebe68b4.73552983@forums.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-12 01:20:45 PST From: "Pete Fraser" <pete.fraser@at.frasersoft.dot.net> Newsgroups: borland.public.cppbuilder.nativeapi References: <3ebdb81a$1@newsgroups.borland.com> <3ebe68b4.73552983@forums.borland.com> Subject: Re: API interface to MIDI ? Date: Mon, 12 May 2003 09:19:30 +0100 Lines: 46 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 195.12.18.1 Message-ID: <3ebf5912$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1052727570 195.12.18.1 (12 May 2003 01:19:30 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail