/*Getting started.. 1.7 Realtime Instrument Control This instrument provides two control possibilities to a sine oscillator from the graphical user interface (GUI). Open the widget window, press 'Run' and move the sliders! You can set the channel on which widgets receive by right-clicking on the widget and choosing 'Properties' */ sr = 44100 ksmps = 128 nchnls = 2 0dbfs = 1 instr 1 kFreq invalue "freq" ; userdefined channel: freq kAmp invalue "amp" ; userdefined channel: amp kAmp port kAmp, .02 ; this smoothes the incoming slider values kFreq port kFreq, .02 ; smoothing is usually required to avoid 'zipper noise' aSine poscil3 kAmp, kFreq, 1 outs aSine, aSine endin f 1 0 1024 10 1 i 1 0 3600 ;calls the instrument, and plays for 3600 seconds e ; written by Alex Hofmann (Nov. 2009) - Incontri HMT-Hannover 1013 279 563 397 true 160 158 162 16 234 266 147 {546018a6-f10c-4f00-b707-593b7713dd57} true 0 -3 -255.00000000 scope 2.00000000 1.00000000 1.00000000 1.00000000 0.00000000 freq 16 45 257 38 {40fda0db-fe7a-4e5e-83b7-efb1aa9fdd7e} true 0 -3 200.00000000 1000.00000000 433.46303500 lin continuous -1.00000000 false amp 17 149 267 43 {923df544-20e6-4881-a63e-e1d5cbacb793} true 0 -3 0.00000000 1.00000000 0.17603000 lin continuous -1.00000000 false 16 12 231 31 {2f6e0bb1-0572-4de2-a4a7-f0cff14be5e6} true 0 -3 left Lucida Grande 18 3 0 0 0 255 255 255 noborder 1 1 16 118 231 31 {248a601f-2231-437b-bd55-306f2dd67c1a} true 0 -3 left Lucida Grande 18 3 0 0 0 255 255 255 noborder 1 1