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

consider note and command events with velocity 0 as end events #28

Open
josephlarralde opened this issue May 14, 2024 · 3 comments
Open

Comments

@josephlarralde
Copy link
Contributor

As the title says : to stay coherent with common MIDI abusing practice (i.e note on with velocity 0 is considered a note off), we should consider that note and command events with velocity 0 are end events and not start events (Events::isStart specializations should be modified accordingly)

@smoothdeveloper
Copy link

member x.IsStart =
  match event with
  | NoteOn(_, _ , 0) | NoteOff(_, _, _) -> Some false
  | NoteOn(_) -> Some true
  | _ -> None

@josephlarralde
Copy link
Contributor Author

Hi @smoothdeveloper ! Long time no talk ...

@smoothdeveloper
Copy link

I'm still on the line because I didn't parse the note on which is in fact a note off :D

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

No branches or pull requests

2 participants