<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>lposcilsa2</title> <link rel="stylesheet" href="csound.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.75.2" /> <link rel="home" href="index.html" title="The Canonical Csound Reference Manual" /> <link rel="up" href="OpcodesTop.html" title="Orchestra Opcodes and Operators" /> <link rel="prev" href="lposcilsa.html" title="lposcilsa" /> <link rel="next" href="lpread.html" title="lpread" /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">lposcilsa2</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="lposcilsa.html">Prev</a> </td> <th width="60%" align="center">Orchestra Opcodes and Operators</th> <td width="20%" align="right"> <a accesskey="n" href="lpread.html">Next</a></td> </tr> </table> <hr /> </div> <div class="refentry" title="lposcilsa2"> <a id="lposcilsa2"></a> <div class="titlepage"></div> <a id="IndexLposcilsa2" class="indexterm"></a> <div class="refnamediv"> <h2> <span class="refentrytitle">lposcilsa2</span> </h2> <p>lposcilsa2 — Read stereo sampled sound from a table with looping and high precision. </p> </div> <div class="refsect1" title="Description"> <a id="id3004098"></a> <h2>Description</h2> <p> <span class="emphasis"><em>lposcilsa2</em></span> reads stereo sampled sound from a table with looping and high precision. </p> </div> <div class="refsect1" title="Syntax"> <a id="id3004113"></a> <h2>Syntax</h2> <pre class="synopsis">ar1, ar2 <span class="command"><strong>lposcilsa2</strong></span> aamp, kfreqratio, kloop, kend, ift [,iphs] </pre> </div> <div class="refsect1" title="Initialization"> <a id="id3005048"></a> <h2>Initialization</h2> <p> <span class="emphasis"><em>ift</em></span> -- function table number </p> <p> <span class="emphasis"><em>iphs</em></span> -- initial phase (in samples) </p> </div> <div class="refsect1" title="Performance"> <a id="id3005069"></a> <h2>Performance</h2> <p> <span class="emphasis"><em>ar1, ar2</em></span> -- output signal </p> <p> <span class="emphasis"><em>aamp</em></span> -- amplitude </p> <p> <span class="emphasis"><em>kfreqratio</em></span> -- multiply factor of table frequency (for example: 1 = original frequency, 2 = an octave up). Only integers are allowed </p> <p> <span class="emphasis"><em>kloop</em></span> -- start loop point (in samples) </p> <p> <span class="emphasis"><em>kend</em></span> -- end loop point (in samples) </p> <p> <span class="emphasis"><em>lposcilsa2</em></span> is the same as <a class="link" href="lposcilsa.html" title="lposcilsa"><em class="citetitle">lposcilsa</em></a>, but no interpolation is implemented and only works with integer <span class="emphasis"><em>kfreqratio</em></span> values. Much faster than <a class="link" href="lposcilsa.html" title="lposcilsa"><em class="citetitle">lposcilsa</em></a>, it is mainly intended to be used with <span class="emphasis"><em>kfreqratio</em></span> = 1, being in this case a fast substitute of <a class="link" href="soundin.html" title="soundin"><em class="citetitle">soundin</em></a>, since the soundfile must be entirely loaded in memory. </p> </div> <div class="refsect1" title="See Also"> <a id="id3005161"></a> <h2>See Also</h2> <p> <a class="link" href="lposcil.html" title="lposcil"><em class="citetitle">lposcil</em></a>, <a class="link" href="lposcila.html" title="lposcila"><em class="citetitle">lposcila</em></a>, <a class="link" href="lposcilsa.html" title="lposcilsa"><em class="citetitle">lposcilsa</em></a> </p> </div> <div class="refsect1" title="Credits"> <a id="id3005207"></a> <h2>Credits</h2> <p>Author: Gabriel Maldonado</p> <p>New in version 5.06</p> </div> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="lposcilsa.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="OpcodesTop.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="lpread.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">lposcilsa </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> lpread</td> </tr> </table> </div> </body> </html>