Solved

MIDI files problem

Posted on 1998-07-20
6
193 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
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
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.

 
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

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

914 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

18 Experts available now in Live!

Get 1:1 Help Now