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>Syntax</h2> 16<dl><dd><pre class="construction"> 17#include <revolution.h> 18#include <revolution/seq.h> 19 20typedef void (*SEQCALLBACK) (void *track, u8 controller) 21 22void SEQRegisterControllerCallback( 23 SEQSEQUENCE *sequence, 24 u8 controller, 25 SEQCALLBACK callback 26 ); 27</pre></dd></dl> 28 29<h2>Arguments</h2> 30<TABLE class="arguments" border="1" > 31 <tr> 32<th>sequence</th> 33<td>Pointer to a user-initialized <CODE>SEQSEQUENCE</CODE> structure</td> 34 </tr> 35 <tr> 36<th>controller</th> 37<td>MIDI controller event that runs a callback</td> 38 </tr> 39 <tr> 40<th>callback</th> 41<td>Callback function</td> 42 </tr> 43</table> 44 45<h2>Return Values</h2> 46<p>None.</p> 47 48<h2>Description</h2> 49<p>The <code>SEQRegisterControllerCallback</code> function registers callbacks for specified MIDI controller events. MIDI controller events can be inserted in the MIDI file to signal events at runtime.</p> 50 51<p><em><strong><B>Note:</B></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 with the pointer to <CODE>SEQTRACK</CODE> for the track, and register the controller event.</p> 52 53<h2>See Also</h2> 54<p>None.</p> 55 56<h2>Revision History</h2> 57<P> 582006/03/01 Initial version.<BR> 59</P> 60 61<hr><p>CONFIDENTIAL</p></body> 62</html> 63