<html><head></head><body bgcolor="#FFFFFF"><div>LiCK has implementations of all the easing interpolations as fuction classes, test here</div><div><br></div><div><a href="https://github.com/heuermh/lick/blob/master/InterpolationTest.ck">https://github.com/heuermh/lick/blob/master/InterpolationTest.ck</a><br><br><div>   michael</div></div><div><br></div><div><br>On Jul 13, 2012, at 2:18 PM, Lars Ullrich <<a href="mailto:mail@larsullrich.de">mail@larsullrich.de</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>what about:<div><br></div><div><br></div><div><div>float lineInterpol(float startValue, float endValue, float percent) {</div><div>        if (startValue == endValue) return startValue;</div><div>        return ((1 - percent) * startValue) + (percent * endValue);</div><div>}</div></div><div><br></div><div><br><div><div>Am 13.07.2012 um 22:21 schrieb George Locke:</div><br class="Apple-interchange-newline"><blockquote type="cite">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>
_______________________________________________<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">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br></blockquote></div><br><div>
<div><div>------------------------------------------------<br>Audio Engineer / Developer<br><br></div><div>Lars Ullrich<br>F:   00 49/  (0) 30 569 70 435<br>H:  00 49/   0172 477 09 77<br><br><a href="http://www.myspace.com/ullrichlars">http://www.l</a><a href="http://arsullrich.de">arsullrich.de</a></div></div>
</div>
<br></div></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>chuck-users mailing list</span><br><span><a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a></span><br><span><a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a></span><br></div></blockquote></body></html>