Solved

MIDI Output Device with low-level and MCI commands

Posted on 1997-02-12
1
810 Views
Last Modified: 2013-12-04
I need to be able to open a MIDI Output Device, and then access that device with the MCI commands as well as the low level commands, like midiOutShortMsg.

The problem is that MCI doesn't have any way to send MIDI Channel Messages, so I can't use it to control the volume of individual MIDI Channels, for example.  It would be easy enough to do this with midiOutShortMsg, but this requires the hMidiOut handle that is normally assigned using midiOutOpen.  But I can't use midiOutOpen on a device that is already opened (by MCI_OPEN).

So, the question is: Having opened a device using MCI_OPEN, is there a way to use its hMidiOut handle (that I assume had to be assigned somewhere) to  send a midiOutShortMsg to the same device.

I'm writing in Pascal (Delphi 1.0), for Win 3.1.
0
Comment
Question by:jwholahan
1 Comment
 
LVL 1

Accepted Solution

by:
winmeister earned 200 total points
ID: 1298859
Regret to say, no. You need multi-instance drivers (such those provided with Cakewalk for MPU401, etc) because you need to open the MCI device with MCI_OPEN for MCI commands, and you also need to use midiOutOpen to send low level commands.

I have successfully used this tecnique on those multi-instance MIDI drivers. There is no other way.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now