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

« back to all changes in this revision

Viewing changes to examples/dssiactivate.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 dssiactivate.wav -W ;;; for file output any platform
 
8
</CsOptions>
 
9
<CsInstruments>
 
10
 
 
11
sr = 44100
 
12
ksmps = 32
 
13
nchnls = 2
 
14
 
 
15
gihandle dssiinit "caps.so", 19, 1      ; = mono phaser and
 
16
gaout init  0                           ; verbose about all ports
 
17
 
 
18
instr 1 ; activate DSSI
 
19
 
 
20
ktoggle =  p4
 
21
dssiactivate gihandle, ktoggle
 
22
endin
 
23
 
 
24
instr 2
 
25
 
 
26
ain1    diskin2 "beats.wav", 1,0,1      ; loop
 
27
ain1    =       ain1*.5
 
28
        outs    ain1, ain1
 
29
gaout = gaout+ain1
 
30
endin
 
31
 
 
32
instr 3
 
33
 
 
34
dssictls gihandle, 0, 1, 1                      ; range -1 to 1
 
35
dssictls gihandle, 1, 2, 1                      ; rate 0 to 10
 
36
dssictls gihandle, 2, .8, 1                     ; depth 0 to 1
 
37
dssictls gihandle, 3, 3, 1                      ; spread 0 to 3.14
 
38
dssictls gihandle, 4, .9, 1                     ; feedback 0 to 0.999
 
39
 
 
40
endin
 
41
 
 
42
instr 4
 
43
 
 
44
aout1 dssiaudio gihandle, gaout ;get beats.wav, mono out
 
45
        outs aout1,aout1
 
46
 
 
47
gaout = 0
 
48
endin
 
49
 
 
50
</CsInstruments>
 
51
<CsScore>
 
52
i 1 0 4 1
 
53
i 1 + . 0
 
54
i 1 + . 1 
 
55
i 1 + . 0
 
56
i 1 + . 1
 
57
i 2 1 20 
 
58
i 3 1 20
 
59
i 4 0 20
 
60
 
 
61
e
 
62
</CsScore>
 
63
</CsoundSynthesizer>