nlaha / godot-midi

MIDI file parsing and event playback in Godot 4.1+
MIT License
49 stars 4 forks source link

Time offset for firing note events? #23

Open Lamby777 opened 1 month ago

Lamby777 commented 1 month ago

I'm making a game that involves rhythm mechanics but I want to be lenient on players who click slightly before the "note on" event. Is there some way that I could configure this addon to read ahead for note ons x milliseconds and delay note offs by y milliseconds?

Thanks for making this project btw

nlaha commented 4 weeks ago

This might require reworking how note events are passed to the user. Right now I use signals, but as you mentioned this isn't ideal for rhythm games that need to look at future events. Here are a couple ideas I had while thinking about this: