Hi all, Any news on this? I'm having the same problem here, and would really love to have an unsafe select that would compute only the selected stream and "pause" the others.
On Wed, Jan 9, 2013 at 8:43 AM, Albert Graef <[email protected]> wrote: > On 01/09/2013 05:21 AM, Mayank Sanganeria wrote: >> In select2, if the case that is not being computed is stateless, then >> Faust automatically would block the computation from happening. However, >> if it has any amount of state, it would do the computations continuously >> for seamless switching between the two cases. > > I think that this is exactly the problem here. IIRC the program involved > a lowpass filter which will require state and thus Faust won't be able > to optimize away the unused select2 branch by translating the select to > a standard C conditional expression. > > We've discussed this problem before, and while there was some talk about > having an "unsafe" select2 version which would apply the optimization in > any case, I think that Yann doesn't like the idea since it breaks the > formal semantics of Faust. > > So the only way to make this actually work right now apparently is to > break out the different signal paths involving state into separate Faust > programs and write some plugin wrapper code in C++ to switch between > these and maybe do the appropriate amount of cross fading for smooth > transitions. Yes, that's rather inconvenient and involves manual coding > in C/C++. :( > > I think that this should in pinciple be solvable in the Faust code > generator in a clean way, but it will require a new primitive which can > cross fade between several signal functions. This might be difficult to > implement, but it's certainly doable. > > Albert > > -- > Dr. Albert Gr"af > Dept. of Music-Informatics, University of Mainz, Germany > Email: [email protected], [email protected] > WWW: http://www.musikinformatik.uni-mainz.de/ag > > ------------------------------------------------------------------------------ > Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery > and much more. Keep your Java skills current with LearnJavaNow - > 200+ hours of step-by-step video tutorials by Java experts. > SALE $49.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122612 > _______________________________________________ > Faudiostream-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/faudiostream-users -- /Jonatan http://kymatica.com ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr _______________________________________________ Faudiostream-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/faudiostream-users
