[chuck-users] Autoreload in on-the-fly-programming
henrique matias
hems.inlet at gmail.com
Mon Aug 4 11:34:59 EDT 2014
nice hack!
quantization is probably what you want anyway!
On 6 July 2014 16:10, Federico Lopez <jardincosmico at gmail.com> wrote:
> 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
>>
>>
>
> _______________________________________________
> 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/20140804/9eb6cc8e/attachment.html>
More information about the chuck-users
mailing list