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