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>SEQAddSequence</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">SEQAddSequence</h1> 14 15<h2>Syntax</h2> 16<dl><dd><pre class="construction"> 17#include <revolution.h> 18#include <revolution/seq.h> 19 20void SEQAddSequence( 21 SEQSEQUENCE *sequence, 22 u8 *midiStream, 23 u8 *wavetable, 24 u8 *samples, 25 u8 *zerobuffer, 26 u32 priorityVoiceAlloc, 27 u32 priorityNoteOn, 28 u32 priorityNoteRelease 29 ); 30</pre></dd></dl> 31 32<h2>Arguments</h2> 33<TABLE class="arguments" border="1" > 34 <tr> 35<th>sequence</th> 36<td>Pointer to user-allocated <code>SEQSEQUENCE</code> structure.</td> 37 </tr> 38 <tr> 39<th>midiStream</th> 40<td>Pointer to MIDI data.</td> 41 </tr> 42 <tr> 43<th>wavetable</th> 44<td>Pointer to wave table.</td> 45 </tr> 46 <tr> 47<th>samples</th> 48<td>Pointer to sample set corresponding to wave table.</td> 49 </tr> 50 <tr> 51<th>zerobuffer</th> 52<td>Pointer to the zero buffer <strong>(Not used. Specify <code>NULL</code>.) </strong></td> 53 </tr> 54 <tr> 55<th>priorityVoiceAlloc</th> 56<td>Priority for allocating AX voice for note ON.<br>maximum: 31<br>minimum: 1</td> 57 </tr> 58 <tr> 59<th>priorityNoteOn</th> 60<td>Priority for setting voices after successful allocation.<br>maximum: 31<br>minimum: 1</td> 61 </tr> 62 <tr> 63<th>priorityNoteRelease</th> 64<td>Priority for setting voices for note OFF.<br>maximum: 31<br>minimum: 1</td> 65 </tr> 66</table> 67 68<h2>Return Values</h2> 69<p>None.</p> 70 71<h2>Description</h2> 72<p>The <code>SEQAddSequence</code> function initializes a user-allocated <code>SEQUENCE</code> structure and adds it to the sequence list.</p> 73 74<p>The <code>SEQSEQUENCE</code> structure contains the <code>SYNSYNTH</code> structure used for sequence play. Internally, the <CODE>SEQAddSequence</CODE> function also initializes the <code>SYNSYNTH</code> structure.</p> 75 76<h2>See Also</h2> 77<p class="reference"> 78<a href="SEQRemoveSequence.html">SEQRemoveSequence</a> 79</p> 80 81<h2>Revision History</h2> 82<P> 832006/11/21 Added an explanation to the arguments about the zero buffer no longer being necessary.<br>2006/03/01 Initial version.<br> 84</P> 85 86<hr><p>CONFIDENTIAL</p></body> 87</html> 88