Thanks Mario,
So once you started the VM to run, time floats at the speed of 44100 times a sec. So the "now" can only see things if they'r fed into it at a frequency less or even a 44100 th time of a second.
Does this mean that i can feed anything into the "now"? Or only things that contain a kind of trigger? But in case of a midi message this trigger "min => now" kind of wakes up chuck to do the nex thing on the list? e.g. read the incoming message?
Cheers,
Herman
________________________________
Van: chuck-users-bounces@lists.cs.princeton.edu namens Mario Buoninfante
Verzonden: dinsdag 11 februari 2020 11:07
Aan: ChucK Users Mailing List
Onderwerp: Re: [chuck-users] => now
to be a bit more precise, when you have something like
min => now;
your program waits for a MIDI event in order to advance, but the ChucK time is still running.
Anyway, more info in the link I shared :)
On Tue, 11 Feb 2020 at 11:03, Mario Buoninfante mailto:mario.buoninfante@gmail.com> wrote:
Hi Herman,
You can use Events/MIDI/HID to advance in time.
Have a look at this chapter if you want to know more about it https://en.flossmanuals.net/chuck/_full/#events
In a nutshell what happens is that a MIDI event is received and that turns into a trigger, so your program advances in time. Otherwise it stays there until a MIDI even happens.
See it more as a trigger than a time constant if that makes sense.
Cheers,
Mario
On Tue, 11 Feb 2020 at 10:59, herman verbaeten mailto:hverb54@hotmail.com> wrote:
Hi,
I'm trying to understand what's really happening in chuck.
I thought i did untill i saw some exemples of midi.
Normaly you can only feed time or duration into now ( e.g. 10::ms => now)
But in case you are awaiting a midi-in message you write :
MidiIn min;
while (true)
{
min => now
}
So in fact do you assign the message to time? Total confusion!
Thanks for your answer.
Herman
_______________________________________________
chuck-users mailing list
chuck-users@lists.cs.princeton.edumailto:chuck-users@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users