Hello,
Thank you for the clarification. 
So if I understand well, the strategy should be to pre-code all the possible 
case of the function call, and then navigate between them with a selectn 
function ?

something like

slider=int(hslider("",0,0,4,1));

(f(1),f(2),f(3),f(4),f(5)):selectn(5,slider):_

?
Pierre

> Hi Pierre,
> 
> Pattern matching occurs at compile time while the slider can only change at
> run time.  Take a look at the new selectn() function in math.lib for
> selecting among various cases at run time.
> 
> Cheers,
> - Julius
> 
> On Tue, Jun 14, 2016 at 1:10 PM Pierre Lecomte <pierre.leco...@gadz.org>
> 
> wrote:
> > Hello,
> > I'm having some trouble with pattern matching and variable type :
> > 
> > // Let's say I've a slider which I wish output Integer values :
> > slider=int(hslider("",1,1,3,1));
> > 
> > // Now my pattern matching rule in a right order (specific rules first,
> > general
> > rule last)
> > f(1)= 1;
> > f(2)= 7;
> > f(3) = 2.25;
> > f(x) = 0;
> > 
> > f(2) for example, I get 7, as expected. However, when I call f(slider), I
> > always get 0, as if the output of the slider is not and integer which
> > could
> > match my pattern matching rules..
> > 
> > I think I miss something... any help ??
> > 
> > Pierre
> > 
> > 
> > --------------------------------------------------------------------------
> > ---- What NetFlow Analyzer can do for you? Monitors network bandwidth and
> > traffic
> > patterns at an interface-level. Reveals which users, apps, and protocols
> > are
> > consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> > J-Flow, sFlow and other flows. Make informed decisions using capacity
> > planning
> > reports.
> > http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
> > _______________________________________________
> > Faudiostream-users mailing list
> > Faudiostream-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/faudiostream-users


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
_______________________________________________
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to