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