Re: [Bluemusic-users] Issue with bluesynth knob
Brought to you by:
kunstmusik
From: Philippe de R. <ph...@fr...> - 2014-06-01 17:07:15
|
Hi Steven, thanks for you reply. is there a way to make the knob update the amplitude values in realtime? Philippe Le 1 juin 2014 à 17:26, Steven Yi <ste...@gm...> a écrit : > Hi Phillipe, > > Knobs generate k-rate signals. In your code, you have the k-var being > assigned to an i-var, which is not allowed in Csound. This is shown > in the generated code: > > iamp = gk_blue_auto0 * 0dbfs > > where gk_blue_auto0 is the generated global k-rate var. In general, if > you need the value of a knob only at init-time, you can do: > > iamp = i(<amplitude>) * 0dbfs > > I use code like the above, wrapping in an i(), for things like ADSR > values, which can then be modified in real-time for new notes, but the > values stay the same during the lifetime of the single note. > > Hope that helps! > steven > > On Sun, Jun 1, 2014 at 8:08 AM, Philippe de Rochambeau <ph...@fr...> wrote: >> Hello, >> >> I have created an instrument containing a know whose code is as follows: >> >> ----- >> >> iamp = <amplitude> * 0dbfs >> aout vco2 iamp, 440 >> outs aout, aout >> >> ----- >> >> My score contains the following code: >> >> ----- >> >> (def score "i2 0 2 3 4 5") >> >> >> —— >> >> When I press the Play Button, I get the following error message: >> >> —— >> >> STARTING FILE >> Creating orchestra >> Creating score >> rtaudio: PortAudio module enabled ... >> using blocking interface >> rtmidi: PortMIDI module enabled >> error: Unable to find opcode entry for '=' with matching argument types: >> Found: i = k >> Line: 38 >> from file /Users/xxx/Desktop/BlueTests/tempCsd1077906860926146584.csd (1) >> Parsing failed to syntax errors >> Stopping on parser failure >> cannot compile orchestra >> end of score. overall amps: 0.0 >> overall samples out of range: 0 >> 1 errors in performance >> Elapsed time at end of performance: real: 0.005s, CPU: 0.004s >> >> It seems that the <amplitude> variable is not correctly replaced by the knob's button. >> >> Line 37 and 38 of the generated CSD file contain the following code: >> >> ----- >> >> iamp = gk_blue_auto0 * 0dbfs >> aout vco2 iamp, 440 >> —— >> >> Any help would be greatly appreciated. >> >> Many thanks. >> >> Phiroc >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Time is money. Stop wasting it! Get your web API in 5 minutes. >> www.restlet.com/download >> http://p.sf.net/sfu/restlet >> _______________________________________________ >> Bluemusic-users mailing list >> Blu...@li... >> https://lists.sourceforge.net/lists/listinfo/bluemusic-users > > ------------------------------------------------------------------------------ > Time is money. Stop wasting it! Get your web API in 5 minutes. > www.restlet.com/download > http://p.sf.net/sfu/restlet > _______________________________________________ > Bluemusic-users mailing list > Blu...@li... > https://lists.sourceforge.net/lists/listinfo/bluemusic-users |