This control enables your webpage (or program) to play Midi sound without using
external programs or plugins. The control was developed especially for the use on
webpages, where it is able to be completely remote-controlled while trying to hide most of
its complexity from the user and programmer. For the user the program has just got a play,
pause and stop button. These buttons could be remote controlled by the appropriate
methods. Usually you just have to set the FileName and FileURL property, use the Activate
and the MidiStart method and the rest is handled by the control. The control also provides
some information about the midi-file currently playing, like track length and current
position and about the multimedia MCI status
If you want to use the control on your page, you either have to download the ASoftMidi.CAB file and replace
CODEBASE with the URL to your downloaded file or have to replace it with the complete URL
of this CAB (http://www.A-SoftTech/ActiveX/ASoftMidi.CAB) as used above.
Programming Information:
Name of property/event:
Type
Description:
FileName (property)
String
The exact name of the midi-file to play, including extention.
FileURL (property)
String
The exact URL to where the midi-file is located at.
MidiLoop (property)
Boolean
Sets whether the file should be played endlessly or not. Standard:True
Length (property)
String
Length of the currently selected midi-file.
Position (property)
String
Playing position in the currently selected midi-file.
Mode (property)
String
Current Status of the Midi Control - no support - identical with the VB MCI Control.
Activate (method)
-
Needs to be called to open the MCI-Device.
DeActivate (method)
-
Frees the Resources used up needing Activate.
MidiStart (method)
-
Starts playing the Midi-file; needs prior activation of Activate method .
MidiStop (method)
-
Stops a currently playing Midi-file.
Example of A-Soft Midi Control:
Credits:
A-Soft Midi Control was written entirely by A. Nahr. The control was finished in the
version 1.0 on the 18st of April 1997.