-
Notifications
You must be signed in to change notification settings - Fork 82
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
Several fixes / improvements #18
Conversation
First, thanks for the PR! It's a little hard for me to comment on this since so many unrelated changes are thrown together ... Still, I can provide some comments:
Yeah, you're right.
Yep, but could you change the error condition from
This is based on code from On the other hand, I guess that your change is not too bad and a user could still add the number manually if unique names are required, so I'm inclined to accept it.
Both of these are already in master
Yes, this is a little inefficient, but if such a thing is added, it must be added to all backends. I have to look into the other backends to see if functions similar to Also, the Anyway, thanks for your interest in midir and your contributions! It would be great if you could just factor out the first three changes as separate PRs, based on the current state of the master branch. 👍 And thanks for the hint about |
Thanks, so should I do git rebase or git reset, and then create 3 branches? Or how would you do it? |
I would start from master and then create three different branches with the small changes. They shouldn't interfere with each other, so there should be no merge conflicts. |
Ok, I'm on it! Apparently I can't create a new fork, so I have to delete my old fork and fork again from master? |
You don't need to fork again. You created this PR from your master branch, but you can just create another branch in your fork, reset that to my master branch (if |
Because this PR was not updated, I have extracted the changes that were still revelant in 197e4c2, thus superseding this PR. |
Several fixes / improvements:
Most likely in your app you will have a type for MIDI Short Messages anyway.
It will have a method to_u32():
Since I'm on windows, I only implemented this for windows, but I'm sure it's easy to add it for other OSes, too.
Btw, this crate goes well together with the rimd crate :)
Maybe it would make sense to unify them into one project in the future..