So, is this: process(f1,f2,m1,m2) = (os.osc(*(m1)+f1):os.osc(*(m2)+f2:abs)) ~ _;
preferable to this: process(f1,f2,m1,m2) = (os.osc(((_,m1:*),f1):+):os.osc(((_,m2:*),f2):+:abs)) ~ _; or this: process(f1,f2,m1,m2) = ((((_,m1:*),f1):+:os.osc,m2:*),f2:+:abs:os.osc) ~ _; Are fewer parenthesis better? Is infix cleaner than postfix? I certainly appreciate the cleanliness of your code. Sam On May 22, 2020 at 11:46:42 AM, Dario Sanfilippo (sanfilippo.da...@gmail.com) wrote: That's on me for being lazy, Oleg :) I didn't change Sam's code at all and I just moved the ~ at the end :) Dario On Fri, 22 May 2020 at 18:42, Oleg Nesterov <o...@redhat.com> wrote: > Dario, sorry for noise but I simply can't resist... > > On 05/22, Dario Sanfilippo wrote: > > > > process(carFreq, modFreq, modModMult, indexMult) = ( > > ( > > ( > > (_, hslider("modModMult",100,100,1000,1):*), > > hslider("modFreq",100,100,1000,1):+ > > ):os.osc, hslider("carModMult",100,100,1000,1):* > > ) > > , hslider("carFreq",100,100,1000,1):+:os.osc > > ) ~_ , 0.1:*; > > I am wondering how do you manage to understand this code ;) > > I wasn't able until I simplified it to > > m1 = hslider("modModMult",100,100,1000,1); > f1 = hslider("modFreq",100,100,1000,1); > m2 = hslider("carModMult",100,100,1000,1); > f2 = hslider("carFreq",100,100,1000,1); > > process = (osc(m1,f1) : osc(m2,f2)) ~ _ : *(0.1) > with { > osc(m,f) = os.osc(*(m) + f); > }; > > Oleg. > >
_______________________________________________ Faudiostream-users mailing list Faudiostream-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/faudiostream-users