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

« back to all changes in this revision

Viewing changes to examples/mandol.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:
9
9
<CsInstruments>
10
10
 
11
11
; Initialize the global variables.
12
 
sr = 22050
13
 
kr = 2205
 
12
sr = 44100
 
13
kr = 4410
14
14
ksmps = 10
15
15
nchnls = 1
16
16
 
17
17
; Instrument #1.
18
18
instr 1
19
 
  ; kamp = 30000
 
19
   kamp = p5
20
20
  ; kfreq = 880
21
21
  ; kpluck = 0.4
22
22
  ; kdetune = 0.99
23
23
  ; kgain = 0.99
24
 
  ; ksize = 2
 
24
  ksize = p4
25
25
  ; ifn = 1
26
26
  ; ifreq = 220
27
27
 
28
 
  a1 mandol 30000, 880, 0.4, 0.99, 0.99, 2, 1, 220
 
28
  a1 mandol kamp, 880, 0.4, 0.99, 0.99, ksize, 1, 220
29
29
 
30
30
  out a1
31
31
endin
38
38
f 1 0 8192 1 "mandpluk.aiff" 0 0 0
39
39
 
40
40
; Play Instrument #1 for one second.
41
 
i 1 0 1
 
41
i 1 0.5 1 2 45000
 
42
i 1 + 1 .3 10000        ;change volume to compensate
42
43
e
43
44
 
44
45