Solved

MIDI files problem

Posted on 1998-07-20
6
197 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 

Expert Comment

by:collinng
ID: 1466220
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
ID: 1466221
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
ID: 1466222
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:someu
ID: 1466223
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
ID: 1466224
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
ID: 1466225
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
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…

718 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