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

« back to all changes in this revision

Viewing changes to examples/denorm.csd

  • 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
<CsoundSynthesizer>
 
2
<CsOptions>
 
3
; Select audio/midi flags here according to platform
 
4
-odac     ;;;RT audio out
 
5
;-iadc    ;;;uncomment -iadc if RT audio input is needed too
 
6
; For Non-realtime ouput leave only the line below:
 
7
; -o denorm.wav -W ;;; for file output any platform
 
8
</CsOptions>
 
9
<CsInstruments>
 
10
; slightly simplified example from Istvan Varga 2006
 
11
sr = 44100
 
12
ksmps = 32
 
13
nchnls = 2
 
14
0dbfs = 1
 
15
 
 
16
garvb init 0
 
17
 
 
18
instr 1
 
19
 
 
20
a1  oscils 0.6, 440, 0
 
21
a2  linsegr 0, 0.005, 1, 3600, 1, 0.08, 0
 
22
a1  =  a1 * a2
 
23
    vincr garvb, a1
 
24
    outs a1, a1
 
25
endin
 
26
 
 
27
instr 99        ;"Always on"
 
28
 
 
29
       denorm garvb
 
30
aL, aR reverbsc garvb * 0.5, garvb * 0.5, 0.92, 10000
 
31
       clear garvb
 
32
       outs aL, aR
 
33
endin
 
34
 
 
35
</CsInstruments>
 
36
<CsScore>
 
37
 
 
38
i 99 0 -1       ;held by a negative p3, means "always on" 
 
39
i 1 0 0.5
 
40
i 1 4 0.5
 
41
e 8             ;8 extra seconds after the performance
 
42
 
 
43
</CsScore>
 
44
</CsoundSynthesizer>