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

« back to all changes in this revision

Viewing changes to android/CsoundAndroidExamples/res/raw/button_test.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
ktrigger chnget "button1" 
 
16
knotedur chnget "duration" 
 
17
 
 
18
if(ktrigger > 0) then
 
19
    event "i", 2, 0, knotedur
 
20
endif
 
21
 
 
22
endin
 
23
 
 
24
instr 2
 
25
 
 
26
print p3
 
27
 
 
28
iattack chnget "attack" 
 
29
idecay chnget "decay" 
 
30
isustain chnget "sustain" 
 
31
irelease chnget "release" 
 
32
 
 
33
 
 
34
;ipchMul rnd31 .5, -0.5
 
35
;ipchMul = ipchMul + .5
 
36
;ipch = 100 + (1000 * ipchMul)
 
37
ipch = 100 + rnd(1000)
 
38
 
 
39
;print iattack
 
40
;print idecay
 
41
;print isustain
 
42
;print irelease
 
43
 
 
44
a2 linsegr 0, iattack, 1, idecay, isustain, irelease, 0
 
45
a1 oscili a2 * .25, ipch, 1
 
46
outs a1,a1
 
47
endin
 
48
 
 
49
</CsInstruments>
 
50
<CsScore>
 
51
f1 0 16384 10 1
 
52
 
 
53
i1 0 3600
 
54
 
 
55
</CsScore>
 
56
</CsoundSynthesizer>