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

Note off events stop notes even if they are on a different channel #90

Closed
4321ba opened this issue Jan 7, 2021 · 2 comments
Closed
Labels

Comments

@4321ba
Copy link

4321ba commented Jan 7, 2021

Just a small bug, it isn't a problem if it isn't fixed.
Describe the issue
MIDI Note off events stop notes even if they are on a different channel.

Hardware info:

  • OS: Ubuntu
  • MIDIVisualizer version v6.2
  • GPU model Nvidia GeForce 750
  • RAM 8GB

Screenshot_20210107_171230
All the notes here should be the same length if they are not cut by another note. If they are, I made the MIDI so that the note off events happen before the next note on event (on the same channel). However, you can see that the 2 channels interfere (F# in the middle), my midi uses the same track, but different channels. First the green note off stops the blue note from being long. Then the next blue's note off stops the green, and that green's note off stops the next blue before it's supposed to end.

I think it is alright if the note on a given channel stops before it should, when a new note on happens on a different channel (meaning I don't think the program needs to draw notes on eachother). I don't actually know the midi specification that well but I don't think note off events from different channels should interfere this way (like a harp note shouldn't stop because a bass note off was called), I might be wrong though.

Also, MIDI file, it's like 20 seconds after the beginning:
145_Everpresence_Eldritch_Outlook.zip

@4321ba 4321ba added the bug label Jan 7, 2021
@kosua20
Copy link
Owner

kosua20 commented Mar 14, 2021

Hello, thank you for this detailed report and for providing a test file! I've been able to pinpoint the bug and fix it. As you mentioned, when two notes from different channels overlap, one is going to hide the other, but at least now the durations should be correct. This is available in the latest 6.3 release

@4321ba
Copy link
Author

4321ba commented Mar 16, 2021

Thanks! And I see you solved that too e.g. when a long note plays on B and after that a short one plays too which turns quickly off, the old long one will remain on.
Screenshot_20210316_140256
Everything seems to work fine, so I'll close this.

@4321ba 4321ba closed this as completed Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants