Hi Simon, Is this what you meant?
// crossfade between multiple inputs (just the gain) xfadeSelector(sel,nr) = (((sel<=nr)*((sel-nr)+1):max(0)) + ((sel>nr)*((nr-sel)+1):max(0)) ); srces = 3; position =hslider("position", 0, 0, srces , 0.1); process = par(i, srces, xfadeSelector(position,i)*_); Cheers, Bart. On Wed, Apr 13, 2016 at 07:22:04PM +0200, Simon Staudenmayer wrote: >Hello Hermann, > >Thanks for the feedback, very interesting solution. >I deliberately didn't want to use select2 or select3, since I need a more >generic selector, which can choose also from a lot more sources. Isn't there a >way to create a single number instead of a signal in Faust? > >Regards >Simon >------------------------------------------------------------------------------ >Find and fix application performance issues faster with Applications Manager >Applications Manager provides deep performance insights into multiple tiers of >your business applications. It resolves application problems quickly and >reduces your MTTR. Get your free trial! >https://ad.doubleclick.net/ddm/clk/302982198;130105516;z >_______________________________________________ >Faudiostream-users mailing list >Faudiostream-users@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/faudiostream-users ------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z _______________________________________________ Faudiostream-users mailing list Faudiostream-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/faudiostream-users