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
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
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@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
nice hack!
quantization is probably what you want anyway!
On 6 July 2014 16:10, Federico Lopez
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
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@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
participants (3)
-
Carsten Høyer
-
Federico Lopez
-
henrique matias