Updated on 28-Dec-2000
Status
This is free software, released under the terms of the GNU General
Public License.
Please contact Hervé Bitteur at herve.bitteur@laposte.net
to report bugs & suggestions or any related information. I would appreciate
your remarks.
Back to my Home Page.
Content
These Ada 95 files allow :
-
Writing MIDI files
-
Playing music, using MIDI messages
The packages are provided with the related test programs :
Main unit
|
Comments
|
Test_Midi_File |
It uses essentially Music.Midi.File_IO to write midi information
in a midi file |
Test_Midi_Play |
This is a bare sequencer, which happens to play the same music that
Test_Midi_File writes. You just have the ability to start and stop the
music playing, to modify the tempo and the stereo effect.
It uses essentially Windex.Midi_IO to send the Midi messages
to the sound card and Windex.Micro_Timers to handle precise call-back
under Windows. |
These test programs are very basic, since their purpose is mainly to
trigger the implemented functionalities. However, the output features of
Music.Midi.File_IO (input features are still to go) and of Windex.Midi_IO
are almost complete : the only restrictions that I know of in the writing
of MIDI files are 'Write_System_Exclusive', 'Write_Midi_Port'
and 'Write_SMPTE_Offset' which are not yet implemented, and the
restriction to MIDI file format 1.
In the closure of Test_Midi_Play, I use other extensions of Windex,
to support button groups and scroll bars. The related modules are Windex.Windows.Buttons.Groups
and Windex.Windows.Scroll_Bars.
Used Components
-
SCL
-
This component, used by both Test_Midi_File and Test_Midi_Play, belongs
to Marin David Condic. For convenience, I've included the files that I
use (a quick sort implementation) in the MIDI archive. If you want to access
the full component version, you can get it at Marin's
Home Page.
-
WINDEX
-
'Test_Midi_Play' is a window program that uses the Windex interfacing package
from Stephen Leake as well as some extensions made specifically for that
purpose. You need to get the whole Windex
package. The used extensions are provided with the MIDI archive below.
Environment
The programs have been tested with GNAT 3.13p under Windows 98.
Windex version is 1.05.
Installation
-
You have to download two archives :
- the WINDEX
archive from Stephen Leake's site.
- this MIDI archive from this site.
-
Unzip both archives, preferably in separate directories. If you prefer
keeping everything in one directory, make sure to unzip the MIDI archive
last, since it provides an augmented yet compatible version of the Windex-Windows-User.adsfile
of WINDEX.
-
Then use gnatmake on both test_midi_file and test_midi_play.
-
And run either executable file with no parameters