;Written by Iain McCurdy, 2009
;Modified for QuteCsound by René, March 2011
;Tested on Ubuntu 10.04 with csound-float 5.13.0 and QuteCsound svn rev 817
;Notes on modifications from original csd:
; Add tables for exp slider
;my flags on Ubuntu: -odac -b1024 -B2048 -+rtaudio=alsa -+rtmidi=null -m0
sr = 44100 ;SAMPLE RATE
ksmps = 100 ;NUMBER OF AUDIO SAMPLES IN EACH CONTROL CYCLE
nchnls = 2 ;NUMBER OF CHANNELS (2=STEREO)
0dbfs = 1 ;MAXIMUM AMPLITUDE REGARDLESS OF BIT DEPTH
;TABLES FOR EXP SLIDER
giExp1 ftgen 0, 0, 129, -25, 0, 0.001, 128, 1.0
instr 10 ;GUI
ktrig metro 10
if (ktrig == 1) then
gkamp invalue "Amplitude"
kdettack invalue "dettack"
gkdettack tablei kdettack, giExp1, 1
outvalue "dettack_Value", gkdettack
gknum invalue "Num"
gkdamp invalue "Damp"
gkmaxshake invalue "EnergyFB"
endif
endin
instr 1
kSwitch changed gkamp, gkdettack, gknum, gkdamp, gkmaxshake ;GENERATE A MOMENTARY '1' PULSE IN OUTPUT 'kSwitch' IF ANY OF THE SCANNED INPUT VARIABLES CHANGE. (OUTPUT 'kSwitch' IS NORMALLY ZERO)
if kSwitch=1 then
reinit BEGIN
endif
BEGIN:
acabasa cabasa i(gkamp), i(gkdettack) , i(gknum), i(gkdamp), i(gkmaxshake)
rireturn
outs acabasa, acabasa
endin
;INSTR | START | DURATION
i 10 0 3600 ;GUI
72
179
400
200
true
241
226
185
2
2
512
270
{aa607456-d368-4d59-8497-d16d608404c3}
true
0
0
center
Liberation Sans
18
3
0
0
0
147
154
255
border
5
2
8
8
100
30
{24979132-c53f-4414-ac6b-6b4f503ecfe8}
true
0
0
event
1.00000000
Rub !
/
i 1 0 -1
false
false
8
74
220
30
{640b50b7-7200-4f81-8394-89d9843ae939}
true
0
0
left
Liberation Sans
10
3
0
0
0
255
255
255
noborder
1
1
Amplitude
8
57
500
27
{5585fa6f-0f63-4ac3-bf1b-809c2b1d9134}
true
0
0
0.00000000
1.00000000
0.60000000
lin
continuous
-1.00000000
false
Amplitude
448
74
60
30
{b731b52e-e14a-476a-a583-f3b2bd885539}
true
0
0
right
Liberation Sans
9
3
0
0
0
255
255
255
noborder
1
1
8
109
220
30
{989564b0-b237-4c22-9d10-b76b7c7e4e4c}
true
0
0
left
Liberation Sans
10
3
0
0
0
255
255
255
noborder
1
1
dettack
8
92
500
27
{84cd664e-fb67-4dd4-aac3-adbcf2c81fe6}
true
0
0
0.00000000
1.00000000
0.33200000
lin
continuous
-1.00000000
false
dettack_Value
448
109
60
30
{ba8682a6-056f-4432-946b-4e3ee82c47a1}
true
0
0
right
Liberation Sans
9
3
0
0
0
255
255
255
noborder
1
1
8
143
200
30
{76044785-79c4-4202-b7ce-07aee4868219}
true
0
0
left
Liberation Sans
10
3
0
0
0
255
255
255
noborder
1
1
Num
8
126
500
27
{0f952e77-ff9b-4621-b1af-23252bb9c2a6}
true
0
0
0.00010000
1000.00000000
500.00005000
lin
continuous
-1.00000000
false
Num
448
143
60
30
{7b92c0ca-2fe8-4b4f-9ed0-f618c1b3cb5c}
true
0
0
right
Liberation Sans
9
3
0
0
0
255
255
255
noborder
1
1
8
178
220
30
{ca41878c-b561-486b-9cf9-d0da6b48448b}
true
0
0
left
Liberation Sans
10
3
0
0
0
255
255
255
noborder
1
1
Damp
8
161
500
27
{2800fb88-347a-402c-88ed-fc97af6a36be}
true
0
0
-5.00000000
0.05000000
-1.00040000
lin
continuous
-1.00000000
false
Damp
448
178
60
30
{5d1ba94c-536a-4178-be6c-c0d9d2f75e3d}
true
0
0
right
Liberation Sans
9
3
0
0
0
255
255
255
noborder
1
1
8
213
220
30
{cdd71125-b224-471a-9c41-9c05d8d28d0c}
true
0
0
left
Liberation Sans
10
3
0
0
0
255
255
255
noborder
1
1
EnergyFB
8
196
500
27
{7a83bb1f-f25d-47e0-bf2d-9c5c86e0756b}
true
0
0
0.00000000
1.00000000
0.00000000
lin
continuous
-1.00000000
false
EnergyFB
448
213
60
30
{7f8d2709-bf8c-46ab-83f0-36fc620b0d56}
true
0
0
right
Liberation Sans
9
3
0
0
0
255
255
255
noborder
1
1
515
2
460
270
{74928ed2-b701-4668-9a11-74763d317e9b}
true
0
0
center
Liberation Sans
18
3
0
0
0
147
154
255
border
5
2
517
25
456
245
{d4bdb5ce-87d8-4c8c-9c64-40ec2eed6f5a}
true
0
0
left
Liberation Sans
14
3
0
0
0
255
255
255
noborder
1
1