A-Soft Technologies
the future at your fingertips
Midi Control  
   

return to selection
Splash Screen Control
Motion Button Control
Quick Picture Viewer
Midi Control
Login Control
Link to us
Troubleshooting

Legal disclaimer

This is ActiveX control is property of A-Soft Technologies. You can use it wherever you want as long as you

make a link to www.A-SoftTech.com - find out how
don't use this control on a commercial page without prior permission from A-Soft Technologies
use only the Properties and methods described below

A-Soft Technologies

What this Control does

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

How to use this Control

Write this Code in your HTML file

<p>
<object ID="Midi" WIDTH="79" HEIGHT="23"
CLASSID="CLSID:53D2E0E2-342C-11D2-BEBB-60505AC10000"
CODEBASE="http://www.A-SoftTech/ActiveX/ASoftMidi.CAB#version=1,0,0,4">
  <param name="_ExtentX" value="2064">
  <param name="_ExtentY" value="582">
  <param name="FileName" value="MidiMission.mid">
  <param name="FileURL" value="http://www.A-SoftTech/Free/Controls/MidiControl/">
  <param name="Mode" value="524">
</object>
</p>

...and ready is your Midi Control

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.

Free Controls