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

« back to all changes in this revision

Viewing changes to examples/else.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     ;;;realtime audio out
 
5
;-iadc    ;;;uncomment -iadc if realtime audio input is needed too
 
6
; For Non-realtime ouput leave only the line below:
 
7
; -o else.wav -W ;;; for file output any platform
 
8
</CsOptions>
 
9
<CsInstruments>
 
10
 
 
11
sr = 44100
 
12
ksmps = 32
 
13
nchnls = 2
 
14
0dbfs = 1
 
15
 
 
16
instr 1
 
17
 
 
18
ipch = cpspch(p4)
 
19
ienv = p5
 
20
 
 
21
 
 
22
if (ienv == 0) then     
 
23
        kenv adsr 0.01, 0.95, .7, .5
 
24
else
 
25
        kenv linseg 0, p3 * .5, 1, p3 * .5, 0
 
26
endif
 
27
 
 
28
aout vco2    .8, ipch, 10
 
29
aout moogvcf aout, ipch + (kenv * 6 * ipch) , .5
 
30
 
 
31
aout = aout * kenv
 
32
    outs aout, aout
 
33
 
 
34
endin
 
35
</CsInstruments>
 
36
<CsScore>
 
37
 
 
38
i 1 0 2 8.00 0
 
39
i 1 3 2 8.00 1
 
40
 
 
41
e
 
42
</CsScore>
 
43
</CsoundSynthesizer>
 
 
b'\\ No newline at end of file'