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

« back to all changes in this revision

Viewing changes to examples-xml/limit.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    No messages</emphasis>
 
6
-odac           -iadc     -d     <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 limit.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> 1
 
17
 
 
18
<emphasis role="comment">; Instrument #1, uncompressed signal.</emphasis>
 
19
<emphasis role="oblock">instr</emphasis> 1
 
20
  <emphasis role="comment">; Use the "beats.wav" audio file.</emphasis>
 
21
  asig <emphasis role="opc">diskin2</emphasis> "beats.wav", 1, 0, 1
 
22
 
 
23
  <emphasis role="opc">out</emphasis> asig
 
24
<emphasis role="oblock">endin</emphasis>
 
25
 
 
26
<emphasis role="comment">; Instrument #2, compressed signal.</emphasis>
 
27
<emphasis role="oblock">instr</emphasis> 2
 
28
  <emphasis role="comment">; Use the "beats.wav" audio file and a mic</emphasis>
 
29
  avoice        <emphasis role="opc">in</emphasis>
 
30
  asig <emphasis role="opc">diskin2</emphasis> "beats.wav", 1, 0, 1
 
31
  
 
32
klow    <emphasis role="opc">line</emphasis> 0 , p3,    10000
 
33
khigh   <emphasis role="op">=</emphasis>        10000
 
34
ares <emphasis role="opc">limit</emphasis> asig, klow, khigh 
 
35
  <emphasis role="opc">out</emphasis> ares
 
36
<emphasis role="oblock">endin</emphasis>
 
37
 
 
38
 
 
39
<emphasis role="csdtag">&lt;/CsInstruments&gt;</emphasis>
 
40
<emphasis role="csdtag">&lt;CsScore&gt;</emphasis>
 
41
 
 
42
<emphasis role="comment">; Play Instrument #1 for 2 seconds.</emphasis>
 
43
<emphasis role="stamnt">i</emphasis> 1 0 5
 
44
<emphasis role="comment">; Play Instrument #2 for 2 seconds.</emphasis>
 
45
<emphasis role="stamnt">i</emphasis> 2 6 11
 
46
 
 
47
<emphasis role="stamnt">e</emphasis>
 
48
 
 
49
 
 
50
<emphasis role="csdtag">&lt;/CsScore&gt;</emphasis>
 
51
<emphasis role="csdtag">&lt;/CsoundSynthesizer&gt;</emphasis>
 
52
</programlisting>
 
 
b'\\ No newline at end of file'