Debian Codegraph @

src/Scripts/Koenig-Essay/csds/G02_RM18.csd

raw
1 <CsoundSynthesizer>
2
3 ; Id: G02_RM18.CSD mg (2006, rev.2009)
4 ; author: marco gasperini (marcogsp at yahoo dot it)
5
6 ; G.M. Koenig
7 ; ESSAY (1957)
8
9 <CsOptions>
10 -W -f -oG02_RM18.wav
11 </CsOptions>
12
13 <CsInstruments>
14
15 sr = 192000
16 kr = 192000
17 ksmps = 1
18 nchnls = 1
19
20 gaMod init 0 ; modulating signal
21
22 ;====================================
23 ; 271.18 RING MODULATION
24 ;====================================
25
26 ;------------------------------------
27 instr 1 ; complex modulating signal (sum of sinusoids)
28 ifreq = p4
29
30 a1 oscili 1 , ifreq, 1
31
32 gaMod = gaMod + a1 ; sums-up sinusoids in modulating signal
33 endin
34 ;------------------------------------
35
36 ;------------------------------------
37 instr 2
38 inum = p4 ; number of sinusoids
39 iamp = 1 / inum
40 ifile = p5
41
42 a1 diskin2 ifile , 1 ; carrier
43
44 aout = (gaMod*iamp) * a1 ; RM
45
46 out aout
47
48 gaMod = 0
49
50 endin
51 ;------------------------------------
52
53 ;====================================
54
55 </CsInstruments>
56 <CsScore>
57 f1 0 8192 10 1
58
59 t0 4572 ; 76.2 cm/sec. tape speed (durations in cm)
60
61 ; p4
62 ; ifreq
63 ; [Hz]
64 i1 0 1298.5 600 ; simusoids
65 i1 0 1298.5 522
66 i1 0 1298.5 455
67 i1 0 1298.5 396
68 ; p4 p5
69 ; inum ifile
70 i2 0 1298.5 4 "G01.wav" ; carrier
71 e
72
73 </CsScore>
74 </CsoundSynthesizer>