Solved

MIDI files problem

Posted on 1998-07-20
6
194 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

809 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