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

« back to all changes in this revision

Viewing changes to examples-xml/sndwarpst.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 sndwarpst.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
 
 
14
<emphasis role="ohdr">sr</emphasis> <emphasis role="op">=</emphasis> 44100
 
15
<emphasis role="ohdr">kr</emphasis> <emphasis role="op">=</emphasis> 4410
 
16
<emphasis role="ohdr">ksmps</emphasis> <emphasis role="op">=</emphasis> 10
 
17
<emphasis role="ohdr">nchnls</emphasis> <emphasis role="op">=</emphasis> 2
 
18
 
 
19
 
 
20
<emphasis role="oblock">instr</emphasis> 1
 
21
  kamp <emphasis role="opc">init</emphasis> 10000
 
22
  <emphasis role="comment">; Start at 1 second and end at 3.5 seconds.</emphasis>
 
23
  ktimewarp <emphasis role="opc">line</emphasis> 1, p3, 1.5
 
24
  <emphasis role="comment">; Playback at the normal speed.</emphasis>
 
25
  kresample <emphasis role="opc">init</emphasis> 4
 
26
  <emphasis role="comment">; Use the audio file defined in Table #1.</emphasis>
 
27
  ifn1 <emphasis role="op">=</emphasis> 1
 
28
  ibeg <emphasis role="op">=</emphasis> 0
 
29
  iwsize <emphasis role="op">=</emphasis> 4410
 
30
  irandw <emphasis role="op">=</emphasis> 100
 
31
  ioverlap <emphasis role="op">=</emphasis> 15
 
32
  <emphasis role="comment">; Use Table #2 for the windowing function.</emphasis>
 
33
  ifn2 <emphasis role="op">=</emphasis> 2
 
34
  <emphasis role="comment">; Use the ktimewarp parameter as a "time" pointer.</emphasis>
 
35
  itimemode <emphasis role="op">=</emphasis> 1
 
36
 
 
37
  a1, a2 <emphasis role="opc">sndwarp</emphasis> kamp, ktimewarp, kresample, ifn1, ibeg, iwsize, irandw, ioverlap, ifn2, itimemode
 
38
  <emphasis role="opc">outs</emphasis> a1, a2
 
39
  
 
40
<emphasis role="oblock">endin</emphasis>
 
41
 
 
42
 
 
43
<emphasis role="csdtag">&lt;/CsInstruments&gt;</emphasis>
 
44
<emphasis role="csdtag">&lt;CsScore&gt;</emphasis>
 
45
<emphasis role="comment">; Table #1: an audio file.</emphasis>
 
46
<emphasis role="stamnt">f</emphasis> 1 0 65536 1 "kickroll.wav" 0 0 0
 
47
<emphasis role="comment">; Table #2: half of a sine wave.</emphasis>
 
48
<emphasis role="stamnt">f</emphasis> 2 0 16384 9 0.5 1 0
 
49
 
 
50
<emphasis role="stamnt">i</emphasis> 1 0 10
 
51
<emphasis role="stamnt">e</emphasis>
 
52
 
 
53
<emphasis role="csdtag">&lt;/CsScore&gt;</emphasis>
 
54
<emphasis role="csdtag">&lt;/CsoundSynthesizer&gt;</emphasis>
 
55
</programlisting>
 
 
b'\\ No newline at end of file'