JujuAdams / Vinyl

Live updating audio system for GameMaker
https://www.jujuadams.com/Vinyl/
MIT License
45 stars 5 forks source link

Ability to delay Vinyl actions #72

Closed patchuby closed 4 months ago

patchuby commented 1 year ago

Being able to delay the execution of functions without using an external library.

Possible ways to do this :

JujuAdams commented 1 year ago

What's your use case?

patchuby commented 1 year ago

I started thinking about it when making HLT (that would be solved with #73 ) to play the tail. But in general it would be useful to be able to delay action to be triggered on the next beat or the next bar. In that context a callback function that triggers on the next beat or next bar would do as well.

JujuAdams commented 4 months ago

No longer in scope for Vinyl native. Perhaps https://github.com/Gizmo199/audio-tempo/ could be modified to support this?

Gizmo199 commented 4 months ago

No longer in scope for Vinyl native. Perhaps https://github.com/Gizmo199/audio-tempo/ could be modified to support this?

Yes, this functionality is already available via audio_tempo_queue_sound/method(). But a queue_delay_for(number of downbeats) could be nice as well.

Thanks! :)