~ubuntu-branches/ubuntu/trusty/csound-manual/trusty-proposed

« back to all changes in this revision

Viewing changes to examples-xml/pvshift.csd.xml

  • Committer: Bazaar Package Importer
  • Author(s): Felipe Sateler
  • Date: 2011-08-01 22:21:58 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110801222158-90kslkp5ujci2f5d
Tags: 1:5.13~dfsg-1
* New upstream release
 - Add Menno Knevel to the copyright file
 - Refresh patch 2000-stripped-opcodes.diff
 - Update copyright hints file
* Update Vcs-* headers
* Bump Standards-Version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<programlisting>
 
2
<emphasis role="csdtag">&lt;CsoundSynthesizer&gt;</emphasis>
 
3
<emphasis role="csdtag">&lt;CsOptions&gt;</emphasis>
 
4
-odac
 
5
<emphasis role="csdtag">&lt;/CsOptions&gt;</emphasis>
 
6
<emphasis role="csdtag">&lt;CsInstruments&gt;</emphasis>
 
7
 
 
8
<emphasis role="ohdr">sr</emphasis> <emphasis role="op">=</emphasis> 44100
 
9
<emphasis role="ohdr">ksmps</emphasis> <emphasis role="op">=</emphasis> 16
 
10
<emphasis role="ohdr">nchnls</emphasis> <emphasis role="op">=</emphasis> 1
 
11
<emphasis role="ohdr">0dbfs</emphasis> <emphasis role="op">=</emphasis> 1
 
12
 
 
13
<emphasis role="comment">;; example written by joachim heintz 2009</emphasis>
 
14
 
 
15
<emphasis role="oblock">instr</emphasis> 1
 
16
ishift          <emphasis role="op">=</emphasis>                p4<emphasis role="comment">; shift amount in Hz</emphasis>
 
17
ilowest <emphasis role="op">=</emphasis>                p5<emphasis role="comment">; lowest frequency to be shifted</emphasis>
 
18
ikeepform       <emphasis role="op">=</emphasis>                p6<emphasis role="comment">; 0=no formant keeping, 1=keep by amps, 2=keep by spectral envelope</emphasis>
 
19
ifftsize        <emphasis role="op">=</emphasis>                1024
 
20
ioverlap        <emphasis role="op">=</emphasis>                ifftsize <emphasis role="op">/</emphasis> 4
 
21
iwinsize        <emphasis role="op">=</emphasis>                ifftsize
 
22
iwinshape       <emphasis role="op">=</emphasis>                1<emphasis role="comment">; von-Hann window</emphasis>
 
23
Sfile           <emphasis role="op">=</emphasis>                "fox.wav"
 
24
ain             <emphasis role="opc">soundin</emphasis> Sfile
 
25
fftin           <emphasis role="opc">pvsanal</emphasis> ain, ifftsize, ioverlap, iwinsize, iwinshape<emphasis role="comment">; fft-analysis of file</emphasis>
 
26
fshift          <emphasis role="opc">pvshift</emphasis>         fftin, ishift, ilowest, ikeepform<emphasis role="comment">; shift frequencies</emphasis>
 
27
aout            <emphasis role="opc">pvsynth</emphasis> fshift<emphasis role="comment">; resynthesize</emphasis>
 
28
                <emphasis role="opc">out</emphasis>             aout
 
29
<emphasis role="oblock">endin</emphasis>
 
30
 
 
31
<emphasis role="csdtag">&lt;/CsInstruments&gt;</emphasis>
 
32
<emphasis role="csdtag">&lt;CsScore&gt;</emphasis>
 
33
<emphasis role="stamnt">i</emphasis> 1 0 2.757 0 0 0<emphasis role="comment">; no shift at all</emphasis>
 
34
<emphasis role="stamnt">i</emphasis> 1 3 2.757 100 0 0<emphasis role="comment">; shift all frequencies by 100 Hz</emphasis>
 
35
<emphasis role="stamnt">i</emphasis> 1 6 2.757 200 0 0<emphasis role="comment">; by 200 Hz</emphasis>
 
36
<emphasis role="stamnt">i</emphasis> 1 9 2.757 200 0 1<emphasis role="comment">; keep formants by method 1</emphasis>
 
37
<emphasis role="stamnt">i</emphasis> 1 12 2.757 200 0 2<emphasis role="comment">; by method 2</emphasis>
 
38
<emphasis role="stamnt">i</emphasis> 1 15 2.757 200 1000 0<emphasis role="comment">; shift by 200 Hz but just above 1000 Hz</emphasis>
 
39
<emphasis role="stamnt">i</emphasis> 1 18 2.757 1000 500 0<emphasis role="comment">; shift by 1000 Hz above 500 Hz</emphasis>
 
40
<emphasis role="stamnt">i</emphasis> 1 21 2.757 1000 300 0<emphasis role="comment">; above 300 Hz</emphasis>
 
41
<emphasis role="stamnt">e</emphasis>
 
42
<emphasis role="csdtag">&lt;/CsScore&gt;</emphasis>
 
43
<emphasis role="csdtag">&lt;/CsoundSynthesizer&gt;</emphasis>
 
44
</programlisting>
 
 
b'\\ No newline at end of file'