delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/10/13:29:15

From: David Jenkins <me AT jenkinsdavid DOT demon DOT co DOT uk>
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: <eoRozUBE3AJzEwd3@jenkinsdavid.demon.co.uk>
References: <yATjZAAJO4IzEwya AT jenkinsdavid DOT demon DOT co DOT uk>
<jTh7zbAT59IzEwAm AT talula DOT demon DOT co DOT uk>
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 <jTh7zbAT59IzEwAm AT talula DOT demon DOT co DOT uk>, Shawn Hargreaves
<Shawn AT talula DOT demon DOT co DOT uk> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019