<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi list,<br><br>I am a relatively new user and am enjoying exploring different areas of ChucK.&nbsp; I was trying to develop a program to create glissons or short particles with a moving frequency range.&nbsp; I came up with an approach but I think there may be an easier way.&nbsp; Here is the program:<br><br>SinOsc sin =&gt; dac;<br>Envelope env =&gt; blackhole; <br>500.0 =&gt; sin.freq =&gt; float x;&nbsp; //starting frequency<br>100::ms =&gt; dur rampTime;&nbsp; //ramp time period<br>0 =&gt; env.value;&nbsp; //starting value<br>rampTime =&gt; env.duration;<br>400.0 =&gt; env.target;&nbsp; //ramp to target - in this case, 900 Hz<br>now + rampTime =&gt; time t;<br>while( now &lt; t )<br>{<br>&nbsp;&nbsp;&nbsp; // modulate frequency by envelope<br>&nbsp;&nbsp;&nbsp; x+env.value() =&gt; sin.freq;<br>&nbsp;&nbsp;&nbsp; // advance time by 100 samples<br>&nbsp;&nbsp;&nbsp; 100::samp =&gt; now;<br>}<br><br>I think there may be an easier way of doing this using:<br><br>Envelope env =&gt; SinOsc sin =&gt; dac;<br><br>But I can't seem to get it working using a proper sin.sync value.&nbsp; Does anyone have any ideas on improving the approach?<br><br>Regards,<br>Mitch<br>                                               </div></body>
</html>