<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi,<br>
<br>
'while' continuously evaluates the condition in () parenthesis
(that in your case is 20::ms => now, a "pause"), and if that's
true then executes the code in between {}.<br>
<br>
That is the equivalent of having<br>
<br>
<br>
while(true)<br>
<br>
{<br>
<br>
your code;<br>
<br>
20::ms => now;<br>
<br>
}</p>
<p><br>
Cheers,<br>
<br>
Mario</p>
<p><br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 22/02/2020 09:37, herman verbaeten
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:AM0PR08MB3890BB677A4579DC93CA65ACA5EE0@AM0PR08MB3890.eurprd08.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<pre style="line-height: 1.5em; border: 0px solid rgb(0, 0, 0); margin-left: 0.5em; margin-bottom: 20px; margin-right: 1em; padding: 0.2em 1em; word-wrap: break-word;"><span style="white-space: normal; background-color: rgba(255, 255, 255, 0); font-family: UICTFontTextStyleTallBody;">Hi,</span></pre>
<pre style="line-height: 1.5em; border: 0px solid rgb(0, 0, 0); margin-left: 0.5em; margin-bottom: 20px; margin-right: 1em; padding: 0.2em 1em; word-wrap: break-word;"><span style="white-space: normal; background-color: rgba(255, 255, 255, 0); font-family: UICTFontTextStyleTallBody;"> In the flossmanuals i found this exemple of modulation of the freq of a SinOsc.</span></pre>
<pre style="line-height: 1.5em; border: 0px solid rgb(0, 0, 0); margin-left: 0.5em; margin-bottom: 20px; margin-right: 1em; padding: 0.2em 1em; word-wrap: break-word;"><font face="UICTFontTextStyleTallBody"><span style="white-space: normal;">Normally in the while() loop, between the brackets is the condition to keep the loop running. In the example it is a time. Complete confusion! </span></font></pre>
<pre style="line-height: 1.5em; border: 0px solid rgb(0, 0, 0); margin-left: 0.5em; margin-bottom: 20px; margin-right: 1em; padding: 0.2em 1em; word-wrap: break-word;"><font face="UICTFontTextStyleTallBody"><span style="white-space: normal;">Kind regards </span></font></pre>
<pre style="line-height: 1.5em; border: 0px solid rgb(0, 0, 0); margin-left: 0.5em; margin-bottom: 20px; margin-right: 1em; padding: 0.2em 1em; word-wrap: break-word;"><font face="UICTFontTextStyleTallBody"><span style="white-space: normal;">Herman</span></font></pre>
<pre style="line-height: 1.5em; border: 0px solid rgb(0, 0, 0); margin-left: 0.5em; margin-bottom: 20px; margin-right: 1em; padding: 0.2em 1em; word-wrap: break-word;"><font face="UICTFontTextStyleTallBody"><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);">
</span></font></pre>
<pre style="line-height: 1.5em; border: 0px solid rgb(0, 0, 0); margin-left: 0.5em; margin-bottom: 20px; margin-right: 1em; padding: 0.2em 1em; word-wrap: break-word;"><font face="UICTFontTextStyleTallBody"><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);">SinOsc s => dac; </span></font></pre>
<pre style="line-height: 1.5em; border: 0px solid rgb(0, 0, 0); margin-left: 0.5em; margin-bottom: 20px; margin-right: 1em; padding: 0.2em 1em; word-wrap: break-word;"><font face="UICTFontTextStyleTallBody"><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);">SinOsc lfo; </span></font></pre>
<pre style="line-height: 1.5em; border: 0px solid rgb(0, 0, 0); margin-left: 0.5em; margin-bottom: 20px; margin-right: 1em; padding: 0.2em 1em; word-wrap: break-word;"><font face="UICTFontTextStyleTallBody"><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);">5 => lfo.freq; </span></font></pre>
<pre style="line-height: 1.5em; border: 0px solid rgb(0, 0, 0); margin-left: 0.5em; margin-bottom: 20px; margin-right: 1em; padding: 0.2em 1em; word-wrap: break-word;"><font face="UICTFontTextStyleTallBody"><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);">while (20::ms => now) </span></font></pre>
<pre style="line-height: 1.5em; border: 0px solid rgb(0, 0, 0); margin-left: 0.5em; margin-bottom: 20px; margin-right: 1em; padding: 0.2em 1em; word-wrap: break-word;"><font face="UICTFontTextStyleTallBody"><span style="white-space: normal; background-color: rgba(255, 255, 255, 0);">{
( lfo.last() * 10 ) + 440 => s.freq;
}</span></font></pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
chuck-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a>
<a class="moz-txt-link-freetext" href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
electronic musician, sound artist, creative coder, QA engineer
<a class="moz-txt-link-freetext" href="https://vimeo.com/creativecodingsalerno">https://vimeo.com/creativecodingsalerno</a>
<a class="moz-txt-link-freetext" href="http://mbuoninfante.tumblr.com/">http://mbuoninfante.tumblr.com/</a>
<a class="moz-txt-link-freetext" href="https://github.com/mariobuoninfante">https://github.com/mariobuoninfante</a>
<a class="moz-txt-link-freetext" href="https://bitbucket.org/mariobuoninfante/">https://bitbucket.org/mariobuoninfante/</a></pre>
</body>
</html>