On 10/23/20, Albert Graef wrote:
> It's in the manual:
> https://faust.grame.fr/doc/manual/index.html#definitions-with-pattern-matching.
> These are expanded at compile time. Basically, Faust uses term rewriting as
> its macro engine. The macros are "hygienic", too (
> https://en.wikipedia.org/wik
It's in the manual:
https://faust.grame.fr/doc/manual/index.html#definitions-with-pattern-matching.
These are expanded at compile time. Basically, Faust uses term rewriting as
its macro engine. The macros are "hygienic", too (
https://en.wikipedia.org/wiki/Hygienic_macro).
Albert
On Fri, Oct 23,
That's how the sort comes out when there are no leading spaces in front of
the number creating a fixed field size.
In Faust, I think there is no difference between %03i and %3i. As James
guessed, I was thinking of C's printf format string.
- Julius
On Fri, Oct 23, 2020 at 9:38 AM Brandon Hale
Thanks James. That makes a lot more sense. I saw that in the manual, but
it didn't register for me until you put it more simply. If you replace
the "%03i" with just "%i", it goes from the sliders being laid out from
0-127, to being laid out like:
Slider 0
Slider 1
Slider 10
Slider 100
Slider 1
On 10/23/20, Brandon Hale wrote:
> Thanks Julius! Using i like that makes a lot of sense. I had no idea you
> could substitute it like that.
>
> What does the %03i mean and how does that work?
>
> Brandon Hale
Having just looked this up myself, I can perhaps answer for Julius.
>From https://faust
On 10/23/20, Julius Smith wrote:
> feedback(i) = hslider("feedback %03i",0,0,0.9,0.01);
Not the one who asked, but I had no idea this worked! Amazing.
___
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourcefor
Thanks Julius! Using i like that makes a lot of sense. I had no idea you
could substitute it like that.
What does the %03i mean and how does that work?
Brandon Hale
On 10/23/20 12:00 PM, Julius Smith wrote:
Hi Brandon,
You want to use pattern-matching, something like
feedback(i) = hslider("
Hi Brandon,
You want to use pattern-matching, something like
feedback(i) = hslider("feedback %03i",0,0,0.9,0.01);
echo(i) = +~(de.delay(262144,echoDuration*ma.SR)*feedback(i));
process = _,_ <: par(i,128,echo(i));
Cheers,
Julius
On Fri, Oct 23, 2020 at 8:42 AM Brandon Hale
wrote:
> Hello all,
Hello all,
I just joined the Faust User mailing list, and am excited to be here! I
have a question about programming with Faust.
First off, I am writing a multichannel delay by using the par() function:
import("stdfaust.lib");
echoDuration = hslider("echoDuration",0,0,5,0.01);
feedback = hsli