Hi, I'm trying to run multiple .ck files sequentially. Specifically I have a 'master' file that loads all the 'child' files via Machine.add. But then of course they run concurrently. For now I'm just advancing time in the master file before every Machine.add statement (ugly...). Is there a way to accomplish this nicely? Thanks! Gonzalo PS: This is my first message to this list. I'm working on a project with Chuck that raises *a lot* of questions, so I'll probably be coming back here often. :)
Hi Gonzalo,
2014-04-22 4:04 GMT+03:00 Gonzalo
Hi,
I'm trying to run multiple .ck files sequentially. Specifically I have a 'master' file that loads all the 'child' files via Machine.add. But then of course they run concurrently. For now I'm just advancing time in the master file before every Machine.add statement (ugly...). Is there a way to accomplish this nicely?
You should read about Event class in ChucK language specification. Solution is simple but not ideal in some situations.
PS: This is my first message to this list.
Welcome on the ChucK board!
I'm working on a project with Chuck that raises *a lot* of questions, so I'll probably be coming back here often. :)
What a coincidence - me too ;) Antanas
You could try starting each script on its own in a shell script or - if
you're on windows - a .bat script:
chuck file1.ck
chuck file2.ck
...
On Tue, Apr 22, 2014 at 3:04 AM, Gonzalo
Hi,
I'm trying to run multiple .ck files sequentially. Specifically I have a 'master' file that loads all the 'child' files via Machine.add. But then of course they run concurrently. For now I'm just advancing time in the master file before every Machine.add statement (ugly...). Is there a way to accomplish this nicely?
Thanks! Gonzalo
PS: This is my first message to this list. I'm working on a project with Chuck that raises *a lot* of questions, so I'll probably be coming back here often. :) _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Release me, insect, or I will destroy the Cosmos!
Starting a new chuck process would add a random delay, I don't think that
is acceptable in a musical context.
2014-04-22 7:57 GMT+02:00 Stefan Blixt
You could try starting each script on its own in a shell script or - if you're on windows - a .bat script:
chuck file1.ck chuck file2.ck ...
On Tue, Apr 22, 2014 at 3:04 AM, Gonzalo
wrote: Hi,
I'm trying to run multiple .ck files sequentially. Specifically I have a 'master' file that loads all the 'child' files via Machine.add. But then of course they run concurrently. For now I'm just advancing time in the master file before every Machine.add statement (ugly...). Is there a way to accomplish this nicely?
Thanks! Gonzalo
PS: This is my first message to this list. I'm working on a project with Chuck that raises *a lot* of questions, so I'll probably be coming back here often. :) _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Release me, insect, or I will destroy the Cosmos!
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
Sure, but Machine.add ought to take some time to access the file system and
compile too. Anyway, I second the approach using Events, I made the script
suggestion since it feels like an easier approach.
On Tue, Apr 22, 2014 at 10:07 AM, Szilveszter Tóth wrote: Starting a new chuck process would add a random delay, I don't think that
is acceptable in a musical context. 2014-04-22 7:57 GMT+02:00 Stefan Blixt You could try starting each script on its own in a shell script or - if you're on windows - a .bat script: chuck file1.ck
chuck file2.ck
... On Tue, Apr 22, 2014 at 3:04 AM, Gonzalo Hi, I'm trying to run multiple .ck files sequentially. Specifically I have a
'master' file that loads all the 'child' files via Machine.add. But then of
course they run concurrently. For now I'm just advancing time in the master
file before every Machine.add statement (ugly...). Is there a way to
accomplish this nicely? Thanks!
Gonzalo PS: This is my first message to this list. I'm working on a project with
Chuck that raises *a lot* of questions, so I'll probably be coming back
here often. :)
_______________________________________________
chuck-users mailing list
chuck-users@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users --
Release me, insect, or I will destroy the Cosmos! _______________________________________________
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 --
Release me, insect, or I will destroy the Cosmos!
Delays won't be a problem in this case, this is a test framework, and I just want to be able to run all tests at once. But I'd like to avoid the shell script situation. Every test needs to load some stuff first, so it wouldn't be just calling the scripts one after the other. I'll try the Event route, but I'm going to have to structure a bit better my test framework. :) Thanks guys! Off-topic: am I replying to the list correctly? Let me know otherwise, I'm also new to mailing lists, and I don't want to mess things up. On 22/04/2014 6:24 pm, Stefan Blixt wrote:
Sure, but Machine.add ought to take some time to access the file system and compile too. Anyway, I second the approach using Events, I made the script suggestion since it feels like an easier approach.
On Tue, Apr 22, 2014 at 10:07 AM, Szilveszter Tóth
mailto:silvestre.toth@gmail.com> wrote: Starting a new chuck process would add a random delay, I don't think that is acceptable in a musical context.
2014-04-22 7:57 GMT+02:00 Stefan Blixt
mailto:stefan.blixt@gmail.com>: You could try starting each script on its own in a shell script or - if you're on windows - a .bat script:
chuck file1.ck http://file1.ck chuck file2.ck http://file2.ck ...
On Tue, Apr 22, 2014 at 3:04 AM, Gonzalo
mailto:gonzalo@dense13.com> wrote: Hi,
I'm trying to run multiple .ck files sequentially. Specifically I have a 'master' file that loads all the 'child' files via Machine.add. But then of course they run concurrently. For now I'm just advancing time in the master file before every Machine.add statement (ugly...). Is there a way to accomplish this nicely?
Thanks! Gonzalo
PS: This is my first message to this list. I'm working on a project with Chuck that raises *a lot* of questions, so I'll probably be coming back here often. :) _________________________________________________ chuck-users mailing list chuck-users@lists.cs.__princeton.edu mailto:chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.__edu/mailman/listinfo/chuck-__users https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Release me, insect, or I will destroy the Cosmos!
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu mailto: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 mailto:chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Release me, insect, or I will destroy the Cosmos!
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
Just wanted to thank you guys again for the suggestions. I ended up using events, works very nicely, and as a side effect the whole testing framework is a bit more organized. :) On 22/04/2014 6:43 pm, Gonzalo wrote:
Delays won't be a problem in this case, this is a test framework, and I just want to be able to run all tests at once. But I'd like to avoid the shell script situation. Every test needs to load some stuff first, so it wouldn't be just calling the scripts one after the other. I'll try the Event route, but I'm going to have to structure a bit better my test framework. :)
Thanks guys!
Off-topic: am I replying to the list correctly? Let me know otherwise, I'm also new to mailing lists, and I don't want to mess things up.
On 22/04/2014 6:24 pm, Stefan Blixt wrote:
Sure, but Machine.add ought to take some time to access the file system and compile too. Anyway, I second the approach using Events, I made the script suggestion since it feels like an easier approach.
On Tue, Apr 22, 2014 at 10:07 AM, Szilveszter Tóth
mailto:silvestre.toth@gmail.com> wrote: Starting a new chuck process would add a random delay, I don't think that is acceptable in a musical context.
2014-04-22 7:57 GMT+02:00 Stefan Blixt
mailto:stefan.blixt@gmail.com>: You could try starting each script on its own in a shell script or - if you're on windows - a .bat script:
chuck file1.ck http://file1.ck chuck file2.ck http://file2.ck ...
On Tue, Apr 22, 2014 at 3:04 AM, Gonzalo
mailto:gonzalo@dense13.com> wrote: Hi,
I'm trying to run multiple .ck files sequentially. Specifically I have a 'master' file that loads all the 'child' files via Machine.add. But then of course they run concurrently. For now I'm just advancing time in the master file before every Machine.add statement (ugly...). Is there a way to accomplish this nicely?
Thanks! Gonzalo
PS: This is my first message to this list. I'm working on a project with Chuck that raises *a lot* of questions, so I'll probably be coming back here often. :) _________________________________________________ chuck-users mailing list chuck-users@lists.cs.__princeton.edu mailto:chuck-users@lists.cs.princeton.edu
https://lists.cs.princeton.__edu/mailman/listinfo/chuck-__users https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Release me, insect, or I will destroy the Cosmos!
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu mailto: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 mailto:chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Release me, insect, or I will destroy the Cosmos!
_______________________________________________ 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
Hi, Gonzalo,
2014-05-06 18:07 GMT+03:00 Gonzalo
Just wanted to thank you guys again for the suggestions. I ended up using events, works very nicely, and as a side effect the whole testing framework is a bit more organized. :)
Nice to hear:)
On 22/04/2014 6:43 pm, Gonzalo wrote: <...>
Off-topic: am I replying to the list correctly? Let me know otherwise, I'm also new to mailing lists, and I don't want to mess things up.
It's OK. Most lists prefer bottom-posting rather than top-posting [*]. 'Chuck-users' seems are not very strict concerning this rule;) Antanas [*] http://en.wikipedia.org/wiki/Posting_style
participants (4)
-
Antanas Budriūnas
-
Gonzalo
-
Stefan Blixt
-
Szilveszter Tóth