Metronome Continued

by Tuğrul Yazar | July 19, 2012 14:00

[GHX:0.8.0066][1] Here is today’s improvement on my metronome with the timer component, which started here. It’s straightforward to tell Grasshopper about seconds and organize it according to it. Using an interval smaller than 1 second, this small script catches every second and returns a different value. However, it’s much harder to implement smaller values than seconds. It seemed easy at first sight but getting accurate results smaller than seconds requires working with milliseconds. You can output the current millisecond’s value, but there is another mechanism needed if I want to tell Grasshopper, say ONLY every 250 milliseconds, a new condition triggers.

Endnotes:
  1. [GHX:0.8.0066]: https://www.designcoding.net/decoder/wp-content/uploads/2012/07/2012_07_19_metronome.ghx

Source URL: https://www.designcoding.net/metronome-continued/