<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. I was trying to develop a program to create glissons or short particles with a moving frequency range. I came up with an approach but I think there may be an easier way. Here is the program:<br><br>SinOsc sin => dac;<br>Envelope env => blackhole; <br>500.0 => sin.freq => float x; //starting frequency<br>100::ms => dur rampTime; //ramp time period<br>0 => env.value; //starting value<br>rampTime => env.duration;<br>400.0 => env.target; //ramp to target - in this case, 900 Hz<br>now + rampTime => time t;<br>while( now < t )<br>{<br> // modulate frequency by envelope<br> x+env.value() => sin.freq;<br> // advance time by 100 samples<br> 100::samp => now;<br>}<br><br>I think there may be an easier way of doing this using:<br><br>Envelope env => SinOsc sin => dac;<br><br>But I can't seem to get it working using a proper sin.sync value. Does anyone have any ideas on improving the approach?<br><br>Regards,<br>Mitch<br>                                            </div></body>
</html>