<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
Thanks a lot Mario!
<div>Allow me to ask you another &nbsp;question: when using SndBuf, can one address the soundbuffer multiple times independantely and/or at the same time? &nbsp;Like when you want to do chords? I know of the existance of LiSa but there’s &nbsp;no tutorials and it looks very
 complicated.&nbsp;</div>
<div>Thanks in advance for your info.</div>
<div>Kind regards&nbsp;</div>
<div>Herman<br>
<div id="AppleMailSignature" dir="ltr">Verstuurd vanaf mijn iPad</div>
<div dir="ltr"><br>
Op 22 feb. 2020 om 10:58 heeft mario buoninfante &lt;<a href="mailto:mario.buoninfante@gmail.com">mario.buoninfante@gmail.com</a>&gt; het volgende geschreven:<br>
<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<p>Hi,<br>
<br>
'while' continuously evaluates the condition in () parenthesis (that in your case is 20::ms =&gt; now, a &quot;pause&quot;), 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>
&nbsp;&nbsp;&nbsp; your code;<br>
<br>
&nbsp;&nbsp;&nbsp; 20::ms =&gt; 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">
<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;">&nbsp;In the flossmanuals i found this exemple &nbsp;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!&nbsp;</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&nbsp;</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 =&gt; dac;&nbsp;</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;&nbsp;</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 =&gt; lfo.freq;&nbsp;</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 =&gt; now)&nbsp;</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 ) &#43; 440 =&gt; 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>
</div>
</blockquote>
<blockquote type="cite">
<div dir="ltr"><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>
</div>
</body>
</html>