On Tue, Apr 11, 2017 at 6:41 AM, Nicola Bernardini <nicola.bernardini.r...@gmail.com> wrote: > > Dear all, > > I am a real novice so I apologize if this is a well > known/repeated/stupid question. I have been browsing documentation and > googling the web to no avail, so this is my last resource. > > How do you change the block size the faust process is running on? I do not > need to change it dynamically, just to set it up at run time. Here's a snippet > of what I have done: > > ------------------------------------------------------------------------ > ma = library ("math.lib"); > import ("filter_bank.dsp"); > > GUI(x) = hgroup("GUI", > > vgroup("filter_bank_group_0", x), > vgroup("filter_bank_group_1", x), > vgroup("gain", x), > vgroup("output VU", x)); > > process = GUI(filter_bank(_) : vslider("/h:GUI/v:gain/gain", 1, 0, 10, 1) * _) > with { > BS = 262144; > }; > ------------------------------------------------------------------------ > > but this doesn't seem to work (no change perceived). Can someone help? BTW: > something like `ma.BS` will not compile - but maybe it's simply wrong > syntax-wise. > > Thank you! And congratulations to designers and developers: faust is real fun > to work with! > > Nicola
You typically don't, block size is set in Faust architecture file. It is not really the block size but the number of samples current compute() was called with. Might vary depending on how it is called. If you really want to do some sort of block processing, you should use @ operator, rdtable and rwtable functions. Mind you, Faust is not well suited to block processing at the time, it's a stream processing language. -- Radosław Szkodziński ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Faudiostream-users mailing list Faudiostream-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/faudiostream-users