seems to just be a bit random but some sequenced notes play too loud, probably duplicate.
because it's random (i.e. not trivially reproducible), i can't just step in and find the culprit. therefore i propose starting by just detecting duplicate notes to confirm this is the case.
and honestly, because of the low impact, if dupe notes are the case, just drop them. it will reduce the impact down to a tiny fraction of performance loss which i don't care about.
After some testing, it actually seems like a client issue. There's no bug in the sequencer player duplicating notes, and there's no bug regarding velocity. But if there are any network hiccups, then notes come in grouped together and indeed play double.
So the solution will be to fix this on client-side by removing very-fast (e.g. doubled) notes of the same value. Some small margin like 5ms should be sufficient.
seems to just be a bit random but some sequenced notes play too loud, probably duplicate.
because it's random (i.e. not trivially reproducible), i can't just step in and find the culprit. therefore i propose starting by just detecting duplicate notes to confirm this is the case.
and honestly, because of the low impact, if dupe notes are the case, just drop them. it will reduce the impact down to a tiny fraction of performance loss which i don't care about.
After some testing, it actually seems like a client issue. There's no bug in the sequencer player duplicating notes, and there's no bug regarding velocity. But if there are any network hiccups, then notes come in grouped together and indeed play double.
So the solution will be to fix this on client-side by removing very-fast (e.g. doubled) notes of the same value. Some small margin like 5ms should be sufficient.