Thank you, Oleg! That’s solved the problem–wonderful! I knew it would be something simple that I’d missed.
James ________________________________________________ formuls | audiovisual interaction design | www.formuls.co.uk ________________________________________________ > On 2 Oct 2020, at 16:33, Oleg Nesterov <o...@redhat.com> wrote: > > On 10/02, i...@formuls.co.uk wrote: >> >> Hello Faust List, >> >> I’m trying to use a signal to trigger an envelope, in particular Faust's >> dx7envelope. However, I keep encountering an error that states the number of >> inputs does not match the number of outputs. I’m trying the following code: >> >> ADSR = _ : en.dx7envelope(0.01,0.01,0.5,1,1,1,0,0,_); > > See libraries/envelopes.lib, > > dx7envelope(R1,R2,R3,R4,L1,L2,L3,L4,t) = up*on : ba.sAndH(on) : down > with { > on = t>0; > off = t==0; > ... > > so the code above expands to > > ... > on = _ > 0; > off = _ == ; > > and this means 2 inputs. > >> Where the ADSR variable takes a signal input and passes it through to where >> dx7envelope’s trigger variable should be. I’ve also tried: >> >> ADSR(t) = en.dx7envelope(0.01,0.01,0.5,1,1,1,0,0,t); >> >> process = ADSR(_); > > The same. > > Just do > > ADSR = en.dx7envelope(0.01,0.01,0.5,1,1,1,0,0); > process = ADSR; > > Oleg. > _______________________________________________ Faudiostream-users mailing list Faudiostream-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/faudiostream-users