Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > 5fcfcb7517038d1f44ab4e478e6e61fa > files > 2957

csound-doc-6.10.0-1.mga7.noarch.rpm

<?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>src_conv</title>
    <link rel="stylesheet" type="text/css" href="csound.css" />
    <link rel="stylesheet" type="text/css" href="syntax-highlighting.css" />
    <meta name="generator" content="DocBook XSL Stylesheets Vsnapshot" />
    <link rel="home" href="index.html" title="The Canonical Csound Reference Manual" />
    <link rel="up" href="UtilityConversion.html" title="File Conversion (HET_IMPORT, HET_EXPORT, PVLOOK, PV_EXPORT, PV_IMPORT, SDIF2AD, SRCONV)" />
    <link rel="prev" href="srconv.html" title="srconv" />
    <link rel="next" href="UtilityOther.html" title="Other Csound Utilities (CS, CSB64ENC, ENVEXT, EXTRACTOR, MAKECSD, MIXER, SCALE, MKDB)" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">src_conv</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="srconv.html">Prev</a> </td>
          <th width="60%" align="center">File Conversion (HET_IMPORT, HET_EXPORT, PVLOOK, PV_EXPORT, PV_IMPORT, SDIF2AD, SRCONV)</th>
          <td width="20%" align="right"> <a accesskey="n" href="UtilityOther.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry">
      <a id="src_conv"></a>
      <div class="titlepage"></div>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">src_conv</span>
        </h2>
        <p>src_conv — 
      Converts the sample rate of an audio file.
      <a id="IndexSrc_Conv" class="indexterm"></a>
    </p>
      </div>
      <div class="refsect1">
        <a id="idm281472810524792"></a>
        <h2>Description</h2>
        <p>
      Converts the sample rate of an audio file at sample rate Rin to
    a sample rate of Rout.  Optionally the ratio (Rin / Rout) may be
    linearly time-varying according to a set of (time, ratio) pairs in
    an auxiliary file.
    </p>
      </div>
      <div class="refsect1">
        <a id="idm281472810481528"></a>
        <h2>Syntax</h2>
        <pre class="synopsis"><span class="command"><strong>src_conv</strong></span> [flags] infile</pre>
      </div>
      <div class="refsect1">
        <a id="idm281472810479480"></a>
        <h2>Initialization</h2>
        <p>
      Flags:
      </p>
        <div class="itemizedlist">
          <ul class="itemizedlist" style="list-style-type: disc; ">
            <li class="listitem">
              <p>-<span class="emphasis"><em>P num</em></span> = pitch
    transposition ratio (srate / r) [don't specify both P and
    r]</p>
            </li>
            <li class="listitem">
              <p>-<span class="emphasis"><em>Q num</em></span>  =quality factor
    (1, 2, 3, 4 or 5: default = 3)</p>
            </li>
            <li class="listitem">
              <p>-<span class="emphasis"><em>i filnam</em></span> = auxiliary 
    breakpoints file (no breakpoint by default. i.e. No ratio change)
    </p>
            </li>
            <li class="listitem">
              <p>-<span class="emphasis"><em>r num</em></span> = output sample
    rate (must be specified if no P)</p>
            </li>
            <li class="listitem">
              <p>-<span class="emphasis"><em>o fnam</em></span> = sound output
    filename</p>
            </li>
            <li class="listitem">
              <p>-<span class="emphasis"><em>A</em></span> = create an AIFF
    format output soundfile</p>
            </li>
            <li class="listitem">
              <p>-<span class="emphasis"><em>J</em></span> = create an IRCAM
    format output soundfile</p>
            </li>
            <li class="listitem">
              <p>-<span class="emphasis"><em>W</em></span> = create a WAV format
    output soundfile</p>
            </li>
            <li class="listitem">
              <p>-<span class="emphasis"><em>h</em></span> = no header on output
    soundfile</p>
            </li>
            <li class="listitem">
              <p>-<span class="emphasis"><em>c</em></span> = 8-bit signed_char
    sound samples</p>
            </li>
            <li class="listitem">
              <p>-<span class="emphasis"><em>a</em></span> = alaw sound
    samples</p>
            </li>
            <li class="listitem">
              <p>-<span class="emphasis"><em>8</em></span> = 8-bit unsigned_char
    sound samples</p>
            </li>
            <li class="listitem">
              <p>-<span class="emphasis"><em>u</em></span> = ulaw sound
    samples</p>
            </li>
            <li class="listitem">
              <p>-<span class="emphasis"><em>s</em></span> = short_int sound
    samples</p>
            </li>
            <li class="listitem">
              <p>-<span class="emphasis"><em>l</em></span> = long_int sound
    samples</p>
            </li>
            <li class="listitem">
              <p>-<span class="emphasis"><em>f</em></span> = float sound
    samples</p>
            </li>
            <li class="listitem">
              <p>-<span class="emphasis"><em>r N</em></span> = orchestra srate
    override</p>
            </li>
            <li class="listitem">
              <p>-<span class="emphasis"><em>K</em></span> = Do not generate PEAK
    chunks</p>
            </li>
            <li class="listitem">
              <p>-<span class="emphasis"><em>R</em></span> = continually rewrite
    header while writing soundfile (WAV/AIFF)</p>
            </li>
            <li class="listitem">
              <p>-<span class="emphasis"><em>H#</em></span> = print a heartbeat
    style 1, 2 or 3 at each soundfile write</p>
            </li>
            <li class="listitem">
              <p>-<span class="emphasis"><em>N</em></span> = notify (ring the
    bell) when done</p>
            </li>
          </ul>
        </div>
        <p>
    </p>
        <p>
      This program performs arbitrary sample-rate conversion with high
      fidelity using the libsamplerate library.
    </p>
        <p>The five levels of accuracy are:
    </p>
        <div class="itemizedlist">
          <ul class="itemizedlist" style="list-style-type: disc; ">
            <li class="listitem"> 1: A linear converter. The quality is poor, but the
      conversion speed is blindingly fast. </li>
            <li class="listitem"> 2:  A Zero Order Hold converter (interpolated value is
      equal to the last value). The quality is poor but the conversion
      speed is blindingly fast.</li>
            <li class="listitem"> 3: This is the fastest bandlimited interpolator and
      has an SNR of 97dB and a bandwidth of 80%.</li>
            <li class="listitem"> 4: This is another bandlimited interpolator much like
      the previous one. It has an SNR of 97dB and a bandwidth of
      90%. The speed of the conversion is much faster than the next
      one. Blindingly fast.</li>
            <li class="listitem"> 5: This is a bandlimited interpolator derived from
      the mathematical sinc function and this is the highest quality
      sinc based converter, providing a worst case Signal-to-Noise
      Ratio (SNR) of 97dB at a bandwidth of 97%.</li>
          </ul>
        </div>
        <p>
    </p>
      </div>
      <div class="refsect1">
        <a id="idm281472810452920"></a>
        <h2>Credits</h2>
        <p>Author: John ffitch</p>
        <p>May 2015</p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="srconv.html">Prev</a> </td>
          <td width="20%" align="center">
            <a accesskey="u" href="UtilityConversion.html">Up</a>
          </td>
          <td width="40%" align="right"> <a accesskey="n" href="UtilityOther.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">srconv </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> Other Csound Utilities (CS, CSB64ENC, ENVEXT, EXTRACTOR,
  MAKECSD, MIXER, SCALE, MKDB)</td>
        </tr>
      </table>
    </div>
  </body>
</html>