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>AXARTInitLfo</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">AXARTInitLfo</H1> 14 15<H2>C Specification</H2> 16<DL> 17<dd><pre><CODE>#include <revolution.h> 18#include <revolution/axart.h></CODE></pre> 19 </dd> 20<dd><PRE><CODE>void AXARTInitLfo(<A href="AXART_LFO.html">AXART_LFO</A> *lfo, f32 *samples, u32 length, f32 delta);</CODE></PRE> 21 </dd> 22</DL> 23 24<H2>Arguments</H2> 25<TABLE border="1" cellpadding="3" cellspacing="0.1"> 26 <TBODY> 27 <TR> 28<TD width="120" bgcolor="#ffffe8"><EM><STRONG><FONT face="Courier New">lfo</FONT> </STRONG></EM> </TD> 29<TD width="520">Pointer to <a href="AXART_LFO.html"><font face="Courier New">AXART_LFO</font></a> to initialize.</TD> 30 </TR> 31 <TR> 32<TD width="120" bgcolor="#ffffe8"><FONT face="Courier New"><EM><STRONG>samples</STRONG></EM></FONT> </TD> 33<TD width="520">Pointer to first sample of LFO shape.</TD> 34 </TR> 35 <TR> 36<TD width="120" bgcolor="#ffffe8"><STRONG><EM><FONT face="Courier New">length</FONT></EM></STRONG> </TD> 37<TD width="520">Number of samples in the LFO shape.</TD> 38 </TR> 39 <TR> 40<TD width="120" bgcolor="#ffffe8"><STRONG><EM><FONT face="Courier New">delta</FONT></EM></STRONG> </TD> 41<TD width="520">Delta per audio frame.<br><FONT face="Courier New"><EM><STRONG>delta</STRONG></EM></FONT> = Hz * (length / 333)</TD> 42 </TR> 43 </TBODY> 44</TABLE> 45<P>The AXART library provides the following LFO shapes for use:</P> 46<TABLE border="1" cellpadding="3" cellspacing="0.1"> 47 <TBODY> 48 <TR> 49<TD width="37%" bgcolor="#cccccc"><EM><STRONG>Shape</STRONG></EM></TD> 50<TD width="45%" bgcolor="#cccccc"><EM><STRONG>*Samples</STRONG></EM></TD> 51<TD width="97%" bgcolor="#cccccc"><EM><STRONG>Length</STRONG></EM></TD> 52 </TR> 53 <TR> 54<TD width="37%">Sine</TD> 55<TD width="45%"><FONT face="Courier New">AXARTSine</FONT></TD> 56<TD width="97%"><FONT face="Courier New">AXART_SINE_SAMPLES</FONT></TD> 57 </TR> 58 <TR> 59<TD width="37%">Square</TD> 60<TD width="45%"><FONT face="Courier New">AXARTSquare</FONT></TD> 61<TD width="97%"><FONT face="Courier New">AXART_SQUARE_SAMPLES</FONT></TD> 62 </TR> 63 <TR> 64<TD width="37%">Saw</TD> 65<TD width="45%"><FONT face="Courier New">AXARTSaw</FONT></TD> 66<TD width="97%"><FONT face="Courier New">AXART_SAW_SAMPLES</FONT></TD> 67 </TR> 68 <TR> 69<TD width="37%">Reverse Saw</TD> 70<TD width="45%"><FONT face="Courier New">AXARTReverseSaw</FONT></TD> 71<TD width="97%"><FONT face="Courier New">AXART_REVERSESAW_SAMPLES</FONT></TD> 72 </TR> 73 <TR> 74<TD width="37%">Triangle</TD> 75<TD width="45%"><FONT face="Courier New">AXARTTriangle</FONT></TD> 76<TD width="97%"><FONT face="Courier New">AXART_TRIANGLE_SAMPLES</FONT></TD> 77 </TR> 78 <TR> 79<TD width="37%">Noise</TD> 80<TD width="45%"><FONT face="Courier New">AXARTNoise</FONT></TD> 81<TD width="97%"><FONT face="Courier New">AXART_NOISE_SAMPLES</FONT></TD> 82 </TR> 83 </TBODY> 84</TABLE> 85 86<h2>Return Values</h2> 87<p>None.</p> 88 89<H2>Description</H2> 90<P><font face="Courier New">AXARTInitLfo()</font> initializes an <a href="AXART_LFO.html"><font face="Courier New">AXART_LFO</font></a> for use with articulators that contains an LFO for modulation.</P> 91 92<H2>See Also</H2> 93<P><A href="AXART_LFO.html"><FONT face="Courier New">AXART_LFO<BR></FONT></A></P> 94 95<h2>Revision History</h2> 96<P> 972006/11/28 Corrected the delta calculation formula to match the change in audio frame length (from 5 ms to 3 ms).<br>2006/03/01 Initial version. 98</P> 99<hr> 100<P>CONFIDENTIAL</p> 101</BODY> 102</HTML> 103