| 1 |
|
| 2 |
<refentry id="lposcilsa2"> |
| 3 |
<indexterm id="IndexLposcilsa2"><primary>lposcilsa2</primary></indexterm> |
| 4 |
<refentryinfo><title>Signal Generators:Sample Playback</title></refentryinfo> |
| 5 |
<refmeta> |
| 6 |
<refentrytitle>lposcilsa2</refentrytitle> |
| 7 |
</refmeta> |
| 8 |
|
| 9 |
<refnamediv> |
| 10 |
<refname>lposcilsa2</refname> |
| 11 |
<refpurpose> |
| 12 |
Read stereo sampled sound from a table with looping and high precision. |
| 13 |
</refpurpose> |
| 14 |
</refnamediv> |
| 15 |
|
| 16 |
<refsect1> |
| 17 |
<title>Description</title> |
| 18 |
<para> |
| 19 |
<emphasis>lposcilsa2</emphasis> reads stereo sampled sound from a table with looping and high precision. |
| 20 |
</para> |
| 21 |
</refsect1> |
| 22 |
|
| 23 |
<refsect1> |
| 24 |
<title>Syntax</title> |
| 25 |
<synopsis>ar1, ar2 <command>lposcilsa2</command> aamp, kfreqratio, kloop, kend, ift [,iphs] </synopsis> |
| 26 |
</refsect1> |
| 27 |
|
| 28 |
<refsect1> |
| 29 |
<title>Initialization</title> |
| 30 |
<para> |
| 31 |
<emphasis>ift</emphasis> -- function table number |
| 32 |
</para> |
| 33 |
<para> |
| 34 |
<emphasis>iphs</emphasis> -- initial phase (in samples) |
| 35 |
</para> |
| 36 |
</refsect1> |
| 37 |
|
| 38 |
<refsect1> |
| 39 |
<title>Performance</title> |
| 40 |
<para> |
| 41 |
<emphasis>ar1, ar2</emphasis> -- output signal |
| 42 |
</para> |
| 43 |
<para> |
| 44 |
<emphasis>aamp</emphasis> -- amplitude |
| 45 |
</para> |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
<para> |
| 50 |
<emphasis>kfreqratio</emphasis> -- multiply factor of table frequency (for example: 1 = original frequency, 2 = an octave up). Only integers are allowed |
| 51 |
</para> |
| 52 |
<para> |
| 53 |
<emphasis>kloop</emphasis> -- start loop point (in samples) |
| 54 |
</para> |
| 55 |
<para> |
| 56 |
<emphasis>kend</emphasis> -- end loop point (in samples) |
| 57 |
</para> |
| 58 |
<para> |
| 59 |
<emphasis>lposcilsa2</emphasis> is the same as <link linkend="lposcilsa"><citetitle>lposcilsa</citetitle></link>, but no interpolation is implemented and only works with integer <emphasis>kfreqratio</emphasis> values. Much faster than <link linkend="lposcilsa"><citetitle>lposcilsa</citetitle></link>, it is mainly intended to be used with <emphasis>kfreqratio</emphasis> = 1, being in this case a fast substitute of <link linkend="soundin"><citetitle>soundin</citetitle></link>, since the soundfile must be entirely loaded in memory. |
| 60 |
</para> |
| 61 |
</refsect1> |
| 62 |
|
| 63 |
<refsect1> |
| 64 |
<title>Examples</title> |
| 65 |
<para> |
| 66 |
Here is an example of the lposcilsa2 opcode. It uses the file <ulink url="examples/lposcilsa2.csd"><citetitle>lposcilsa2.csd</citetitle></ulink>. |
| 67 |
<example> |
| 68 |
<title>Example of the lposcilsa2 opcode.</title> |
| 69 |
<para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para> |
| 70 |
<xi:include href="examples-xml/lposcilsa2.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 71 |
</example> |
| 72 |
</para> |
| 73 |
</refsect1> |
| 74 |
|
| 75 |
<refsect1> |
| 76 |
<title>See also</title> |
| 77 |
<para><link linkend="SiggenSample"><citetitle>Sample Playback</citetitle></link></para> |
| 78 |
</refsect1> |
| 79 |
|
| 80 |
<refsect1> |
| 81 |
<title>Credits</title> |
| 82 |
<para>Author: &namegabriel;</para> |
| 83 |
<para>New in version 5.06</para> |
| 84 |
</refsect1> |
| 85 |
</refentry> |