I was worried I'd end up with s/t like Jordan's solution; can't try Kassen's suggestion till i get home, but it does look a lot cleaner.<div><div><br></div><div>@Jordan If you want a pitch envelope, you can do s/t like this:</div>
<div><br></div><div>Envelope e => Gain g => SinOsc s => dac;</div><div>Step s=> g;</div><div>0 => s.sync; // binds s.freq to input from g</div><div><br></div><div>100 => float minFreq;</div><div>500 => float maxFreq;</div>
<div>minFreq => s.next;</div><div>(maxFreq-minFreq) => e.gain; // noteOn() no longer limited to 0-1 ;)  </div><div>e.noteOn(); </div><div><br></div><div><br></div><div>I learned how to do this last night for a percussion patch i'm working on.  </div>
<div><br><br><div class="gmail_quote">On Fri, Jul 13, 2012 at 3:38 PM, Kassen <span dir="ltr"><<a href="mailto:signal.automatique@gmail.com" target="_blank">signal.automatique@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
With the way I illustrated you should be able to write arbitrarily<br>
large or small values to either .value() or .target().<br>
<br>
It is only when using noteOn() and noteOff() (or whatever they were<br>
called) that it is forced in the 0-1 range, I believe.<br>
<br>
Yours,<br>
<div class="HOEnZb"><div class="h5">Kas.<br>
_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
</div></div></blockquote></div><br></div></div>