<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<span class="Apple-style-span" style="font-family: 'Segoe UI', Tahoma, Verdana, Arial, sans-serif; color: rgb(42, 42, 42); "><span class="ecxApple-style-span" style="line-height: 17px; font-family: 'Segoe UI', Tahoma, Verdana, Arial, sans-serif; color: rgb(42, 42, 42); font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">Hi guys</font></span><div style="line-height: 17px; "><span class="ecxApple-style-span" style="line-height: 17px; font-family: 'Segoe UI', Tahoma, Verdana, Arial, sans-serif; color: rgb(42, 42, 42); "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; "></font><div style="line-height: 17px; font-family: Tahoma; ">(sorry that i sent this same email to the chuck list and not the chuck-users)</div><div style="line-height: 17px; font-family: Tahoma; ">Im just getting started this week in chuck. Been reading the documentation and following the examples, but im stuck with trying to start an envelope that contours the filter frequency just when i hit any key. I have this patch (below) that (supposedly) contours the filter and the oscilator at the same time, but i dont get what is wrong cause it is not working. It seems as if the envelope is sliding but it is not being updated when the amplitude envelope is on. </div><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; ">Im sorry if this is too obvious but have not found a way to do it. </div><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; ">Thanks</div><div style="line-height: 17px; font-family: Tahoma; font-size: 10pt; "><br style="line-height: 17px; "></div><div style="line-height: 17px; font-size: 10pt; "><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">Hid entrada; </font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">HidMsg mensaje;</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">0 => int device; </font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">if( !entrada.openKeyboard( device ) ) me.exit();</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; "><br style="line-height: 17px; "></font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">//El patch</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">SawOsc o1 => LPF f=> Envelope e1 => dac;</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">Step stp => Envelope e => blackhole;</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; "><br style="line-height: 17px; "></font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">1 => stp.next;</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">400 => e.value;</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">800 => e.target;</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">2 => e.time;</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">o1.gain (.2);</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">0.020 => e1.time;</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">o1.freq(200);</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; "><br style="line-height: 17px; "></font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">while (true){</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">entrada => now;</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">e.last()+200=> o1.freq;</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">e.last()+200=> f.freq;</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">while( entrada.recv( mensaje ) ) //cuando 'entrada' reciba un 'mensaje'</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">{</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">if( mensaje.isButtonDown() )</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">{</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">1=>e1.keyOn; </font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">1=>e.keyOn;</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">}</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">if(mensaje.isButtonUp())</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">{</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">0=> e.keyOn;</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">0 => e1.keyOn; </font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">}</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">}</font></div><div style="line-height: 17px; "><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; ">}</font></div><div><font class="ecxApple-style-span" face="Tahoma" size="2" style="line-height: normal; "><br></font></div></div></span></div></span>                                      </body>
</html>