Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ChannelEvent.java #1

Closed
wants to merge 1 commit into from
Closed

Update ChannelEvent.java #1

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Apr 9, 2014

consider noteOn with 0 velocities as noteOff. because so many midi files use noteOn with 0 velocity instead of noteOff.

consider noteOn with 0 velocities as noteOff. because so many midi files use noteOn with 0 velocity instead of noteOff.
@LeffelMania
Copy link
Owner

I think that's probably not a great idea. Yes, midi files use NoteOn with velocity 0 to indicate the end of a note, and for a good reason: It allows the data stream to omit the status byte of each NoteOn event. This is called "running status."

Further, I think it's a good goal to try not to modify the file as you read it. The closer we can get to identical files after a simple read/write, the better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant