Thank you for the information. I will keep an eye on the updates about this. PD: I am enjoying a lot the web IDE well done!
Alejandro > On 29 Feb 2020, at 16.20, Stéphane Letz <l...@grame.fr> wrote: > > OK I see. > > Yes, even if driven by a AR signal in SuperCollider, the controllers > (sliders..etc..) will only change at KR, so depending of the underlying > buffer-size. This is something that you cannot do simply with the current > model and that we want to improve. > > Stephane > >> Le 29 févr. 2020 à 12:42, Alejandro Olarte <tenu...@gmail.com> a écrit : >> >> Thank you Stéphane for the reply >> >> I will try to illustrate the question. >> >> If I export the code in the first email as Example1 for a supercollider uGen >> it can be modulated with another uGen either running at the audio rate or at >> the control rate. >> However with an audio rate uGen it clearly sounds as it is not been >> modulated at the audio rate but at the control rate. >> I would like to explicitly set the parameters rate to receive audio rate >> inputs for modulation. >> >> x={arg freq=1000, amp=0.5;Example1.ar(SinOsc.ar(freq,0,400,400)!2)*amp}.play >> y={arg freq=1000, amp=0.5;SinOsc.ar(SinOsc.ar(freq,0,400,400)!2)*amp}.play >> >> x.set(\amp, 0.5); >> y.set(\amp, 0.5); >> x.set(\amp, 0); >> y.set(\amp, 0); >> x.set(\freq, 1); >> y.set(\freq, 1); >> >> >> Is it more clear? >> >> Thanks, >> Alejandro >> >> >>> On 29 Feb 2020, at 11.23, Stéphane Letz <l...@grame.fr> wrote: >>> >>> I’m not sure to understand, but: >>> >>> - ma.SR is the audio frequency that will be given by the audio underlying >>> layer at runtime, and so accessible in the DSP code. So when exporting for >>> SuperCollider uGen, the actual ma.SR value will be given by the >>> SuperCollider host at runtime. >>> >>> - DSP code is run by buffers (mike 128 frames in the Web platform when >>> running using AudioWorklet nodes), and so the control rate is actually >>> ma.SR/buffersize. The control are updated at this rate. >>> >>> Stéphane >>> >>>> Le 29 févr. 2020 à 10:12, Alejandro Olarte <tenu...@gmail.com> a écrit : >>>> >>>> Hi, >>>> Is there a way to specify in the rate of the parameters when exporting >>>> from the web IDE? >>>> For example: in the example below when exporting to SuperCollider uGen >>>> what is the rate of frequency? is it possible to set it to audio rate or >>>> control rate? >>>> >>>> import("stdfaust.lib"); >>>> decimalpart(x) = x-int(x); >>>> phase(f) = f/ma.SR : (+ : decimalpart) ~_; >>>> osc(f) = phase(f) * 2 * ma.PI : sin; >>>> out = osc(hslider("freq", 440, 0, 10000, 1) )* hslider("gain", 0.961, 0.0, >>>> 1.0, 0.001); >>>> process = out <: _,_; >>>> >>>> Thanks, >>>> Alejandro >>>> >>>> _______________________________________________ >>>> Faudiostream-users mailing list >>>> Faudiostream-users@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/faudiostream-users >>> >> > _______________________________________________ Faudiostream-users mailing list Faudiostream-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/faudiostream-users