<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Kas,<div><br></div><div>Thank you for clarifying a few things.  There was a definite fallacy in my loopRec understanding.  Your response cleared that up.</div><div><br></div><div>> > 0 => looper.play; //Record<br>> <br>> Here I am scratching my head; does the combination of the code and<br>> comment imply that you would like "not playing" to equal "recording"? </div><div><br></div><div>That comment made me scratch my head too after looking at it.  I just botched my comment.  Everything is working just as expected there except my commenting ability.<br><br>So, it appears that I do understand what is going on.  My issue then is simply that I cannot call .clear() appropriately (.duration was my backup which also failed).  Hopefully that will get fixed at some point, or maybe I can write a function to clear things out myself to see</div><div>if that works.  Thanks again for all your insight.</div><div><br></div><div>-Matt<br><br><div><div id="SkyDrivePlaceholder"></div>> Date: Wed, 25 Apr 2012 10:41:03 +0200<br>> From: signal.automatique@gmail.com<br>> To: chuck-users@lists.cs.princeton.edu<br>> Subject: Re: [chuck-users] LiSa looping issue<br>> <br>> On Tue, Apr 24, 2012 at 07:39:03PM -0400, Matt Bard wrote:<br>> > Kas,<br>> > <br>> > So, I went ahead and updated to 1.2.1.3 last night.<br>> <br>> Great, congratulations!<br>> <br>> > I noticed the error with  .loopRec is gone. <br>> <br>> Also good, we'll get there :-)<br>> <br>> > However, my issue persists.  Apparently I misunderstand<br>> > something.  Here is a portion of my code:<br>> <br>> Ok, let's have a look.<br>> <br>> > <br>> >     if (func == 1) {<br>> >         //looper.clear();                //Causes a RT error with Jack<br>> <br>> Right, that is simply a ChucK bug then, with some luck Dan Trueman<br>> (LiSa's "father") will have a look at what is wrong there.<br>> <br>> >         //0 => looper.loopRec;             //Does nothing<br>> >         0 => looper.play;            //Record<br>> <br>> Here I am scratching my head; does the combination of the code and<br>> comment imply that you would like "not playing" to equal "recording"?<br>> That would be a interesting way of working, but it's not true. .play<br>> starts and stops playback and .record starts and stops recording.<br>> .loopRec is a bit like .loop, .loop only works when playing and in<br>> that case makes playback loop, while .loopRec only affects recording<br>> and sets whether recording -when it happens- works in a looped<br>> fashion.<br>> <br>> <br>> > It seems that loop recording begins after I set a feedback level (I'm cool with<br>> > that), but how do I get out of loopRec mode if not with the commented out line?<br>> >   Also, if I call .clear() or call .duration, I get a realtime error from Jack<br>> > and it shuts down.  I'm sure I'm missing something.  Could you point me in the<br>> > right direction?<br>> <br>> I think here might be the reasoning error; the "loop" in loopRec <br>> refers to looping in time, not to a signal feedback loop (that may <br>> also exist). loopRec means that as the recording position reaches the<br>> end of the buffer it'll "loop" back to the start.<br>>  <br>> Maybe I am reading you wrong, but so far that seems to be it.<br>>  <br>> >   Also, if I call .clear() or call .duration, I get a realtime error from Jack<br>> > and it shuts down.  I'm sure I'm missing something.  Could you point me in the<br>> > right direction?<br>>  <br>> Well, those two are simply plain bugs; things should not shut down <br>> over simple function calls. .clear() I'm not sure about, I don't think <br>> I ever had to use it, but I really thought .duration was fine. That's <br>> strange.<br>>  <br>> <br>> How far does that get you? Or am I misunderstanding something?<br>> <br>> Yours,<br>> Kas.<br>> _______________________________________________<br>> chuck-users mailing list<br>> chuck-users@lists.cs.princeton.edu<br>> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users<br></div></div>                                     </div></body>
</html>