# Time based project

**URL:** <https://discourse.processing.org/t/time-based-project/37258>\
**Category:** Beginners\
**Created:** [May 31, 2022, 7:00pm UTC](https://discourse.processing.org/t/time-based-project/37258 "2022-05-31T19:00:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![activegenius](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@activegenius](https://discourse.processing.org/u/activegenius)\
**Post date:** [May 31, 2022, 7:00pm UTC](https://discourse.processing.org/t/time-based-project/37258/1 "2022-05-31T19:00:03Z")

</div>

> please format code with \</\> button \* [homework policy](https://discourse.processing.org/faq/#homework) \* [asking questions](https://discourse.processing.org/t/2147)

I am working on a music video project in processing in which I will have a song playing with animations that correspond to the lyrics. I’m wondering what the best way to do a time based sketch would be. For example, I’m looking to have something like at X time, display these lyrics and draw this animation. I was thinking something like an array of time in ms but not sure how best to execute that. Would appreciate any guidance

---

<div class="post-metadata">

**Author:** ![scudly](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/scudly/32/5597_2.png) [@scudly](https://discourse.processing.org/u/scudly)\
**Post date:** [June 1, 2022, 3:44am UTC](https://discourse.processing.org/t/time-based-project/37258/2 "2022-06-01T03:44:47Z")

</div>

Take a look at this thread for some ideas:  
[https://discourse.processing.org/t/is-it-possible-to-get-millisecond-accurate-renders-with-animated-processing-sketches/35604](https://discourse.processing.org/t/is-it-possible-to-get-millisecond-accurate-renders-with-animated-processing-sketches/35604)
