-
Notifications
You must be signed in to change notification settings - Fork 8
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
Crash on attempt to import non-GM instrument on a case of bank absence #45
Comments
I think I understand about the mismatching banks. |
It's easy: Every time you are resizing the However, I think, I'll equip the "FmBank" with generic functions to resize instruments storage without of direct deal with vector and pointer. |
This was not sufficient. When you import by "assign" mode, you have to match the banks of destination and source. |
Therefore don't do 1:1 assignment, but use MSB/LSB pair to identify the target bank (but, prevent ability to set duplicated bank key, the pair of MSB/LSB must be unique). |
I think, it's fine now. The fix that was taken long time ago, is fine 😉 |
When you have count of bank less than importing instrument, the crash will happen as the reason of instruments store arrays mismatch. To fix this, it's need to check the instrument number, and then automatically expand the banks set to let instruments be correctly imported.
P.S. It's absolutely same crash on OPL3 Bank Editor as the same importer code was used in both cases.
The text was updated successfully, but these errors were encountered: