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

fix #42326: Allow adding an InstrumentChange to the first note #1743

Merged
merged 1 commit into from
Feb 10, 2015

Conversation

Igevorse
Copy link
Contributor

@Igevorse Igevorse commented Feb 8, 2015

InstrumentList is a std::map<const int, Instrument>, where const int is a tick.
Since all keys in std::map are unique, I forbade adding several InstrumentChanges to one note/chord/rest.
Also I set default instrument's key to -1, so default instrument will not be replaced if user adds an InstrumentChange to the first note.

wschweer added a commit that referenced this pull request Feb 10, 2015
fix #42326: Allow adding an InstrumentChange to the first note
@wschweer wschweer merged commit 38e21e8 into musescore:master Feb 10, 2015
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

2 participants