~ubuntu-branches/ubuntu/precise/csound/precise

« back to all changes in this revision

Viewing changes to iOS/Csound iOS Examples/Csound iOS Examples/ViewControllers/SimpleTest2/test2.csd

  • Committer: Package Import Robot
  • Author(s): Felipe Sateler
  • Date: 2012-04-19 09:26:46 UTC
  • mfrom: (3.2.19 sid)
  • Revision ID: package-import@ubuntu.com-20120419092646-96xbj1n6atuqosk2
Tags: 1:5.17.6~dfsg-1
* New upstream release
 - Do not build the wiimote opcodes (we need wiiuse).
* Add new API function to symbols file
* Disable lua opcodes, they were broken. Requires OpenMP to be enabled.
* Backport fixes from upstream:
  - Link dssi4cs with dl. Backport
  - Fix building of CsoundAC

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<CsoundSynthesizer>
 
2
<CsOptions>
 
3
-o dac -+rtaudio=null -d -+msg_color=0 -m0
 
4
</CsOptions>
 
5
<CsInstruments>
 
6
nchnls=2
 
7
0dbfs=1
 
8
ksmps=64
 
9
sr = 44100
 
10
 
 
11
seed 0
 
12
 
 
13
instr 1
 
14
 
 
15
inoterate chnget "noteRate" 
 
16
inotedur chnget "duration" 
 
17
 
 
18
;print inoterate
 
19
;print inotedur
 
20
 
 
21
event_i "i", 1, inoterate, 1
 
22
event_i "i", 2, 0, inotedur
 
23
 
 
24
turnoff
 
25
 
 
26
endin
 
27
 
 
28
instr 2
 
29
 
 
30
iattack chnget "attack" 
 
31
idecay chnget "decay" 
 
32
isustain chnget "sustain" 
 
33
irelease chnget "release" 
 
34
 
 
35
 
 
36
;ipchMul rnd31 .5, -0.5
 
37
;ipchMul = ipchMul + .5
 
38
;ipch = 100 + (1000 * ipchMul)
 
39
ipch = 100 + rnd(1000)
 
40
 
 
41
;print iattack
 
42
;print idecay
 
43
;print isustain
 
44
;print irelease
 
45
 
 
46
a2 linsegr 0, iattack, 1, idecay, isustain, irelease, 0
 
47
a1 oscili a2 * .3, ipch, 1
 
48
outs a1,a1
 
49
endin
 
50
 
 
51
</CsInstruments>
 
52
<CsScore>
 
53
f1 0 16384 10 1
 
54
 
 
55
i1 0 1
 
56
 
 
57
f 0 3600
 
58
 
 
59
</CsScore>
 
60
</CsoundSynthesizer>