[chuck-users] LiSa looping issue

Matt Bard mattthestrat at hotmail.com
Tue Apr 24 19:39:03 EDT 2012


Kas,

So, I went ahead and updated to 1.2.1.3 last night.  I noticed the error with .loopRec is gone.  However, my issue persists.  Apparently I misunderstand something.  Here is a portion of my code:

    if (func == 1) {
        //looper.clear();                //Causes a RT error with Jack
        //0 => looper.loopRec;             //Does nothing
        0 => looper.play;            //Record
        0::ms => looper.recPos;
        <<<"Recording">>>;
        1 => looper.record;
        now => start;
    }
    if (func == 2) {                //Playback Loop Continuously
        0 => looper.record;
        now - start => looper.loopEnd;
        0::ms => looper.playPos;
        <<<"Playing">>>;    
        1 => looper.play;
    }
    if (func == 6) {                //Begin Overdub    
        0.8 => looper.feedback;
        looper.playPos() => looper.recPos;
        1 => looper.record;
    }
    if (func == 7) {                //End Overdub
        0 => looper.record;
    }

Basically, everything works fine so long as I don't overdub.  If I call the first portion then the second, I get a loop.  If I recall the first, it overwrites the original loop and I get another loop... awesome.  ie (sporking some other function):
1 => func;
wait
2 => func;
wait
1 => func;
wait
2 => func;

Now, as soon as I go for the overdub, all is well until I try and start from the beginning.
1 => func;
wait
2=> func;
wait
6=> func;
wait 
7=>func;
wait
1=>func; //Here I end up with things overdubbing again even if I set 0=>looper.loopRec;

It seems that loop recording begins after I set a feedback level (I'm cool with that), but how do I get out of loopRec mode if not with the commented out line?  Also, if I call .clear() or call .duration, I get a realtime error from Jack and it shuts down.  I'm sure I'm missing something.  Could you point me in the right direction?

Much thanks,
Matt

 
> Date: Mon, 23 Apr 2012 20:10:25 +0200
> From: signal.automatique at gmail.com
> To: chuck-users at lists.cs.princeton.edu
> Subject: Re: [chuck-users] LiSa looping issue
> 
> On Mon, Apr 23, 2012 at 02:01:52PM -0400, Matt Bard wrote:
> > 
> Hi, Matt!
> 
> > I'm using Dracula 1.2.0.8
> 
> Then that is most likely the issue; since then there have been quite a
> few updates and especially LiSa has been improved a lot.
> 
> If you are using 1.2.0.8 then I suspect you are on a Debian based
> Linux and using the old package. I would recommend you try building
> ChucK from the latest source. If that would be a new kind of thing to
> do for you then I hope it inspires some confidence to hear that it's
> not as difficult as it might seem and there will be help if you have
> problems.
> 
> Hope that helps, shout if it doesn't.
> 
> Yours,
> Kas.
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20120424/f887ac38/attachment.html>


More information about the chuck-users mailing list