Mail Archives: djgpp/1997/03/11/08:15:33
David Jenkins (me AT jenkinsdavid DOT demon DOT co DOT uk) wrote:
: Is it possible to detect when a certain sound is played in a midi file??
: I want to have the music in my demo affect something on the screen.
: Like make the background flash whever the drum is hit.
: Finding the volume of the sound would be perfect.
: If the above drum noise was loud the screen would flash bright, if it
: was quiet it would flash grey.
You could make your own custom versions of the midi file routines, and
links these in instead of Allegro's. Since Allegro comes as source, this
shouldn't be difficult.
Alternatively, you could monitor the midi_pos (?) variable, which is
the beat count through the file.
--
George Foot <gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk>
Merton College, Oxford.
- Raw text -