Alex;<br><br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hmm. The documentation agrees with you: "Lookup can either be done<br>
using the lookup() function, or by driving the table with an input<br>
UGen, typically a Phasor."<br></blockquote><div><br></div><div><br></div><div>That's what I thought I remembered, yes. So; barring bugs let's assume that for now. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
I tried to drive the Gen5 ugen with an envelope, but that didn't seem<br>
to work (or do anything at all).</blockquote><div><br></div><div><br></div><div>Yes, that's right. This is because Envelope internally multiplies its shape with it's input. To get the behaviour you expect you'd write;</div>
<div><br></div><div>Step unity => Envelope e;</div><div>1 => unity.next;</div><div><br></div><div>This is a pattern I use fairly often. "unity" stands for "unity gain". Once you have a Step of that name you can re-use it elsewhere in your code. I find that quite handy.</div>
<div>It's been discussed that perhaps this should be the default behaviour for Envelopes (including ADSR) that don't get a input, I'd be in favour of that and I seem to remember Perry also felt that way.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> I tried a few other variations on<br>
this idea with no result. Maybe this is not what you meant, and what I<br>
am doing is completely silly.<br>
</blockquote></div><div><br></div><div><br></div><div>No, it's close. What you are doing is wave-shaping the enveloped signal and instead you we'd like to wave-shape the envelope, then apply it to the signal. In this case we need a additional vca (Voltage Controlled Amplifier)<br>
</div><div><br></div><div>So;</div><div><br></div><div>Step unity => Envelope e => Gen5 curve => Gain vca; //waveshaped envelope as a control voltage</div><div>Noise my_signal => vca => dac; //signal to be enveloped</div>
<div>1 => unity.next; //unity gain to make the envelope behave</div><div>3 => vca.op; //set the vca to multiply</div><div><br></div><div><br></div><div>//set up your Gen5 here, your envelope, write music, etc.</div>
<div><br></div><div>Aside from the trick with the Step it's all quite standard and straightforward stuff that you'd see in any kind of modular synth, but I can understand that this is a bit tricky if see it for the first time. It should be easier with a updated Envelope and ADSR, I think.</div>
<div><br></div><div>I hope that helps and I hope there aren't too many bugs in it; I didn't try to run any of this ;-)</div><div><br></div><div>Yours,</div><div>Kas.</div>