Skip to content

emitEvent() should emit multiple events with the same tick #87

@serg472

Description

@serg472

Currently play() method is returning a single emitEvent() every 5ms even if there was a series of events on the same tick. It should return all events from the same tick in an array.
For example if your midi starts with the standard sequence "time signature", "key signature" etc all these are returned with 5ms intervals between them. Imagine if your midi starts with a hundred of silent system events this would delay the playback for seconds. Not only that, but It's adding 5ms delays where they are not expected to be, which causes all sorts of weird timing issues (silent events are decreasing the durations of following note-on events; note-off and note-on are 5ms apart where they should be smoothly following each other, etc).

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions