Debian Codegraph @

examples/tbvcf.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in No messages
5 -odac -iadc -d ;;;RT audio I/O
6 ; For Non-realtime ouput leave only the line below:
7 ; -o tbvcf.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 ;---------------------------------------------------------
12 ; TBVCF Test
13 ; Coded by Hans Mikelson December, 2000
14 ;---------------------------------------------------------
15 sr = 44100 ; Sample rate
16 ksmps = 10 ; Samples/Kontrol period
17 nchnls = 2 ; Normal stereo
18 0dbfs = 1
19
20
21 instr 10
22
23 idur = p3 ; Duration
24 iamp = p4 ; Amplitude
25 ifqc = cpspch(p5) ; Pitch to frequency
26 ipanl = sqrt(p6) ; Pan left
27 ipanr = sqrt(1-p6) ; Pan right
28 iq = p7
29 idist = p8
30 iasym = p9
31
32 kdclck linseg 0, .002, 0.9, idur-.004, 0.9, .002, 0 ; Declick envelope
33 kfco expseg 10000, idur, 1000 ; Frequency envelope
34 ax vco 1, ifqc, 2, 0.5 ; Square wave
35 ay tbvcf ax, kfco, iq, idist, iasym ; TB-VCF
36 ay buthp ay/1, 100 ; Hi-pass
37
38 outs ay*iamp*ipanl*kdclck, ay*iamp*ipanr*kdclck
39 endin
40
41
42 </CsInstruments>
43 <CsScore>
44
45 f1 0 65536 10 1
46
47 ; TeeBee Test
48 ; Sta Dur Amp Pitch Pan Q Dist1 Asym
49 i10 0 0.2 0.5 7.00 .5 0.0 2.0 0.0
50 i10 0.3 0.2 0.5 7.00 .5 0.8 2.0 0.0
51 i10 0.6 0.2 0.5 7.00 .5 1.6 2.0 0.0
52 i10 0.9 0.2 0.5 7.00 .5 1.7 2.0 0.0
53 i10 1.2 0.2 0.5 7.00 .5 1.8 2.0 0.0
54 i10 1.8 0.2 0.5 7.00 .5 0.0 2.0 0.25
55 i10 2.1 0.2 0.5 7.00 .5 0.8 2.0 0.25
56 i10 2.4 0.2 0.5 7.00 .5 1.6 2.0 0.25
57 i10 2.7 0.2 0.5 7.00 .5 1.8 2.0 0.25
58 i10 3.0 0.2 0.5 7.00 .5 1.9 2.0 0.25
59 i10 3.3 0.2 0.5 7.00 .5 2.0 2.0 0.25
60 i10 3.6 0.2 0.5 7.00 .5 0.0 2.0 0.5
61 i10 3.9 0.2 0.5 7.00 .5 0.8 2.0 0.5
62 i10 4.2 0.2 0.5 7.00 .5 1.6 2.0 0.5
63 i10 4.5 0.2 0.5 7.00 .5 1.8 2.0 0.5
64 i10 4.8 0.2 0.5 7.00 .5 1.9 2.0 0.5
65 i10 5.1 0.2 0.5 7.00 .5 2.0 2.0 0.5
66 i10 5.4 0.2 0.5 7.00 .5 0.0 2.0 0.75
67 i10 5.7 0.2 0.5 7.00 .5 0.8 2.0 0.75
68 i10 6.0 0.2 0.5 7.00 .5 1.6 2.0 0.75
69 i10 6.3 0.2 0.5 7.00 .5 1.8 2.0 0.75
70 i10 6.6 0.2 0.5 7.00 .5 1.9 2.0 0.75
71 i10 6.9 0.2 0.5 7.00 .5 2.0 2.0 0.75
72 i10 7.2 0.2 0.5 7.00 .5 0.0 2.0 1.0
73 i10 7.5 0.2 0.5 7.00 .5 0.8 2.0 1.0
74 i10 7.8 0.2 0.5 7.00 .5 1.6 2.0 1.0
75 i10 8.1 0.2 0.5 7.00 .5 1.8 2.0 1.0
76 i10 8.4 0.2 0.5 7.00 .5 1.9 2.0 1.0
77 i10 8.7 0.2 0.5 7.00 .5 2.0 2.0 1.0
78 e
79
80
81 </CsScore>
82 </CsoundSynthesizer>