Related to interactive variables, would it be possible to make the
track_sensitive flag for switch also work with interactive bools?

- Rob

On Mon, Sep 19, 2016 at 11:17 PM, Samuel Mimram <smim...@gmail.com> wrote:

> Yes, I have just modified the code so that interactive integers and
> booleans can be used!
>
> Chers,
>
> Samuel
>
> On Sat, Sep 17, 2016 at 5:13 PM, Romain Beauxis <to...@rastageeks.org>
> wrote:
> > Hi Normando,
> >
> > It looks like the LADSPA code doesn't support interactive integer or
> float.
> > We could see about changing that.
> >
> > I'm CCing Sam who wrote this code to see if there are any particular
> reason
> > that we avoided it initially.
> >
> > Romain
> >
> > 2016-08-24 0:44 GMT-05:00 Normando Hall <nh...@unixlan.com.ar>:
> >>
> >> 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>
> >> 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
> >>> 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
> >>
> >>
> >>
> >> ------------------------------------------------------------
> ------------------
> >>
> >> _______________________________________________
> >> 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
>
------------------------------------------------------------------------------
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to