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> 20 #include <revolution.h> 21 #include <revolution/seq.h> 22 23 typedef void (*SEQCALLBACK) (void *track, u8 controller) 24 25 void SEQRegisterControllerCallback( 26 SEQSEQUENCE *sequence, 27 u8 controller, 28 SEQCALLBACK callback 29 ); 30 </CODE></pre> 31 </dd> 32</dl> 33 34<h2>Arguments</h2> 35 36<table border="1" cellpadding="3" cellspacing="0.1"> 37 <tr> 38<td width="120" bgcolor="#ffffe8"><em><strong><font face="Courier New">sequence</font></strong></em></td> 39 <td width="520">pointer to user-initialized <font face="Courier New">SEQSEQUENCE</font> structure</td> 40 </tr> 41 <tr> 42<td width="120" bgcolor="#ffffe8"><em><strong><font face="Courier New">controller</font></strong></em></td> 43<td width="520">MIDI controller event to execute callback</td> 44 </tr> 45 <tr> 46<td width="120" bgcolor="#ffffe8"><em><strong><font face="Courier New">callback</font></strong></em></td> 47<td width="520">the callback function</td> 48 </tr> 49</table> 50 51<h2>Return Values</h2> 52 53<p>None.</p> 54 55<h2>Description</h2> 56 57<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> 58 59<p><em><strong>Note:</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> 60 61<h2>See Also</h2> 62 63<h2>Revision History</h2> 64<P>2006/03/01 Initial version.</P> 65 66<hr> 67<P>CONFIDENTIAL</p> 68</BODY> 69</HTML> 70