User Guide
Ruby Component
The above example creates a counter that moves in one second steps and continues without end.
Note that, just like for the output method, you can use a connector label instead of an index to identify where you want to send a value to.
Scheduling Methods
You can also schedule method calls using the scheduleMethod method.
scheduleMethod methodName, arg1, arg2, … , time
Where methodName is a string specifying the name of the method, arg1, arg2 etc. is a list of argument values to pass to the method (you
don't have to supply any) and time is the time that you want the method to be called (use the time method to get the time now in seconds
and offset from that)
Clearing Events
Once you send an event it goes onto the events queue and waits until its time comes to be executed.
If you're scheduling events that happen some time in the future sometimes you might want to stop them from happening. You can do this
using the clearEvents method. This will remove all pending events for that particular Ruby component from the events queue.
Clock Accuracy
The schematic clock runs at 100 Hz. Unlike the Tick components which are not time precise due to their use of Windows timers, the Events
system uses a different timer which is much more accurate so each 10 millisecond tick should occur precisely on time.
If you have any of the DirectSound or ASIO primitives in your schematic and these are switched on then the clock will automatically switch to
run in sync with the audio processing. You can then schedule events to occur with sample precise timing within any audio frame.
110 of 212