;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 ; INIT instrument added ;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 givfn ftgen 0, 0, 256, 10, 1 ;VIBRATO WAVEFORM (A SINE WAVE) giExp1 ftgen 0, 0, 129, -25, 0, 20.0, 128, 20000.0 ;TABLE FOR EXP SLIDER giExp2 ftgen 0, 0, 129, -25, 0, 0.0001, 128, 2.0 ;TABLE FOR EXP SLIDER instr 10 ;GUI ktrig metro 10 if (ktrig == 1) then gkamp invalue "Amp" kfreq invalue "Freq" gkfreq tablei kfreq, giExp1, 1 outvalue "Freq_Value", gkfreq gktens invalue "Tension" katt invalue "Attack" gkatt tablei katt, giExp2, 1 outvalue "Attack_Value", gkatt gkvibf invalue "VibFreq" gkvamp invalue "VibAmp" endif endin instr 1 ;WGBRASS INSTRUMENT iporttime = 0.03 kporttime linseg 0, 0.001, iporttime, 1, iporttime kfreq portk gkfreq, kporttime ktens portk gktens, kporttime ares wgbrass gkamp, kfreq, ktens, i(gkatt), gkvibf, gkvamp, givfn outs ares, ares ;SEND AUDIO TO OUTPUTS endin instr 2 ;INIT outvalue "Amp" , 0.18 outvalue "Freq" , 0.4337 outvalue "Tension" , 0.4 outvalue "Attack" , 0.46 outvalue "VibFreq" , 5.0 outvalue "VibAmp" , 0.01 endin ;INSTR | START | DURATION i 10 0 3600 ;GUI i 2 0 0.1 ;INIT 739 233 783 336 true 241 226 185 2 2 511 330 {aa607456-d368-4d59-8497-d16d608404c3} true 0 0 center Liberation Sans 18 3 0 0 0 147 154 255 border 5 2 8 76 220 30 {640b50b7-7200-4f81-8394-89d9843ae939} true 0 0 left Liberation Sans 10 3 0 0 0 255 255 255 noborder 1 1 Amp 8 54 500 27 {5585fa6f-0f63-4ac3-bf1b-809c2b1d9134} true 0 0 0.00000000 1.00000000 0.18000001 lin continuous -1.00000000 false Amp 448 76 60 30 {b731b52e-e14a-476a-a583-f3b2bd885539} true 0 0 right Liberation Sans 9 3 0 0 0 255 255 255 noborder 1 1 515 2 265 330 {74928ed2-b701-4668-9a11-74763d317e9b} true 0 0 center Liberation Sans 18 3 0 0 0 147 154 255 border 5 2 516 28 261 292 {d4bdb5ce-87d8-4c8c-9c64-40ec2eed6f5a} true 0 0 left Liberation Sans 14 3 0 0 0 255 255 255 noborder 1 1 8 16 120 30 {04d44ebe-12eb-4bb0-a3f5-9e4fd3e7830e} true 0 0 event 1.00000000 On / Off / i 1 0 -1 true false 8 121 220 30 {6e0c35ca-d489-456c-a3c8-7b02cf334c36} true 0 0 left Liberation Sans 10 3 0 0 0 255 255 255 noborder 1 1 Freq 8 99 500 27 {28514f48-2718-4dab-b43c-78c3cc4fba09} true 0 0 0.00000000 1.00000000 0.45600000 lin continuous -1.00000000 false Freq_Value 448 121 60 30 {1ad30bb1-9a2f-461a-bf9e-cc7cc6c9d678} true 0 0 right Liberation Sans 9 3 0 0 0 255 255 255 noborder 1 1 8 166 220 30 {b6d928a2-0d92-4eaa-b1e8-9f3091c5794c} true 0 0 left Liberation Sans 10 3 0 0 0 255 255 255 noborder 1 1 Tension 8 144 500 27 {49a6777a-6ac7-430b-b827-547dc2686e49} true 0 0 0.00000000 1.00000000 0.58000000 lin continuous -1.00000000 false Tension 448 166 60 30 {fca8b154-9112-4b23-8054-469dafd66230} true 0 0 right Liberation Sans 9 3 0 0 0 255 255 255 noborder 1 1 8 211 220 30 {55089f0d-6978-4aca-b682-ae666b30683e} true 0 0 left Liberation Sans 10 3 0 0 0 255 255 255 noborder 1 1 Attack 8 189 500 27 {3439fd43-d6bf-41ba-88ab-efcbcda0122c} true 0 0 0.00000000 1.00000000 0.46000001 lin continuous -1.00000000 false Attack_Value 448 211 60 30 {d78b9853-b96c-4bc2-a2d5-375b6a4869ae} true 0 0 right Liberation Sans 9 3 0 0 0 255 255 255 noborder 1 1 8 256 220 30 {d8273459-fbc3-40c2-b202-003f954906f6} true 0 0 left Liberation Sans 10 3 0 0 0 255 255 255 noborder 1 1 VibFreq 8 234 500 27 {ab819133-79c9-448f-a33b-8cbd65c8d6af} true 0 0 0.00000000 16.00000000 5.00000000 lin continuous -1.00000000 false VibFreq 448 256 60 30 {22ea767e-1d44-46df-a57d-1b39aeeeaa04} true 0 0 right Liberation Sans 9 3 0 0 0 255 255 255 noborder 1 1 8 301 220 30 {eb9ca396-c5b9-439b-a2d6-173005d43519} true 0 0 left Liberation Sans 10 3 0 0 0 255 255 255 noborder 1 1 VibAmp 8 279 500 27 {8efddf99-5c6c-4272-8941-b63cbfa97d8e} true 0 0 0.00000000 0.10000000 0.01000000 lin continuous -1.00000000 false VibAmp 448 301 60 30 {f23ee963-c062-4762-86c4-6695f28e2b01} true 0 0 right Liberation Sans 9 3 0 0 0 255 255 255 noborder 1 1