Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Midi Commands 1

Status
Not open for further replies.

casters

Programmer
Mar 24, 2003
50
IT
Does anybody know how to send MIDI commands from Visual foxpro (3.0 or 6.0) in Windows 98 ?
 
Are you refering to MCI (MultiMedia Command Interface)? If yes, assuming you loaded the sample code in VFP 6.0, try:
do (_samples+"\solution\solution.app")
Now choose Windows API -> Play multimedia files using MCI commands.

Rick
 
No thanks, I've already used MCI. I don't need to play MIDI file through foxpro, but I need to know if it is possible and how to manage MIDI devices from inside Foxpro, to build a simple module that could send MIDI commands (single notes to single MIDI channel).
I need to build a little "drummer trainer" for producing particular kinds of rhytmics.

Thanks
 
I did some checking, and because some of the WinAPI calls to the MIDI functions require a CallBack address/function, you won't be able to do this directly in VFP (no native CallBack support). I'd look for an ActiveX control that can "front" these functions or create a COM server in VB, and call it from VFP.

Rick
 
Thanks a lot, Rick.
I think I will then change to VB for this job.
Gaetano
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top