Open Lamby777 opened 1 month 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:
Similar to how audio is typically transferred, expose a stream that can be read into a buffer (so you can read note events in chunks), maybe use something like this: https://docs.godotengine.org/en/stable/classes/class_streampeer.html
Make a subclass of MidiPlayer with a function that looks for events within a certain "radius" of the current time and returns them as a list.
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