[chuck-users] Autoreload in on-the-fly-programming
Federico Lopez
jardincosmico at gmail.com
Sun Jul 6 11:10:49 EDT 2014
Hi Carsten, there is a dirty way to do it.
You can make some kind of looper that machine.add yourFile.ck and after,
say a bar, remove yourFile.ck, so, if you make some changes in yourFile.ck
and save, you will have the saved file in the next bar.
Example:
// ----
// looper.ck
// ----
// define your tempo
0.25::second => dur beat;
0 => int count;
while( true )
{
count % 8 => int patt;
if( patt == 0 )
{
Machine.add(me.dir()+"/yourFile.ck") => int yourFileID;;
8 * beat => now;
Machine.remove(yourFileID);
}
count++;
}
// -- end
in terminal
$ chuck looper.ck
You can create a BPM class to keep the things of yourFile.ck in tempo with
the looper.
best regards,
Federico Lopez
On Wed, Jul 2, 2014 at 1:24 PM, Carsten Høyer <carstenhoyer.com at gmail.com>
wrote:
> Hi
> Completely new Chuck user. Can I do on the fly editing without using
> --replace? So that the programming will auto reload on save?
>
> Thanks
> Carsten
>
> _______________________________________________
> 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/20140706/0a33d479/attachment.html>
More information about the chuck-users
mailing list