;Written by Iain McCurdy, 2008
;Modified for QuteCsound by René, February 2011
;Tested on Ubuntu 10.04 with csound-float 5.13.0 and QuteCsound svn rev 817
;(Different value of ksmps cause sliders instabilities)
;Notes on modifications from original csd:
; Replaced sound file by vco
; Changed kr by kr/441 to stabilise the sliders
;my flags on Ubuntu: -odac -b1024 -B2048 -+rtaudio=alsa -+rtmidi=null -m0
sr = 44100 ;SAMPLE RATE
ksmps = 10 ;NUMBER OF AUDIO SAMPLES IN EACH CONTROL CYCLE
nchnls = 2 ;NUMBER OF CHANNELS (2=STEREO)
instr 1
kdbs invalue "Decibels"
kamps invalue "Amplitude"
kamp = ampdb(kdbs)
ktrigger changed kamp
if ktrigger==1 then
outvalue "Amplitude", kamp
endif
kdb = dbamp(kamps)
ktrigger2 metro kr/441
if ktrigger2==1 then
outvalue "Decibels", kdb
endif
asig vco2 kamps, 220
outs asig, asig
endin
i 1 0 3600
1162
146
517
304
true
241
226
185
2
2
512
300
{aa607456-d368-4d59-8497-d16d608404c3}
true
0
0
center
Liberation Sans
18
3
255
255
255
5
27
150
border
5
2
8
23
499
161
{e41f02b8-6ad4-46dc-805c-0b2eeafbd476}
true
0
0
left
Liberation Sans
14
3
255
255
255
255
255
255
noborder
1
1
8
270
200
30
{3ebc1139-1fdb-48dc-9150-49ee8dfdbd4a}
true
0
0
left
Liberation Sans
10
3
255
255
255
255
255
255
noborder
1
1
Amplitude
8
247
500
27
{2cf97843-5b49-438e-8034-62a459597e86}
true
0
0
1.00000000
32768.00000000
1.00000000
lin
continuous
-1.00000000
false
Amplitude
448
270
60
30
{e54486c5-f9aa-4d0e-9a67-6506dae3c790}
true
0
0
right
Liberation Sans
9
3
255
255
255
255
255
255
noborder
1
1
8
217
200
30
{78a7e9cd-fb57-421c-8e1f-40b60a90dfc0}
true
0
0
left
Liberation Sans
10
3
255
255
255
255
255
255
noborder
1
1
Decibels
8
194
500
27
{4b5d3fba-55d0-43d1-a94a-457bc9144a31}
true
0
0
0.00000000
90.47300000
0.00000000
lin
continuous
-1.00000000
false
Decibels
448
217
60
30
{58265963-6245-459e-8071-9ed8bba850a4}
true
0
0
right
Liberation Sans
9
3
255
255
255
255
255
255
noborder
1
1