[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

MIDI files problem

Posted on 1998-07-20
6
Medium Priority
?
204 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 150 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Independent Software Vendors: 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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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 Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

649 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