<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div>
<meta content="text/html; charset=us-ascii">
</div>
<div dir="auto" style="color:rgb(33,33,33); background-color:rgb(255,255,255); text-align:left">
I didn't realize there were other Michael's LOL, to answer just the editor question: Visual Studio has a ChucK extension. That paired with the "revert save" option under the file tab works pretty well!</div>
<div id="ms-outlook-mobile-signature" dir="auto" style="text-align: left;">
<div><br>
</div>
Best regards,<br>
<br>
Michael Pierluissi</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> chuck-users-bounces@lists.cs.princeton.edu <chuck-users-bounces@lists.cs.princeton.edu> on behalf of herman verbaeten <hverb54@hotmail.com><br>
<b>Sent:</b> Thursday, February 6, 2020 11:41:29 AM<br>
<b>To:</b> ChucK Users Mailing List <chuck-users@lists.cs.princeton.edu><br>
<b>Subject:</b> Re: [chuck-users] Create a pause and gradualy shift pan from left to right and back</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello Michael,</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thanks a lot for your help. I don't know if i can reply to you with other questions or if i should use "chuck-users@lists.cs.princeton.edu". <br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
In the meantime i found a solution for my "pause" problem in the use of ADSR. But i still have some general questions and some about the program that follows:</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<ol>
<li>Where can i find a chuck editor with the possibility to find words and replace them (all) and that also gives the colors for reserved words etc.</li><li>Is there a way to debug line per line to discover logical errors?<br>
</li><li> i discovered by accident that sometimes i can use "p.puf" but on other occasions i have to write "p.buf()" why is this?</li><li>in the program hereby, is there a way to have the pan do it's job independantely from the note-envelope-flow? to go faster or slower?</li><li>When i run this program it does what i want but i can't figure out why it says 2 times "p.pan = 1.000000" and 2 times "p.pan= -1.000000" (see below)</li></ol>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Please let me know if i have to address all my questions to the general email address. thanks a lot !!</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Herman </div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="color:rgb(111,192,64)">// sound file</span><span><br>
</span>
<div>me.sourceDir() + "wavefile.wav" => string filename;<br>
</div>
<div>if( me.args() ) me.arg(0) => filename;<br>
</div>
<div><<<me.sourceDir()>>>;<br>
</div>
<div><br>
</div>
<div><span style="color:rgb(111,192,64)">// the patch </span><br>
</div>
<div>SndBuf buf => ADSR e => Pan2 p => dac;<br>
</div>
<div><br>
</div>
<div><span style="color:rgb(111,192,64)">// set attack time, decay time, release time and pause time </span><br>
</div>
<div>dur attack; dur decay ; dur release; dur pauze;<br>
</div>
<div>12::ms => attack ; 90::ms => decay ; 100::ms => release ; 5::ms => pauze ;<br>
</div>
<div><br>
</div>
<div><span style="color:rgb(111,192,64)">// load file in buf</span><br>
</div>
<div>filename => buf.read;<br>
</div>
<div><br>
</div>
<div><span style="color:rgb(111,192,64)">// set gain</span><br>
</div>
<div>.5 => buf.gain;<br>
</div>
<div><br>
</div>
<div><span style="color:rgb(111,192,64)">// set a, d, s and r</span><br>
</div>
<div>e.set( attack, decay, 0.001, release );<br>
</div>
<div><br>
</div>
<div><span style="color:rgb(111,192,64)">// switch is needed to stay in the "else" step untill p.pan = -1</span><br>
</div>
<div>0 => int switch;<br>
</div>
<div><br>
</div>
<div><span style="color:rgb(111,192,64)">// begin pan extreme left</span><br>
</div>
<div>-1 => p.pan;<br>
</div>
<div><br>
</div>
<div><span style="color:rgb(111,192,64)">// time loop</span><br>
</div>
<div>while( true )<br>
</div>
<div>{ </div>
<div> Math.random2(0,900000) => buf.pos;<br>
</div>
<div> Math.random2f(1.0,1.2) => buf.rate; <br>
</div>
<div> if( p.pan() < 1.0 && switch == 0)<br>
</div>
<div> {<br>
</div>
<div> p.pan() + .10 => p.pan;<br>
</div>
<div> <<<"if p.pan = ",p.pan()>>>;<br>
</div>
<div> }<br>
</div>
<div> else<br>
</div>
<div> {<br>
</div>
<div> p.pan() - .10 => p.pan;<br>
</div>
<div> <<<"else p.pan = ", p.pan()>>>;<br>
</div>
<div> 1 => switch;<br>
</div>
<div> if (p.pan() == -1)<br>
</div>
<div> {<br>
</div>
<div> 0 => switch;<br>
</div>
<div> } <br>
</div>
<div> } <br>
</div>
<div> <span style="color:rgb(111,192,64)"> // key on - start attack</span><br>
</div>
<div> e.keyOn(); <br>
</div>
<div> attack + decay => dur ontime; <br>
</div>
<div> ontime => now;<br>
</div>
<div> <br>
</div>
<div><span style="color:rgb(111,192,64)"> // key off - start release</span><br>
</div>
<div> e.keyOff();<br>
</div>
<div> <br>
</div>
<div> <span style="color:rgb(111,192,64)"> // advance time by releasetime + pausetime</span><br>
</div>
<div> release + pauze => now; </div>
<span>}</span><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
---------------------------------------------------------console result print----------------------------------------------------</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
if p.pan = -0.900000
<p></p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.800000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.700000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.600000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.500000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.400000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.300000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.200000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.100000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.000000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = 0.100000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = 0.200000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = 0.300000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = 0.400000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = 0.500000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = 0.600000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = 0.700000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = 0.800000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = 0.900000 </p>
<p style="margin-top:0px; margin-bottom:0px"><span style="color:rgb(237,92,87)">if p.pan = 1.000000
</span></p>
<p style="margin-top:0px; margin-bottom:0px"><span style="color:rgb(237,92,87)">if p.pan = 1.000000</span>
</p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = 0.900000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = 0.800000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = 0.700000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = 0.600000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = 0.500000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = 0.400000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = 0.300000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = 0.200000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = 0.100000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = 0.000000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = -0.100000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = -0.200000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = -0.300000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = -0.400000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = -0.500000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = -0.600000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = -0.700000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = -0.800000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = -0.900000 </p>
<p style="margin-top:0px; margin-bottom:0px"><span style="color:rgb(237,92,87)">else p.pan = -1.000000
</span></p>
<p style="margin-top:0px; margin-bottom:0px"><span style="color:rgb(237,92,87)">else p.pan = -1.000000</span>
</p>
if p.pan = -0.900000
<p></p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.800000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.700000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.600000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.500000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.400000 </p>
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div>
<div id="x_appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Van:</b> chuck-users-bounces@lists.cs.princeton.edu <chuck-users-bounces@lists.cs.princeton.edu> namens Michael Heuer <heuermh@gmail.com><br>
<b>Verzonden:</b> woensdag 5 februari 2020 15:42<br>
<b>Aan:</b> ChucK Users Mailing List <chuck-users@lists.cs.princeton.edu><br>
<b>Onderwerp:</b> Re: [chuck-users] Create a pause of e.g. 2 seconds between notes or samples to be played</font>
<div> </div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">Hello Herman,
<div class=""><br class="">
</div>
<div class="">ChucK supports advancing time by chucking a duration to now, e.g.
<div class=""><br class="">
</div>
<div class="">note.play();</div>
<div class="">2::second => now;</div>
<div class="">note.play();</div>
<div class=""><br class="">
</div>
<div class=""><a href="https://github.com/heuermh/lick" class="">LiCK (a Library for ChucK)</a> has a TimeSignature class, which provides static durations</div>
<div class=""><br class="">
</div>
<div class="">TimeSignature.common(120) @=> TimeSignature ts;</div>
<div class=""><br class="">
</div>
<div class="">note.play();</div>
<div class="">ts.q => now;</div>
<div class="">note.play();</div>
<div class=""><br class="">
</div>
<div class="">and those that are dynamic to tempo changes, with anticipation and delay humanization</div>
<div class=""><br class="">
</div>
<div class="">TimeSignature.common(120) @=> TimeSignature ts;</div>
<div class="">ts.quarterProvider() @=> QuarterProvider q;</div>
<div class="">0.1 => q.anticipation;</div>
<div class="">0.0 => q.delay;</div>
<div class=""><br class="">
</div>
<div class="">while (true)</div>
<div class="">{</div>
<div class=""> note.play();</div>
<div class=""> q.get() => now;</div>
<div class=""> ts.tempo() - 1 => ts.tempo;</div>
<div class="">}</div>
<div class=""><br class="">
</div>
<div class="">Cheers!</div>
<div class=""><br class="">
</div>
<div class=""> michael</div>
<div class=""><br class="">
</div>
<div class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Feb 5, 2020, at 9:24 AM, herman verbaeten <<a href="mailto:hverb54@hotmail.com" class="">hverb54@hotmail.com</a>> wrote:</div>
<br class="x_x_Apple-interchange-newline">
<div class="">
<div class="" style="font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
Hi,</div>
<div class="" style="font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<br class="">
</div>
<div class="" style="font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
I've only recentely started studiing ChucK and i'm looking for an easy way to integrate a pause between notes to be played in a "while()" loop. Could someone tell me in what direction to look for a solution? thanks in advance!</div>
<div class="" style="font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<br class="">
</div>
<div class="" style="font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
Herman</div>
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">_______________________________________________</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">chuck-users
mailing list</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<a href="mailto:chuck-users@lists.cs.princeton.edu" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">chuck-users@lists.cs.princeton.edu</a><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> chuck-users-bounces@lists.cs.princeton.edu <chuck-users-bounces@lists.cs.princeton.edu> on behalf of herman verbaeten <hverb54@hotmail.com><br>
<b>Sent:</b> Thursday, February 6, 2020 11:41:29 AM<br>
<b>To:</b> ChucK Users Mailing List <chuck-users@lists.cs.princeton.edu><br>
<b>Subject:</b> Re: [chuck-users] Create a pause and gradualy shift pan from left to right and back</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello Michael,</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thanks a lot for your help. I don't know if i can reply to you with other questions or if i should use "chuck-users@lists.cs.princeton.edu". <br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
In the meantime i found a solution for my "pause" problem in the use of ADSR. But i still have some general questions and some about the program that follows:</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<ol>
<li>Where can i find a chuck editor with the possibility to find words and replace them (all) and that also gives the colors for reserved words etc.</li><li>Is there a way to debug line per line to discover logical errors?<br>
</li><li> i discovered by accident that sometimes i can use "p.puf" but on other occasions i have to write "p.buf()" why is this?</li><li>in the program hereby, is there a way to have the pan do it's job independantely from the note-envelope-flow? to go faster or slower?</li><li>When i run this program it does what i want but i can't figure out why it says 2 times "p.pan = 1.000000" and 2 times "p.pan= -1.000000" (see below)</li></ol>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Please let me know if i have to address all my questions to the general email address. thanks a lot !!</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Herman </div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="color:rgb(111,192,64)">// sound file</span><span><br>
</span>
<div>me.sourceDir() + "wavefile.wav" => string filename;<br>
</div>
<div>if( me.args() ) me.arg(0) => filename;<br>
</div>
<div><<<me.sourceDir()>>>;<br>
</div>
<div><br>
</div>
<div><span style="color:rgb(111,192,64)">// the patch </span><br>
</div>
<div>SndBuf buf => ADSR e => Pan2 p => dac;<br>
</div>
<div><br>
</div>
<div><span style="color:rgb(111,192,64)">// set attack time, decay time, release time and pause time </span><br>
</div>
<div>dur attack; dur decay ; dur release; dur pauze;<br>
</div>
<div>12::ms => attack ; 90::ms => decay ; 100::ms => release ; 5::ms => pauze ;<br>
</div>
<div><br>
</div>
<div><span style="color:rgb(111,192,64)">// load file in buf</span><br>
</div>
<div>filename => buf.read;<br>
</div>
<div><br>
</div>
<div><span style="color:rgb(111,192,64)">// set gain</span><br>
</div>
<div>.5 => buf.gain;<br>
</div>
<div><br>
</div>
<div><span style="color:rgb(111,192,64)">// set a, d, s and r</span><br>
</div>
<div>e.set( attack, decay, 0.001, release );<br>
</div>
<div><br>
</div>
<div><span style="color:rgb(111,192,64)">// switch is needed to stay in the "else" step untill p.pan = -1</span><br>
</div>
<div>0 => int switch;<br>
</div>
<div><br>
</div>
<div><span style="color:rgb(111,192,64)">// begin pan extreme left</span><br>
</div>
<div>-1 => p.pan;<br>
</div>
<div><br>
</div>
<div><span style="color:rgb(111,192,64)">// time loop</span><br>
</div>
<div>while( true )<br>
</div>
<div>{ </div>
<div> Math.random2(0,900000) => buf.pos;<br>
</div>
<div> Math.random2f(1.0,1.2) => buf.rate; <br>
</div>
<div> if( p.pan() < 1.0 && switch == 0)<br>
</div>
<div> {<br>
</div>
<div> p.pan() + .10 => p.pan;<br>
</div>
<div> <<<"if p.pan = ",p.pan()>>>;<br>
</div>
<div> }<br>
</div>
<div> else<br>
</div>
<div> {<br>
</div>
<div> p.pan() - .10 => p.pan;<br>
</div>
<div> <<<"else p.pan = ", p.pan()>>>;<br>
</div>
<div> 1 => switch;<br>
</div>
<div> if (p.pan() == -1)<br>
</div>
<div> {<br>
</div>
<div> 0 => switch;<br>
</div>
<div> } <br>
</div>
<div> } <br>
</div>
<div> <span style="color:rgb(111,192,64)"> // key on - start attack</span><br>
</div>
<div> e.keyOn(); <br>
</div>
<div> attack + decay => dur ontime; <br>
</div>
<div> ontime => now;<br>
</div>
<div> <br>
</div>
<div><span style="color:rgb(111,192,64)"> // key off - start release</span><br>
</div>
<div> e.keyOff();<br>
</div>
<div> <br>
</div>
<div> <span style="color:rgb(111,192,64)"> // advance time by releasetime + pausetime</span><br>
</div>
<div> release + pauze => now; </div>
<span>}</span><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
---------------------------------------------------------console result print----------------------------------------------------</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
if p.pan = -0.900000
<p></p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.800000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.700000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.600000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.500000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.400000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.300000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.200000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.100000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.000000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = 0.100000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = 0.200000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = 0.300000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = 0.400000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = 0.500000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = 0.600000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = 0.700000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = 0.800000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = 0.900000 </p>
<p style="margin-top:0px; margin-bottom:0px"><span style="color:rgb(237,92,87)">if p.pan = 1.000000
</span></p>
<p style="margin-top:0px; margin-bottom:0px"><span style="color:rgb(237,92,87)">if p.pan = 1.000000</span>
</p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = 0.900000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = 0.800000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = 0.700000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = 0.600000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = 0.500000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = 0.400000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = 0.300000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = 0.200000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = 0.100000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = 0.000000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = -0.100000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = -0.200000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = -0.300000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = -0.400000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = -0.500000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = -0.600000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = -0.700000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = -0.800000 </p>
<p style="margin-top:0px; margin-bottom:0px">else p.pan = -0.900000 </p>
<p style="margin-top:0px; margin-bottom:0px"><span style="color:rgb(237,92,87)">else p.pan = -1.000000
</span></p>
<p style="margin-top:0px; margin-bottom:0px"><span style="color:rgb(237,92,87)">else p.pan = -1.000000</span>
</p>
if p.pan = -0.900000
<p></p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.800000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.700000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.600000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.500000 </p>
<p style="margin-top:0px; margin-bottom:0px">if p.pan = -0.400000 </p>
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div>
<div id="x_appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Van:</b> chuck-users-bounces@lists.cs.princeton.edu <chuck-users-bounces@lists.cs.princeton.edu> namens Michael Heuer <heuermh@gmail.com><br>
<b>Verzonden:</b> woensdag 5 februari 2020 15:42<br>
<b>Aan:</b> ChucK Users Mailing List <chuck-users@lists.cs.princeton.edu><br>
<b>Onderwerp:</b> Re: [chuck-users] Create a pause of e.g. 2 seconds between notes or samples to be played</font>
<div> </div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">Hello Herman,
<div class=""><br class="">
</div>
<div class="">ChucK supports advancing time by chucking a duration to now, e.g.
<div class=""><br class="">
</div>
<div class="">note.play();</div>
<div class="">2::second => now;</div>
<div class="">note.play();</div>
<div class=""><br class="">
</div>
<div class=""><a href="https://github.com/heuermh/lick" class="">LiCK (a Library for ChucK)</a> has a TimeSignature class, which provides static durations</div>
<div class=""><br class="">
</div>
<div class="">TimeSignature.common(120) @=> TimeSignature ts;</div>
<div class=""><br class="">
</div>
<div class="">note.play();</div>
<div class="">ts.q => now;</div>
<div class="">note.play();</div>
<div class=""><br class="">
</div>
<div class="">and those that are dynamic to tempo changes, with anticipation and delay humanization</div>
<div class=""><br class="">
</div>
<div class="">TimeSignature.common(120) @=> TimeSignature ts;</div>
<div class="">ts.quarterProvider() @=> QuarterProvider q;</div>
<div class="">0.1 => q.anticipation;</div>
<div class="">0.0 => q.delay;</div>
<div class=""><br class="">
</div>
<div class="">while (true)</div>
<div class="">{</div>
<div class=""> note.play();</div>
<div class=""> q.get() => now;</div>
<div class=""> ts.tempo() - 1 => ts.tempo;</div>
<div class="">}</div>
<div class=""><br class="">
</div>
<div class="">Cheers!</div>
<div class=""><br class="">
</div>
<div class=""> michael</div>
<div class=""><br class="">
</div>
<div class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Feb 5, 2020, at 9:24 AM, herman verbaeten <<a href="mailto:hverb54@hotmail.com" class="">hverb54@hotmail.com</a>> wrote:</div>
<br class="x_x_Apple-interchange-newline">
<div class="">
<div class="" style="font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
Hi,</div>
<div class="" style="font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<br class="">
</div>
<div class="" style="font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
I've only recentely started studiing ChucK and i'm looking for an easy way to integrate a pause between notes to be played in a "while()" loop. Could someone tell me in what direction to look for a solution? thanks in advance!</div>
<div class="" style="font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<br class="">
</div>
<div class="" style="font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
Herman</div>
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">_______________________________________________</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">chuck-users
mailing list</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<a href="mailto:chuck-users@lists.cs.princeton.edu" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">chuck-users@lists.cs.princeton.edu</a><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div>
</div>
</body>
</html>