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

« back to all changes in this revision

Viewing changes to examples-xml/vdelay.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
<emphasis role="comment">; Select audio/midi flags here according to platform</emphasis>
 
5
<emphasis role="comment">; Audio out   Audio in</emphasis>
 
6
-odac           -iadc    <emphasis role="comment">;;;RT audio I/O</emphasis>
 
7
<emphasis role="comment">; For Non-realtime ouput leave only the line below:</emphasis>
 
8
<emphasis role="comment">; -o vdelay.wav -W ;;; for file output any platform</emphasis>
 
9
<emphasis role="csdtag">&lt;/CsOptions&gt;</emphasis>
 
10
<emphasis role="csdtag">&lt;CsInstruments&gt;</emphasis>
 
11
 
 
12
<emphasis role="comment">; Initialize the global variables.</emphasis>
 
13
<emphasis role="ohdr">sr</emphasis> <emphasis role="op">=</emphasis> 44100
 
14
<emphasis role="ohdr">kr</emphasis> <emphasis role="op">=</emphasis> 4410
 
15
<emphasis role="ohdr">ksmps</emphasis> <emphasis role="op">=</emphasis> 10
 
16
<emphasis role="ohdr">nchnls</emphasis> <emphasis role="op">=</emphasis> 2
 
17
 
 
18
<emphasis role="oblock">instr</emphasis> 1 
 
19
 
 
20
ims     <emphasis role="op">=</emphasis>        100             <emphasis role="comment">; Maximum delay time in msec</emphasis>
 
21
a1      <emphasis role="opc">oscil</emphasis>   10000, 1737, 1  <emphasis role="comment">; Make a signal</emphasis>
 
22
a2      <emphasis role="opc">oscil</emphasis>   ims<emphasis role="op">/</emphasis>2, 1<emphasis role="op">/</emphasis>p3, 1  <emphasis role="comment">; Make an LFO</emphasis>
 
23
a2      <emphasis role="op">=</emphasis>        a2 <emphasis role="op">+</emphasis> ims<emphasis role="op">/</emphasis>2      <emphasis role="comment">; Offset the LFO so that it is positive</emphasis>
 
24
a3      <emphasis role="opc">vdelay</emphasis>  a1, a2, ims     <emphasis role="comment">; Use the LFO to control delay time</emphasis>
 
25
        <emphasis role="opc">outs</emphasis>    a3, a3
 
26
 
 
27
<emphasis role="oblock">endin</emphasis>
 
28
 
 
29
<emphasis role="csdtag">&lt;/CsInstruments&gt;</emphasis>
 
30
<emphasis role="csdtag">&lt;CsScore&gt;</emphasis>
 
31
<emphasis role="stamnt">f</emphasis>1 0 8192 10 1
 
32
 
 
33
<emphasis role="stamnt">i</emphasis> 1 0 5 
 
34
 
 
35
<emphasis role="stamnt">e</emphasis>
 
36
 
 
37
<emphasis role="csdtag">&lt;/CsScore&gt;</emphasis>
 
38
<emphasis role="csdtag">&lt;/CsoundSynthesizer&gt;</emphasis>
 
39
</programlisting>
 
 
b'\\ No newline at end of file'