From: gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk (George Foot) Newsgroups: comp.os.msdos.djgpp Subject: Re: midi sound detecting in Allegro?? Date: 10 Mar 1997 09:55:47 GMT Organization: Oxford University Lines: 19 Distribution: world Message-ID: <5g0lr3$s0e@news.ox.ac.uk> References: NNTP-Posting-Host: mc31.merton.ox.ac.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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 Merton College, Oxford.