Solved

MIDI files problem

Posted on 1998-07-20
6
192 Views
Last Modified: 2010-05-03
I've a programme that lets me play wav files but not midi files.
I change the DeviceType but it doesn't play.
I'm editing a midi file,... to listen to it ,Do I need to use the MCI???
what is the Number of MIDI clocks in a metronome click?
thanks.
0
Comment
Question by:someu
  • 3
  • 3
6 Comments
 

Expert Comment

by:collinng
Comment Utility
Are you trying to use Visual basic to play a midi file ? If you are not and you are outside Visual Basic, to play a midi file it is very simple - with free shareware from the internet, like Cresendo player (search "midi cresendo" etc.)
0
 
LVL 1

Author Comment

by:someu
Comment Utility
If I make a question in Visual Basic area, it's bacause I'm writting a programme
and I don't know how to use the MCI control. Do you know what is it?????
If I wanted to do it outside Visual Basic and I didn't know how to do it, then I'd
ask this question in Windows topic Area.
Thanx for your comment.
0
 

Accepted Solution

by:
collinng earned 50 total points
Comment Utility
Ok, sorry for writing stupid comment :) :). Here's the VBasic way:
1- Choose the Microsoft Multimedia Control (by CRTL-T)
2- Place the MMControl on your project form
3- Change Visible to false
4- Set DeviceType to Sequencer
5- Set FileName to your midi file
6- Open Form_Load of your form
7- Add the statements:
MMControl1.Command = "Open"
MMControl1.Command = "Play"
8- Don forget to add the statements in Form_Terminate:
MMControl1.Command = "Stop"
MMControl1.Command = "Close"

Let me know if my instructions don't work. Thanks.
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 1

Author Comment

by:someu
Comment Utility
Sorry too for the answer to your comment. :-D :-D
Thanks
Probably I didn't wrote well the SEQUENCER. I don't understand!!!!
do you know  what is the Number of MIDI clocks in a metronome click?
0
 
LVL 1

Author Comment

by:someu
Comment Utility
Sorry too for the answer to your comment. :-D :-D
Thanks
Probably I didn't wrote well the SEQUENCER. I don't understand!!!!
do you know  what is the Number of MIDI clocks in a metronome click?
0
 

Expert Comment

by:collinng
Comment Utility
Hi, someu,
i searched a few books & vbasic help menu, but can only find TimeFormat in MMcontrol, or mciSendString(cmd,returnStr,0,0) in MMinterface - which are closest to unit like clock / metronome. Sorry i cannot help you on the ppty 'clock/metronome', but if you provide the link to find this ppty in Vbasic, i can re-open your specific question to the expert public.

Best regards,
Collin ng
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

763 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

6 Experts available now in Live!

Get 1:1 Help Now