1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 6<title>SEQRegisterControllerCallback</title> 7<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 8<META http-equiv="Content-Style-Type" content="text/css"> 9</head> 10 11<body> 12 13<h1 align="left">SEQRegisterControllerCallback</h1> 14 15<h2>C Specification</h2> 16 17<dl> 18 <dd> 19<pre><CODE>#include <revolution.h> 20#include <revolution/seq.h> 21 22typedef void (*SEQCALLBACK) (void *track, u8 controller) 23 24void SEQRegisterControllerCallback( 25 SEQSEQUENCE *sequence, 26 u8 controller, 27 SEQCALLBACK callback 28);</CODE></pre> 29 </dd> 30</dl> 31 32<h2>Arguments</h2> 33 34<table border="1" cellpadding="3" cellspacing="0.1"> 35 <tr> 36<td width="120" bgcolor="#ffffe8"><em><strong><font face="Courier New">sequence</font></strong></em></td> 37 <td width="520">pointer to user-initialized <font face="Courier New">SEQSEQUENCE</font> structure</td> 38 </tr> 39 <tr> 40<td width="120" bgcolor="#ffffe8"><em><strong><font face="Courier New">controller</font></strong></em></td> 41<td width="520">MIDI controller event to execute callback</td> 42 </tr> 43 <tr> 44<td width="120" bgcolor="#ffffe8"><em><strong><font face="Courier New">callback</font></strong></em></td> 45<td width="520">the callback function</td> 46 </tr> 47</table> 48 49<h2>Return Values</h2> 50 51<p>None.</p> 52 53<h2>Description</h2> 54 55<p>This function registers callbacks for specified MIDI controller events. The user may insert MIDI controller events in the MIDI file to signal events at runtime.</p> 56 57<p><em><strong>NB:</strong></em> Callbacks are registered for specific MIDI controller events for all sequencer tracks. The <CODE>SEQCALLBACK</CODE> function will inform the user of track events by passing the pointer to <CODE>SEQTRACK</CODE> for the track, and register the controller event.</p> 58 59<h2>See Also</h2> 60 61<h2>Revision History</h2> 62<P>03/01/2006 Initial version.</P> 63 64</body> 65</html> 66