Ciao Nicola,
>From withing the Faust code, you can know the current block size, but not
control it (well, actually you could, but it is more complicated).
The block-size is controlled by the outside world: actually, it is the
count parameter of the
virtual void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs)
method. It can be changed every time the compute() method is called,
typically under control of the architecture file.
What is you use-case?
Cheers
Yann
-------------------------
Yann Orlarey
Directeur scientifique
www.grame.fr
2017-04-11 6:41 GMT+02:00 Nicola Bernardini <
nicola.bernardini.r...@gmail.com>:
>
> 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
>
> --
> Nicola Bernardini
> Scuola di Musica Elettronica
> Conservatorio S.Cecilia Roma
> e-mail: n.bernard...@conservatoriosantacecilia.it
> http://www.conservatoriosantacecilia.it
> https://nicb.github.io
> GPG fingerprint = 6AE6 AF21 E160 D9B3 396E EBAC 906C CFAE 4D65 D910
> Neither MS-Word nor MS-PowerPoint attachments please.
> Any project can be done quick-cheap-high quality. Pick any two.
>
> ------------------------------------------------------------
> ------------------
> 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
>
------------------------------------------------------------------------------
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