Solved

MIDI Output Device with low-level and MCI commands

Posted on 1997-02-12
1
822 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

828 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