<?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>pvsdiskin</title> <link rel="stylesheet" type="text/css" href="csound.css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1" /> <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="pvsdemix.html" title="pvsdemix" /> <link rel="next" href="pvsdisp.html" title="pvsdisp" /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">pvsdiskin</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="pvsdemix.html">Prev</a> </td> <th width="60%" align="center">Orchestra Opcodes and Operators</th> <td width="20%" align="right"> <a accesskey="n" href="pvsdisp.html">Next</a></td> </tr> </table> <hr /> </div> <div class="refentry" title="pvsdiskin"> <a id="pvsdiskin"></a> <div class="titlepage"></div> <a id="Indexpvsdiskin" class="indexterm"></a> <div class="refnamediv"> <h2> <span class="refentrytitle">pvsdiskin</span> </h2> <p>pvsdiskin — Read a selected channel from a PVOC-EX analysis file. </p> </div> <div class="refsect1" title="Description"> <a id="idp38567664"></a> <h2>Description</h2> <p> Create an fsig stream by reading a selected channel from a PVOC-EX analysis file, with frame interpolation. </p> </div> <div class="refsect1" title="Syntax"> <a id="idp38568520"></a> <h2>Syntax</h2> <pre class="synopsis">fsig <span class="command"><strong>pvsdiskin</strong></span> SFname,ktscal,kgain[,ioffset, ichan]</pre> </div> <div class="refsect1" title="Initialization"> <a id="idp38569608"></a> <h2>Initialization</h2> <p> <span class="emphasis"><em>Sfname</em></span> -- Name of the analysis file. This must have the .pvx file extension. </p> <p> A multi-channel PVOC-EX file can be generated using the extended <a class="link" href="pvanal.html" title="pvanal"><em class="citetitle">pvanal utility</em></a>. </p> <p> <span class="emphasis"><em>ichan</em></span> -- (optional) The channel to read (counting from 1). Default is 1. </p> <p> <span class="emphasis"><em>ioff</em></span> -- start offset from beginning of file (secs) (default: 0) . </p> </div> <div class="refsect1" title="Performance"> <a id="idp38620008"></a> <h2>Performance</h2> <p> <span class="emphasis"><em>ktscal</em></span> -- time scale, ie. the read pointer speed (1 is normal speed, negative is backwards, 0 < ktscal < 1 is slower and ktscal > 1 is faster) </p> <p> <span class="emphasis"><em>kgain</em></span> -- gain scaling. </p> </div> <div class="refsect1" title="Examples"> <a id="idp38621448"></a> <h2>Examples</h2> <p> Here is an example of the pvsdiskin opcode. It uses the file <a class="ulink" href="examples/pvsdiskin.csd" target="_top"><em class="citetitle">pvsdiskin.csd</em></a>. </p> <div class="example"> <a id="idp38622448"></a> <p class="title"> <strong>Example 650. Example of the pvsdiskin opcode.</strong> </p> <div class="example-contents"> <p>See the sections <a class="link" href="UsingRealTime.html" title="Real-Time Audio"><em class="citetitle">Real-time Audio</em></a> and <a class="link" href="CommandFlags.html" title="Csound command line"><em class="citetitle">Command Line Flags</em></a> for more information on using command line flags.</p> <pre class="programlisting"> <span class="csdtag"><CsoundSynthesizer></span> <span class="csdtag"><CsOptions></span> <span class="comment">; Select audio/midi flags here according to platform</span> -odac <span class="comment">;;;realtime audio out</span> <span class="comment">;-iadc ;;;uncomment -iadc if realtime audio input is needed too</span> <span class="comment">; For Non-realtime ouput leave only the line below:</span> <span class="comment">; -o pvsdiskin.wav -W ;;; for file output any platform</span> <span class="csdtag"></CsOptions></span> <span class="csdtag"><CsInstruments></span> <span class="ohdr">sr</span> <span class="op">=</span> 44100 <span class="ohdr">ksmps</span> <span class="op">=</span> 32 <span class="ohdr">0dbfs</span> <span class="op">=</span> 1 <span class="ohdr">nchnls</span> <span class="op">=</span> 2 <span class="oblock">instr</span> 1 <span class="comment">; create a PVOC-EX (*.pvx) file with PVANAL first</span> ktscale <span class="opc">line</span> 1, p3, .05 <span class="comment">;change speed </span> fsigr <span class="opc">pvsdiskin</span> "fox.pvx", ktscale, 1 <span class="comment">;read PVOCEX file</span> aout <span class="opc">pvsynth</span> fsigr <span class="comment">;resynthesise it</span> <span class="opc">outs</span> aout, aout <span class="oblock">endin</span> <span class="csdtag"></CsInstruments></span> <span class="csdtag"><CsScore></span> <span class="stamnt">i</span> 1 0 10 <span class="stamnt">e</span> <span class="csdtag"></CsScore></span> <span class="csdtag"></CsoundSynthesizer></span> </pre> </div> </div> <p><br class="example-break" /> </p> </div> <div class="refsect1" title="Credits"> <a id="idp38624728"></a> <h2>Credits</h2> <p> </p> <table border="0" summary="Simple list" class="simplelist"> <tr> <td>Author: Victor Lazzarini</td> </tr> <tr> <td>May 2007 </td> </tr> </table> <p> New in Csound 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="pvsdemix.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="pvsdisp.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">pvsdemix </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> pvsdisp</td> </tr> </table> </div> </body> </html>