<?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>lpinterp</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="lphasor.html" title="lphasor" /> <link rel="next" href="lposcil.html" title="lposcil" /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">lpinterp</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="lphasor.html">Prev</a> </td> <th width="60%" align="center">Orchestra Opcodes and Operators</th> <td width="20%" align="right"> <a accesskey="n" href="lposcil.html">Next</a></td> </tr> </table> <hr /> </div> <div class="refentry" title="lpinterp"> <a id="lpinterp"></a> <div class="titlepage"></div> <a id="IndexLpinterp" class="indexterm"></a> <div class="refnamediv"> <h2> <span class="refentrytitle">lpinterp</span> </h2> <p>lpslot, lpinterp — Computes a new set of poles from the interpolation between two analysis. </p> </div> <div class="refsect1" title="Description"> <a id="id3002285"></a> <h2>Description</h2> <p> Computes a new set of poles from the interpolation between two analysis. </p> </div> <div class="refsect1" title="Syntax"> <a id="id3002024"></a> <h2>Syntax</h2> <pre class="synopsis"><span class="command"><strong>lpinterp</strong></span> islot1, islot2, kmix</pre> </div> <div class="refsect1" title="Initialization"> <a id="id3002041"></a> <h2>Initialization</h2> <p> <span class="emphasis"><em>islot1</em></span> -- slot where the first analysis was stored </p> <p> <span class="emphasis"><em>islot2</em></span> -- slot where the second analysis was stored </p> <p> <span class="emphasis"><em>kmix</em></span> -- mix value between the two analysis. Should be between 0 and 1. 0 means analysis 1 only. 1 means analysis 2 only. Any value in between will produce interpolation between the filters. </p> <p> <span class="emphasis"><em>lpinterp</em></span> computes a new set of poles from the interpolation between two analysis. The poles will be stored in the current <span class="emphasis"><em>lpslot</em></span> and used by the next <span class="emphasis"><em>lpreson</em></span> opcode. </p> </div> <div class="refsect1" title="Examples"> <a id="id3002903"></a> <h2>Examples</h2> <p> Here is a typical orc using the opcodes: </p> <div class="informalexample"> <pre class="programlisting"> ipower <span class="emphasis"><em>init</em></span> 50000 ; Define sound generator ifreq <span class="emphasis"><em>init</em></span> 440 asrc <span class="emphasis"><em>buzz</em></span> ipower,ifreq,10,1 ktime <span class="emphasis"><em>line</em></span> 0,p3,p3 ; Define time lin <span class="emphasis"><em>lpslot</em></span> 0 ; Read square data poles krmsr,krmso,kerr,kcps <span class="emphasis"><em>lpread</em></span> ktime,"square.pol" <span class="emphasis"><em>lpslot</em></span> 1 ; Read triangle data poles krmsr,krmso,kerr,kcps <span class="emphasis"><em>lpread</em></span> ktime,"triangle.pol" kmix <span class="emphasis"><em>line</em></span> 0,p3,1 ; Compute result of mixing <span class="emphasis"><em>lpinterp</em></span> 0,1,kmix ; and balance power ares <span class="emphasis"><em>lpreson</em></span> asrc aout <span class="emphasis"><em>balance</em></span> ares,asrc <span class="emphasis"><em>out</em></span> aout </pre> </div> <p> </p> </div> <div class="refsect1" title="See Also"> <a id="id3002977"></a> <h2>See Also</h2> <p> <a class="link" href="lpslot.html" title="lpslot"><em class="citetitle">lpslot</em></a> </p> </div> <div class="refsect1" title="Credits"> <a id="id3002995"></a> <h2>Credits</h2> <p>Author: Gabriel Maldonado</p> </div> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="lphasor.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="lposcil.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">lphasor </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> lposcil</td> </tr> </table> </div> </body> </html>