From: David Jenkins Newsgroups: comp.os.msdos.djgpp Subject: Re: midi sound detecting in Allegro?? Date: Mon, 10 Mar 1997 13:33:56 +0000 Organization: None Distribution: world Message-ID: References: NNTP-Posting-Host: jenkinsdavid.demon.co.uk MIME-Version: 1.0 Lines: 18 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp In article , Shawn Hargreaves writes >David Jenkins writes: >>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. > >This can't be done with the standard API, but it's a simple modification >to the MIDI player. Edit midi.c, go to line 387 (the start of the >midi_note_on() function), and do whatever you have to... Any chance you could add this to Allegro 2.3??? I don't think I could handle it myself ;-) -- http://www.jenkinsdavid.demo.co.uk for Newbie C programers and a larf. ;-) David Jenkins