Hey all,

i'v got an issue with slider primitives that drives me crazy:

when i use the [style:radio] or [style:menu] metadata for a vslider like in the following example for tempo conversion, the tempo of the effect is only 1/4th of the tempo it should be, when i compile it to LV2 or VST (with faust2lv2 / faust2faustvst). in standalone mode as jack application everything works fine.

when i remove the style metadata it also works fine in LV2 and VST plugins. why does this behave like this?

here's the code:

   import("stdfaust.lib");

   //controls
   tempo = vslider("h:T_Glitch/v:[0]GLOBAL/[0]bpm",120,50,200,0.1):/(60,_);
   reverserLen = vslider("v:REVERSE/h:/[1]length[style:radio{'2 beats':
   2 ;'1 beat':4 ;'1/2 beat':8 ;'1/4 beat':16 ;'1/8 beat':32 ;'1/16
   beat':64}]", 8, 1, 64, 1):/(4,_):*(ma.SR):*(tempo):si.smoo;
   reverserTrig = button("v:REVERSE/[2]reverser");

   //logic
   wxReverser = +(reverserTrig==0)~_:-(reverserTrig):int:&(131071);
   rxReverser(len_reverser) =
   
(wxReverser-(+(reverserTrig)~(int:%(len_reverser:max(100):int):*(reverserTrig)):-(reverserTrig)))<:
   select2(<(0),_,131072+_);
   reverser(reverserIn) =
   
rwtable(131072,0.0,wxReverser:int,reverserIn,rxReverser(reverserLen):int):select2(reverserTrig,reverserIn,_);

   //main process
   process = _,_:sp.stereoize(reverser):_,_;

Thank's in advace! ;-)
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to