Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release > by-pkgid > b707d9a4ee443103660a75ccb6e51334 > files > 2543

csound-doc-5.19.01-10.mga5.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>scale</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="UtilityOther.html" title="Other Csound Utilities (CS, CSB64ENC, ENVEXT, EXTRACTOR, MAKECSD, MIXER, SCALE, MKDB)" />
    <link rel="prev" href="mixer.html" title="mixer" />
    <link rel="next" href="mkdb.html" title="mkdb" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">scale</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="mixer.html">Prev</a> </td>
          <th width="60%" align="center">Other Csound Utilities (CS, CSB64ENC, ENVEXT, EXTRACTOR,
  MAKECSD, MIXER, SCALE, MKDB)</th>
          <td width="20%" align="right"> <a accesskey="n" href="mkdb.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="scale">
      <a id="scaleutility"></a>
      <div class="titlepage"></div>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">scale</span>
        </h2>
        <p>scale — 
      Scale the amplitude of a sound file.
      <a id="IndexScaleUtility" class="indexterm"></a>
    </p>
      </div>
      <div class="refsect1" title="Description">
        <a id="idp82162464"></a>
        <h2>Description</h2>
        <p>
        Takes a sound file and scales it by applying a gain, either
    constant or variable.  The scale can be specified as a multiplier,
    a maximum or a percentage of 0db.
    </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="idp82163248"></a>
        <h2>Syntax</h2>
        <pre class="synopsis"><span class="command"><strong>scale</strong></span> [OPTIONS ... ] infile</pre>
      </div>
      <div class="refsect1" title="Initialization">
        <a id="idp82166512"></a>
        <h2>Initialization</h2>
        <p>
      Flags:

      </p>
        <div class="itemizedlist">
          <ul class="itemizedlist" type="disc">
            <li class="listitem">
              <p>
              -<span class="emphasis"><em>A</em></span>
              = Generate an AIFF outout file.
          </p>
            </li>
            <li class="listitem">
              <p>
              -<span class="emphasis"><em>W</em></span>
              = Generate an WAV outout file.
          </p>
            </li>
            <li class="listitem">
              <p>
              -<span class="emphasis"><em>h</em></span>
              = Generate an outout file with no header.
          </p>
            </li>
            <li class="listitem">
              <p>
               -<span class="emphasis"><em>c</em></span>
              = Generate 8-bit signed_char sound samples.
         </p>
            </li>
            <li class="listitem">
              <p>
               -<span class="emphasis"><em>a</em></span>
              = Generate alaw sound samples.
          </p>
            </li>
            <li class="listitem">
              <p>
               -<span class="emphasis"><em>u</em></span>
              = Generate ulaw sound samples.
          </p>
            </li>
            <li class="listitem">
              <p>
               -<span class="emphasis"><em>s</em></span>
              = Generate short integer sound samples.
          </p>
            </li>
            <li class="listitem">
              <p>
              -<span class="emphasis"><em>l</em></span>
              = Generate long (32 bit) integer sound samples.
          </p>
            </li>
            <li class="listitem">
              <p>
              -<span class="emphasis"><em>f</em></span>
              = Generate floating point samples.
          </p>
            </li>
            <li class="listitem">
              <p>
              -<span class="emphasis"><em>F arg</em></span>
              = Specifies the gain to be applied.  If arg is a
              floating point number that gain is applied uniformly to
              the input.  Alternatively it could be a file name which
              specifies a breakpoint file for varying the gain for
              different periods.
          </p>
            </li>
            <li class="listitem">
              <p>
              -<span class="emphasis"><em>M fpnum</em></span>
              = Scales the input so the maximum absolute displacement
              is the value given.
          </p>
            </li>
            <li class="listitem">
              <p>
              -<span class="emphasis"><em>P fpnum</em></span>
              = Scales the input so the maximum absolute displacement
              is the pencentage given of 0db.
          </p>
            </li>
            <li class="listitem">
              <p>
              -<span class="emphasis"><em>R</em></span>
              = Continually rewrite the header while writing soundfile
              (WAV/AIFF). 
          </p>
            </li>
            <li class="listitem">
              <p>
              -<span class="emphasis"><em>H integer</em></span>
              = Show a "heart-beat" to indicate progress, in style 1,
              2 or 3.          </p>
            </li>
            <li class="listitem">
              <p>
              -<span class="emphasis"><em>N</em></span>
              = Alert call (usually ringing the bell) when finished.
          </p>
            </li>
            <li class="listitem">
              <p>
        		-<span class="emphasis"><em>o fname</em></span>
        		= output file name (default: test.wav)
        	</p>
            </li>
          </ul>
        </div>
        <p>

    </p>
      </div>
      <div class="refsect1" title="Examples">
        <a id="idp82229696"></a>
        <h2>Examples</h2>
        <p>

</p>
        <pre class="programlisting">
    <span class="emphasis"><em>scale</em></span> -s -W -F 0.96 -o out.wav sound.wav</pre>
        <p>


  		This creates a new sound file with a constant gain of
  		0.96.  It is particularly useful if the input file is
  		in floating point format.
  	</p>
      </div>
      <div class="refsect1" title="Credits">
        <a id="idp82231032"></a>
        <h2>Credits</h2>
        <p>Author: John ffitch</p>
        <p>1994</p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="mixer.html">Prev</a> </td>
          <td width="20%" align="center">
            <a accesskey="u" href="UtilityOther.html">Up</a>
          </td>
          <td width="40%" align="right"> <a accesskey="n" href="mkdb.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">mixer </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> mkdb</td>
        </tr>
      </table>
    </div>
  </body>
</html>