Thank you so much Rob, but still no working. Now we get no errors. Maybe I do it wrong.
How is the command to use in telnet server? vars.mybool false or vars.mybool true This working but have no effect in ladspa processor. In this I set de parameter bypass=getmybool(). Rgs, Normando El 19/08/2016 a las 11:05 p.m., Robert McAuley escribió: > mybool = ref true > server.register(namespace="vars", "mybool", fun (s) -> begin mybool := > (s == "true") string_of(!mybool) end) > > def getmybool() = > !mybool > end > > ------- > > Or you can just use "!mybool" in a switch predicate/wherever you need. :) > > - Rob > > On Fri, Aug 19, 2016 at 6:57 AM, Normando Hall <nh...@unixlan.com.ar > <mailto:nh...@unixlan.com.ar>> wrote: > > Update: > > I was tried to make a function to return false or true based on > interactive.bool, but still not working. Any ideas? > > Regards, > > Normando > > > El 15/08/2016 a las 10:05 p.m., Normando Hall escribió: >> >> Hello dears friends. >> >> I working on LS server frontend, specifically with realtime web >> frontend to allow us taylor some audio settings, like ladspa >> plugins, volume, etc. >> >> This is the issue. I can add an interactive variables and access >> through telnet server: >> >> *i = interactive.float("volume_in", 1.2)** >> **o = interactive.float("volume_out", 1.)* >> >> and replace the values with variables in my ladspa plugin: >> >> full = ladspa.multibandcompressor( >> bypass=false, >> input=*i*, >> output=*o*, >> ... >> >> The issues come when I try to replace a boolean valuen with an >> interactive boolean variable: >> >> *b = interactive.bool("bypass", false)* >> >> full = ladspa.multibandcompressor( >> bypass=*b*, >> input=i, >> output=o, >> >> Give me the error: >> >> Starting liquidsoap: radio.liq At /etc/liquidsoap/procesadores, >> line 240, char 11: >> this value has type >> ()->_ (inferred at /etc/liquidsoap/procesadores, line 196, >> char 21-37) >> but it should be a subtype of >> bool >> >> I think this happens because ladspa "bypass" setting is not a >> function. Some ideas for workaround this? I will share this >> frontend when finish. >> >> Regards, >> >> Normando >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Savonet-users mailing list >> Savonet-users@lists.sourceforge.net >> <mailto:Savonet-users@lists.sourceforge.net> >> https://lists.sourceforge.net/lists/listinfo/savonet-users >> <https://lists.sourceforge.net/lists/listinfo/savonet-users> > > ------------------------------------------------------------------------------ > _______________________________________________ Savonet-users > mailing list Savonet-users@lists.sourceforge.net > <mailto:Savonet-users@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/savonet-users > <https://lists.sourceforge.net/lists/listinfo/savonet-users> > > ------------------------------------------------------------------------------ > > _______________________________________________ > Savonet-users mailing list > Savonet-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/savonet-users
------------------------------------------------------------------------------
_______________________________________________ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users