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

[WIP] Instrument change improvements #5128

Closed
Closed
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
438 commits
Select commit Hold shift + click to select a range
bf0dc85
implement changing palette properties on fly
anatoly-os Sep 18, 2019
2bfd667
Implement changing palette cell properties on fly
anatoly-os Sep 18, 2019
394487a
fix build
anatoly-os Sep 19, 2019
4646ce6
fix #280830: fix a crash on replacing a timesig with palette while in…
dmitrio95 Sep 19, 2019
c64e8fd
fix #280540, part 1: define palette cell names translation context de…
dmitrio95 Sep 18, 2019
3285462
Add support for templated cell names and translated text in palette e…
dmitrio95 Sep 19, 2019
9f885bf
fix #280540, part 2: fix translation strings and contexts
dmitrio95 Sep 18, 2019
59794fe
Merge pull request #5331 from dmitrio95/palette-translations
dmitrio95 Sep 19, 2019
6eb27cb
fix #294677: screenreader does not read consecutive frames
MarcSabatella Sep 19, 2019
7bf8a1d
fix #294054: enable direction change in stem's inspector UI
Harmoniker1 Sep 4, 2019
4bd390e
fix #294580: generate courtesy signature if next system has a local t…
Harmoniker1 Sep 19, 2019
da507a5
fix #283319: Time Signature disappears
mattmcclinch Sep 20, 2019
0547111
fix #280540, part 3: fix remaining palette tooltips translation
dmitrio95 Sep 20, 2019
4055d03
Merge pull request #5334 from mattmcclinch/283319-time-signature
dmitrio95 Sep 20, 2019
10d23d4
Add QWidget-based tooltips to QML palettes
dmitrio95 Sep 20, 2019
5fa3c1c
Merge pull request #5325 from MarcSabatella/293329-read-tab
dmitrio95 Sep 21, 2019
f3e2d4c
fix #293429: tuplet property saving
peterhieuvu Sep 20, 2019
a54d689
Mark correct palette widget in Welcome tour
dmitrio95 Sep 21, 2019
e5d490f
Miscellaneous UX and styling fixes for QML palettes
dmitrio95 Sep 21, 2019
42bec70
Close "More" popup on clicking outside the popup or the parent palette
dmitrio95 Sep 23, 2019
b99bdc6
Add "Pin popup" button to avoid closing "More" popup if needed
dmitrio95 Sep 23, 2019
238d9d7
Add a drop shadow effect to palette popups
dmitrio95 Sep 23, 2019
cf17cf8
fix #281866: fix inability to correctly set loop markers in parts
dmitrio95 Sep 20, 2019
8e3ae4a
Merge pull request #5339 from dmitrio95/palette3_squashed
anatoly-os Sep 23, 2019
954485d
fix #294727: crash in fingering mode with notes in voice 4 on last staff
MarcSabatella Sep 23, 2019
82bdcb8
Merge pull request #5340 from dmitrio95/281866-loop-in-parts
anatoly-os Sep 24, 2019
b995287
fix #294728: min distance not saved for lines unless offset changed too
MarcSabatella Sep 23, 2019
3c2cb77
fix #294910: fix property flags handling on setting properties of plu…
dmitrio95 Sep 25, 2019
2d844d6
fix #293318: crash on paste of note onto grace note
MarcSabatella Sep 25, 2019
acceea0
Adapt test scripts framework to redesigned palettes
dmitrio95 Sep 25, 2019
282386d
fix #294866: The direction of beamed notes does not immediately chang…
mattmcclinch Sep 27, 2019
0b30afc
fix #295069: Unsynced text content in lines beetween score and parts
Jojo-Schmitz Sep 30, 2019
079c72c
Fix palettes-related crashes
dmitrio95 Sep 25, 2019
e55cc0c
Miscellaneous UX and visual appearance fixes for palettes
dmitrio95 Sep 25, 2019
1d0de08
Add "Reload QML code" debug shortcut (reloads changed QML files on th…
dmitrio95 Sep 28, 2019
597563e
Mark palette cell custom if its properties are edited (except for name)
dmitrio95 Sep 30, 2019
d1b07d4
Display translated names in Palette/Palette Cell Properties
dmitrio95 Sep 30, 2019
973ba22
Implement palette search shortcut for QML palettes
dmitrio95 Sep 17, 2019
4e75169
fix crash on changing workspaces when installing/removing extensions
anatoly-os Sep 30, 2019
7b2b7af
Merge pull request #5353 from dmitrio95/palette4-squashed
anatoly-os Sep 30, 2019
3704ac5
Merge pull request #5351 from Jojo-Schmitz/lines-text-sync
anatoly-os Sep 30, 2019
7f8da1e
Merge pull request #5349 from mattmcclinch/294866-layout-old-beam
anatoly-os Sep 30, 2019
2711a6e
Merge pull request #5347 from dmitrio95/palette-script-tests
anatoly-os Sep 30, 2019
21ef858
Merge pull request #5345 from MarcSabatella/293318-paste-grace
anatoly-os Sep 30, 2019
cd8648a
Merge pull request #5344 from MarcSabatella/294728-min-distance-save
anatoly-os Sep 30, 2019
d159acd
Merge pull request #5343 from MarcSabatella/294727-next-element-crash…
anatoly-os Sep 30, 2019
6c032b6
Merge pull request #5333 from MarcSabatella/294677-consecutive-frames
anatoly-os Sep 30, 2019
511bdc3
Merge pull request #5328 from MarcSabatella/294485-navigate-wrap
anatoly-os Sep 30, 2019
6c51400
fix #295106: crash on next element
MarcSabatella Oct 1, 2019
fee7af7
Merge pull request #5316 from Jojo-Schmitz/measure-number-offset
anatoly-os Oct 1, 2019
55ca960
Merge pull request #5354 from MarcSabatella/295106-navigation-crash
anatoly-os Oct 1, 2019
00a0ecd
Merge pull request #5312 from lvinken/musicxml-fixes
anatoly-os Oct 1, 2019
ebfd3ea
Merge pull request #5330 from Howard-C/local-timesig
anatoly-os Oct 1, 2019
741ed0c
Merge pull request #5300 from Howard-C/stem-inspector
anatoly-os Oct 1, 2019
3fb1984
Edit score properties in WebView on musescore.com upload
dmitrio95 Sep 28, 2019
b577f08
Merge pull request #5302 from Jojo-Schmitz/carillion
anatoly-os Oct 1, 2019
3b1a8db
Merge pull request #5352 from dmitrio95/webview-score-upload
anatoly-os Oct 1, 2019
4da61e0
fix MinGW build
Jojo-Schmitz Oct 1, 2019
8ded5ce
Merge pull request #5355 from Jojo-Schmitz/mingw
dmitrio95 Oct 1, 2019
858a2ae
Remove old PaletteBox widget
dmitrio95 Oct 1, 2019
9a45615
Merge pull request #5311 from MarcSabatella/239186-accessible-tab
dmitrio95 Oct 1, 2019
a26fb0e
Implement "apply palette element" shortcut and palette search navigation
dmitrio95 Oct 1, 2019
bb286cd
fix black left/right arrow icons in dark theme
Jojo-Schmitz Oct 1, 2019
dc3ffab
Merge pull request #5357 from dmitrio95/palette5
anatoly-os Oct 1, 2019
68a3791
fix #295107: hang or crash on fingering mode after last note
MarcSabatella Oct 1, 2019
f479a71
Merge pull request #5321 from njvdberg/issue-110386
anatoly-os Oct 1, 2019
c236e88
Merge pull request #5358 from MarcSabatella/295107-nav-crash
anatoly-os Oct 1, 2019
c345a22
Merge pull request #5356 from Jojo-Schmitz/next-prev-dark
anatoly-os Oct 1, 2019
5962975
fix MSVC/MinGW compiler warnings
Jojo-Schmitz Oct 1, 2019
7fea86b
Merge pull request #5304 from mattmcclinch/294082-layout-stem
anatoly-os Oct 2, 2019
a9ab486
Merge pull request #5291 from Jojo-Schmitz/warnings
dmitrio95 Oct 2, 2019
32a3467
Reimplement saving and loading palettes
dmitrio95 Oct 1, 2019
728a319
Grey out palettes when they are disabled
dmitrio95 Oct 1, 2019
70f6e19
Guess reasonable palette type for "More" popup for custom palettes
dmitrio95 Oct 1, 2019
fdacc32
Avoid code duplication for creating master palette
dmitrio95 Oct 2, 2019
fb21212
Reorder and add elipses to palette menu entries
dmitrio95 Oct 2, 2019
afc8f64
Fix palettes visual appearance when dragging a palette
dmitrio95 Oct 2, 2019
5b80191
Merge pull request #5336 from peterhieuvu/tuplet-saving
dmitrio95 Oct 2, 2019
92b6c95
fix #295065: change professional lowest pitch for contrabasses to C1
Harmoniker1 Sep 30, 2019
00bf081
fix MSVC compiler warnings
Jojo-Schmitz Oct 2, 2019
a8918e6
Merge pull request #5350 from Howard-C/contrabasses-pitch
anatoly-os Oct 2, 2019
52f744e
fix #293837: plugins: add is() function to check if variables represe…
dmitrio95 Oct 2, 2019
c77d904
fix #251436: plugins: support more element types in Cursor, add sanit…
dmitrio95 Oct 2, 2019
db001c2
Plugin API: add experimental feature to notify plugins on score changes
dmitrio95 Oct 2, 2019
c9e6dc1
Minor palettes fixes
dmitrio95 Oct 2, 2019
773481c
Update MuseScore version in plugin docs
dmitrio95 Oct 2, 2019
2cf1cf7
Fix mtest build
dmitrio95 Oct 2, 2019
911ea73
fix #295153: minimum distance property for all kinds of fermata is no…
Harmoniker1 Oct 2, 2019
578d4a9
fix #295121: crazy behaviour of the colorLabel
anatoly-os Oct 2, 2019
7ca7ad4
Merge pull request #5359 from Jojo-Schmitz/warnings
anatoly-os Oct 2, 2019
9149511
fix #294121: navigation skips annotations entered out of order
MarcSabatella Sep 5, 2019
4d4f6f5
Merge pull request #5327 from MarcSabatella/294126-navigate-measure-e…
anatoly-os Oct 2, 2019
2ad67f8
stop pushing strings to Transifex
anatoly-os Oct 2, 2019
07e9c77
fix #295176 - [MusicXML] improve instrument change handling
lvinken Sep 29, 2019
03f6d89
Return translation string for "Tremolos" palette
dmitrio95 Oct 3, 2019
265a7a1
fix #295202: Filters (F6) for Lyrics and Chord Symbols are mixed up i…
Jojo-Schmitz Oct 3, 2019
0482fc3
temporarily unlock string freeze to push mistakenly edited string
anatoly-os Oct 3, 2019
98533ff
make string freeze again
anatoly-os Oct 3, 2019
e2df93c
Upload latest vtest metadata to vtest.musescore.org
dmitrio95 Oct 3, 2019
f495ca3
Merge pull request #5364 from Jojo-Schmitz/selection-filter
anatoly-os Oct 3, 2019
c2bfca4
Merge pull request #5365 from dmitrio95/vtest-info
anatoly-os Oct 3, 2019
a5a979a
Fix #295224: end-start-repeat crashes in timeline
Jojo-Schmitz Oct 4, 2019
fac2d4f
fix #290947: Lyrics: frame, border and highlight styling regressions
Jojo-Schmitz Oct 4, 2019
b9bb0ce
Fix a crash on reading a workspace with non-existing preferences
dmitrio95 Oct 5, 2019
563fe1a
Add a time delay for reordering palette elements with drag-and-drop
dmitrio95 Oct 7, 2019
80b83cf
Fix showing a placeholder when adding a custom item to a palette
dmitrio95 Oct 7, 2019
62c0f42
fix #295260: ensure focus on a scoreview after inserting symbols from…
dmitrio95 Oct 7, 2019
6c0bef1
Merge pull request #5369 from dmitrio95/workspace-local-prefs-crash
dmitrio95 Oct 7, 2019
30e1ea9
fix #295357: lyrics Y offset in parts lost on save/reload
MarcSabatella Oct 7, 2019
2359e49
Add link to license in README.md
azhuologist Oct 8, 2019
2e7a18c
Fix hidden custom cells being shown incorrectly in some workspaces
dmitrio95 Oct 8, 2019
8f5c957
fix #279964: bend font not connected to style
MarcSabatella Oct 7, 2019
ad7bd1a
fix #286188: text on prebend misplaced
MarcSabatella Oct 8, 2019
f53c93d
fix #286185: bends above the staff drawn incorrectly
MarcSabatella Oct 8, 2019
7bc8ccd
fix #295531: unable to enter successive sticking elements
MarcSabatella Oct 11, 2019
f100e6d
Merge pull request #5374 from MarcSabatella/295357-lyrics-offset-parts
anatoly-os Oct 14, 2019
c1b6eff
Merge pull request #5373 from MarcSabatella/279964-bend-font
anatoly-os Oct 14, 2019
7e16e03
Merge pull request #5368 from Jojo-Schmitz/lyrics-even-style
anatoly-os Oct 14, 2019
9d951d9
Merge pull request #5367 from Jojo-Schmitz/end-start-repeat-timeline-…
anatoly-os Oct 14, 2019
79beac5
Merge pull request #5360 from Howard-C/fermata-min-distance
anatoly-os Oct 14, 2019
9500d90
Merge pull request #5379 from MarcSabatella/295531-sticking-tab
anatoly-os Oct 14, 2019
a6ad394
Merge pull request #5375 from azhuologist/add-license-link-to-readme
anatoly-os Oct 14, 2019
22c4808
fix losing workspace on renaming, rewrite fix for a crash on uninstal…
dmitrio95 Oct 8, 2019
9ec7fbe
Rewrite Workspace::rename() in a less dangerous way
dmitrio95 Oct 14, 2019
5be3c72
Make "Reset Palette" action reset to a state stored in workspace file
dmitrio95 Oct 14, 2019
ec4b29d
fix MSVC warnings
anatoly-os Oct 14, 2019
e2f3431
fix clang warnings
anatoly-os Oct 14, 2019
571dcd4
Merge pull request #5385 from anatoly-os/clang_warnings_102019
anatoly-os Oct 15, 2019
d3370d7
Make restored palettes appear at the top of palettes list
dmitrio95 Oct 15, 2019
c07d205
Redesign note input workflow based on Tantacrul's suggestions.
mattmcclinch Oct 11, 2019
417f33b
Fix inability to add palettes in some cases
dmitrio95 Oct 15, 2019
ae1d4a0
revert unnecessary changes in #5375
Harmoniker1 Oct 15, 2019
9836622
sync with https://github.com/lvu/rtf2html
Jojo-Schmitz Oct 16, 2019
b010752
Replace deprecated function calls with lambdas
mattmcclinch Oct 16, 2019
543b7d4
remove librtf2html.a and rtf2html binary from repository
Jojo-Schmitz Oct 15, 2019
b007de7
Update thirdparty section of README.md
Jojo-Schmitz Oct 16, 2019
1e52274
fix #283943: fix a crash on deleting a measure at glissando end
dmitrio95 Oct 16, 2019
785b69d
fix encoding
Jojo-Schmitz Oct 17, 2019
4f42e2c
Rework workspaces editing workflow
dmitrio95 Oct 17, 2019
c004c48
fix #292830: fix copying lyrics to clipboard
dmitrio95 Oct 18, 2019
eb2da4c
fix #295792: fix a crash on changing duration of multiple notes in so…
dmitrio95 Oct 18, 2019
d840924
Merge pull request #5395 from dmitrio95/workspace-editing
anatoly-os Oct 18, 2019
f8f139c
Merge pull request #5400 from dmitrio95/292830-copy-lyrics-failure
anatoly-os Oct 18, 2019
5ea06dc
Merge pull request #5401 from dmitrio95/295792-change-duration-std-so…
anatoly-os Oct 18, 2019
63c9f8d
Add `source` tag value for the palettes
anatoly-os Oct 19, 2019
a6406b1
Merge pull request #5388 from Howard-C/patch-1
anatoly-os Oct 19, 2019
2a0b6c6
fix #295842: fix a crash on launching MuseScore with -s option
dmitrio95 Oct 19, 2019
3ae172f
Fix Delete key not working in "Custom" section of "More" popup
dmitrio95 Oct 16, 2019
7ac589c
Rework palette dialogs
dmitrio95 Oct 16, 2019
c94866a
Push new strings to Transifex
dmitrio95 Oct 19, 2019
c4f4776
fix #295898: Deleting a StaffTypeChange causes a crash in macOS
mattmcclinch Oct 20, 2019
88d6c46
Refactor `Workspace` class
anatoly-os Oct 21, 2019
3f1ee5d
Fix inconsistent behaviour when working with edited workspaces
anatoly-os Oct 21, 2019
5fa50d2
follow up 3f1ee5df2782e67fd04dfc11676cccb730af8592
anatoly-os Oct 21, 2019
f85163f
Merge pull request #5406 from anatoly-os/follow-up_3f1ee5d
anatoly-os Oct 21, 2019
9616274
fix #295944: Tuplet dialog does not default to style settings, and cr…
mattmcclinch Oct 22, 2019
09b6778
fix #295351: fix inability to return focus to QML palettes in some cases
dmitrio95 Oct 22, 2019
696914f
Fix QML TypeError
dmitrio95 Oct 22, 2019
9d1f595
fix remaining bugs with workspaces
anatoly-os Oct 22, 2019
b51896e
fix #295881: fix a crash on undoing adding an instrument in continuou…
dmitrio95 Oct 22, 2019
d341b0e
Merge pull request #5410 from dmitrio95/295881-undo-add-instrument-crash
dmitrio95 Oct 22, 2019
aeaa2c8
fix 2 more bugs related to edited workspaces
anatoly-os Oct 22, 2019
dfba411
address review made in #5409
anatoly-os Oct 22, 2019
c86513e
Merge pull request #5409 from anatoly-os/workspace_fixes_22102019
anatoly-os Oct 22, 2019
3b4f620
stop pushing strings to Transifex
anatoly-os Oct 22, 2019
832864d
fix #295957 Pedal continueText not saved
heuchi Oct 22, 2019
6c636b7
Merge pull request #5411 from heuchi/295957-Pedal-SaveContinueText
anatoly-os Oct 24, 2019
44d2b20
Merge pull request #5376 from mattmcclinch/note-input-redesign
anatoly-os Oct 24, 2019
146f6cf
fix #289908: cannot apply italic or underline to glissando text
Harmoniker1 Oct 24, 2019
8f7580e
fix #296053: improve algorithm for determing start point for note input
MarcSabatella Oct 24, 2019
31cf21a
fix #295675: support RNA without root
MarcSabatella Oct 15, 2019
b7824c8
fix #295778: incorrect handling of HTML escapes in chord symbols
MarcSabatella Oct 17, 2019
563cd5d
fix #273256, fix #273266: special characters dialog fixes
MarcSabatella Oct 19, 2019
ac3e4e5
Remove unused UndoCommand types
dmitrio95 Oct 23, 2019
c86f09c
update Campania to 2.008 +collect_artifacts
MarcSabatella Oct 24, 2019
50e964b
fix #296065: Toolbar accidentals don't respect changes to previous notes
mattmcclinch Oct 24, 2019
e7e17a7
fix test scripts to not rely on note input starting on first measure
MarcSabatella Oct 24, 2019
362aa88
Merge pull request #5420 from mattmcclinch/296065-toolbar-accidentals
anatoly-os Oct 25, 2019
f4b32f4
Merge pull request #5419 from dmitrio95/remove-unused-2
anatoly-os Oct 25, 2019
0c9804d
Merge pull request #5418 from MarcSabatella/296053-start-note-entry
anatoly-os Oct 25, 2019
37067ee
Merge pull request #5417 from Howard-C/glissando-italic
anatoly-os Oct 25, 2019
a88bc67
Make layout range information available in MuseScore::endCmd()
dmitrio95 Oct 24, 2019
0ca4abc
Expose layout range information to plugins
dmitrio95 Oct 24, 2019
99c7b0d
Add more information to setLayout()
dmitrio95 Oct 24, 2019
51e8517
Trigger only local re-layout on changing notes duration
dmitrio95 Oct 24, 2019
7dc8ca5
Move ScoreView's viewport to show the last score changes
dmitrio95 Oct 24, 2019
710cd6a
Restore list and range selection on undo if possible
dmitrio95 Oct 25, 2019
d1411bb
Merge pull request #5422 from dmitrio95/viewport
anatoly-os Oct 26, 2019
9749b4d
Merge pull request #5390 from MarcSabatella/campania-2006
anatoly-os Oct 26, 2019
1ee87a7
Fix single-note dynamics on rendering scores via a command line
dmitrio95 Oct 26, 2019
b096b42
fix #295348 - [Musicxml Export] - Strange Missing Hairpins
lvinken Oct 27, 2019
83fe78e
fix #296171: fix triggerLayoutAll() for spanners
dmitrio95 Oct 27, 2019
be737e6
Ensure a valid duration in the input state when entering a rest.
mattmcclinch Oct 27, 2019
8bbdb51
Don't rely on spanner's bbox when adjusting viewport to the last edit…
dmitrio95 Oct 28, 2019
b6fac5e
Set current version for master to 3.3.1
anatoly-os Oct 28, 2019
0c1de3d
Merge pull request #5424 from dmitrio95/296171-spanner-trigger-layout…
dmitrio95 Oct 28, 2019
a737b4e
Merge pull request #5423 from lvinken/295348-musicxml-missing-hairpins
anatoly-os Oct 28, 2019
566833f
Implement "Move soundfont To Top" button for Fluid/Zerberus synths GUI
anatoly-os Oct 28, 2019
809a68f
fix #296190: Campania not rendering correctly on some macOS systems
MarcSabatella Oct 28, 2019
447a32b
Merge pull request #5429 from anatoly-os/moveToTop_5269
anatoly-os Oct 29, 2019
eefe09d
Merge pull request #5426 from MarcSabatella/campania-mac
anatoly-os Oct 29, 2019
40efae1
Merge pull request #5428 from mattmcclinch/enter-rest
anatoly-os Oct 29, 2019
4f1be2b
Merge pull request #5392 from Jojo-Schmitz/rtf2html-sync
anatoly-os Oct 29, 2019
a74d51e
Merge pull request #5389 from Jojo-Schmitz/rtf2html
anatoly-os Oct 29, 2019
61e7ffd
Merge pull request #5408 from mattmcclinch/295944-tuplet-dialog
anatoly-os Oct 29, 2019
a6210b6
Merge pull request #5403 from mattmcclinch/295898-delete-stafftypechange
anatoly-os Oct 29, 2019
e924baa
Merge pull request #5394 from dmitrio95/283943-delete-measure-end-gli…
anatoly-os Oct 29, 2019
8bf7242
Merge pull request #5387 from Jojo-Schmitz/readme-rtf2html
anatoly-os Oct 29, 2019
ff43723
Merge pull request #5362 from lvinken/295176-musicxml-instrument-change
anatoly-os Oct 29, 2019
48a2591
fix #296127: Can't use CMD+SHIFT+Drag to copy on Mac
mattmcclinch Oct 30, 2019
1f563d3
Merge pull request #5433 from mattmcclinch/296127-cmd-shift-drag
anatoly-os Oct 30, 2019
9bf62a1
fix #296271: Crash by undoing/redoing in main score a copy-paste made…
Jojo-Schmitz Oct 30, 2019
4f873bc
fix #296298: Inspector: segment "Leading Space" input field topped at…
Jojo-Schmitz Oct 30, 2019
e5a3f16
Merge pull request #5439 from Jojo-Schmitz/segment-inspector
anatoly-os Oct 30, 2019
0a39d0a
Fix automatic viewport changes in scores with parts
dmitrio95 Oct 30, 2019
3dc7638
Merge pull request #5438 from Jojo-Schmitz/copy-paste-undo-crash
anatoly-os Oct 30, 2019
438ab6b
Merge pull request #5440 from dmitrio95/viewport-change-and-parts
anatoly-os Oct 30, 2019
5267d71
Fix #289006: Expose "Select Instrument" in Inspector for Instrument C…
IsaacWeiss May 10, 2019
1db0960
Adding instrument changes to a score automatically shows the instrume…
Jun 2, 2019
525e178
Fix adding objects to multiple staves through selection
joshwd36 Jun 2, 2019
d6c3c36
Automatically change instrument change text to new instrument name
joshwd36 Jun 5, 2019
82ed5e4
Change clef if necessary on instrument change
joshwd36 Jun 11, 2019
257f4bf
Remove braces in a few sections
joshwd36 Jun 16, 2019
b845a48
Automatically change key signature on instrument change (WIP)
joshwd36 Jun 17, 2019
1c328dc
Automatically delete clef and key changes when instrument change is d…
joshwd36 Jun 17, 2019
3654f91
Fix crash when deleting key signature before instrument change
joshwd36 Jun 23, 2019
d3fcc17
Maintain instrument change transpositions when changing key signature
joshwd36 Jun 25, 2019
ae8697b
Fix updating key signatures for instrument changes when key is changed
joshwd36 Jun 26, 2019
aefbb3f
Initial work on dynamic instrument change warning (undo breaks)
joshwd36 Jul 7, 2019
fd55533
Automatically add warning to instrument change inserted before notes,…
joshwd36 Jul 10, 2019
94d9e41
Fix bug in prevInstrumentChange
joshwd36 Jul 13, 2019
8adc7c4
Change instrument change warnings to a new type, InstrumentChangeWarning
joshwd36 Jul 17, 2019
1f9c96a
Add new file to CMakeLists
joshwd36 Jul 17, 2019
501f8f4
Automatically move instrument change warning when first note in passa…
joshwd36 Jul 18, 2019
20f5bb0
Fix moving instrument change when note is deleted, and make instrumen…
joshwd36 Jul 19, 2019
1ed8fff
Change structure of warnings, key signatures, and clefs to remove poi…
joshwd36 Aug 1, 2019
b1bd4c7
Add checkbox to instrument change inspector panel to specify whether …
joshwd36 Aug 1, 2019
a3ccb13
Fix problems with instrument change warnings changing to the incorrec…
joshwd36 Aug 20, 2019
31c12b2
Basic implementation for changing to unpitched percussion
joshwd36 Aug 22, 2019
6a10b5d
Improve stability of unpitched percussion changes
joshwd36 Aug 22, 2019
63943f4
More fixes for changing to different staff types (undo still broken)
joshwd36 Aug 23, 2019
f19ac07
More bug fixes for instrument changes to percussion instruments
joshwd36 Aug 24, 2019
a16a075
Fix bugs and add new test
joshwd36 Aug 26, 2019
02c9855
Fix small bugs
joshwd36 Aug 26, 2019
3578316
Add another test
joshwd36 Aug 26, 2019
7d02e35
Add another test, and fix previous test
joshwd36 Aug 26, 2019
2ff9869
Add two more tests
joshwd36 Aug 26, 2019
668f095
Fix warning 2 test
joshwd36 Aug 26, 2019
162fd46
Simplify xml tag for lines
joshwd36 Aug 26, 2019
cdf03ae
Merge branch 'instrument-change-improvements' of https://github.com/j…
joshwd36 Oct 31, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion libmscore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ add_library (
drumset.cpp durationtype.cpp dynamic.cpp edit.cpp noteentry.cpp
element.cpp excerpt.cpp
fifo.cpp fret.cpp glissando.cpp hairpin.cpp
harmony.cpp hook.cpp image.cpp iname.cpp instrchange.cpp
harmony.cpp hook.cpp image.cpp iname.cpp instrchange.cpp instrchangewarning.cpp
instrtemplate.cpp instrument.cpp interval.cpp
key.cpp keysig.cpp lasso.cpp
layoutbreak.cpp layout.cpp line.cpp lyrics.cpp measurebase.cpp
Expand Down
4 changes: 2 additions & 2 deletions libmscore/chord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1711,7 +1711,7 @@ void Chord::cmdUpdateNotes(AccidentalState* as)
const Staff* st = staff();
StaffGroup staffGroup = st->staffType(tick())->group();
if (staffGroup == StaffGroup::TAB) {
const Instrument* instrument = part()->instrument();
const Instrument* instrument = part()->instrument(tick());
for (Chord* ch : graceNotes())
instrument->stringData()->fretChords(ch);
instrument->stringData()->fretChords(this);
Expand Down Expand Up @@ -1748,7 +1748,7 @@ void Chord::cmdUpdateNotes(AccidentalState* as)
}
}
else if (staffGroup == StaffGroup::PERCUSSION) {
const Instrument* instrument = part()->instrument();
const Instrument* instrument = part()->instrument(tick());
const Drumset* drumset = instrument->drumset();
if (!drumset)
qWarning("no drumset");
Expand Down
42 changes: 33 additions & 9 deletions libmscore/chordrest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include "page.h"
#include "hook.h"
#include "rehearsalmark.h"
#include "instrchange.h"

namespace Ms {

Expand Down Expand Up @@ -536,14 +537,7 @@ Element* ChordRest::drop(EditData& data)
case ElementType::STAFF_TEXT:
case ElementType::SYSTEM_TEXT:
case ElementType::STAFF_STATE:
case ElementType::INSTRUMENT_CHANGE:
if (e->isInstrumentChange() && part()->instruments()->find(tick().ticks()) != part()->instruments()->end()) {
qDebug()<<"InstrumentChange already exists at tick = "<<tick().ticks();
delete e;
return 0;
}
// fall through

case ElementType::REHEARSAL_MARK:
{
e->setParent(segment());
Expand All @@ -556,6 +550,24 @@ Element* ChordRest::drop(EditData& data)
score()->undoAddElement(e);
return e;
}
case ElementType::INSTRUMENT_CHANGE:
if (part()->instruments()->find(tick().ticks()) != part()->instruments()->end()) {
qDebug() << "InstrumentChange already exists at tick = " << tick().ticks();
delete e;
return 0;
}
else {
InstrumentChange* ic = toInstrumentChange(e);
ic->setParent(segment());
ic->setTrack((track() / VOICES) * VOICES);
Instrument* instr = ic->instrument();
Instrument* prevInstr = part()->instrument(tick());
if (instr && instr->isDifferentInstrument(*prevInstr)) {
ic->setupInstrument(instr);
}
score()->undoAddElement(ic);
return e;
}
case ElementType::FIGURED_BASS:
{
bool bNew;
Expand Down Expand Up @@ -1324,14 +1336,26 @@ bool ChordRest::isBefore(const ChordRest* o) const
// undoAddAnnotation
//---------------------------------------------------------

void ChordRest::undoAddAnnotation(Element* a)
void ChordRest::undoAddAnnotation(Element* a, bool useTopStaff/* = false*/)
{
Segment* seg = segment();
Measure* m = measure();
if (m && m->isMMRest())
seg = m->mmRestFirst()->findSegmentR(SegmentType::ChordRest, Fraction(0,1));

a->setTrack(a->systemFlag() ? 0 : track());
if (useTopStaff) {
Staff* topStaff = nullptr;
for (int i = 0; i < part()->nstaves(); i++) {
if (part()->staff(i)->show()) {
topStaff = part()->staff(i);
break;
}
}
Q_ASSERT(topStaff && topStaff->show());
a->setTrack(topStaff->idx() * VOICES);
}
else
a->setTrack(a->systemFlag() ? 0 : track());
a->setParent(seg);
score()->undoAddElement(a);
}
Expand Down
2 changes: 1 addition & 1 deletion libmscore/chordrest.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class ChordRest : public DurationElement {

bool isBefore(const ChordRest*) const;

void undoAddAnnotation(Element*);
void undoAddAnnotation(Element* a, bool useTopStaff = false);
};


Expand Down
4 changes: 4 additions & 0 deletions libmscore/clef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ void Clef::read(XmlReader& e)
_clefTypes._transposingClef = Clef::clefType(e.readElementText());
else if (tag == "showCourtesyClef")
_showCourtesy = e.readInt();
else if (tag == "forInstrumentChange")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm always wary about adding new tags, but I think this can be justified 👍

_forInstrumentChange = e.readBool();
else if (!Element::readProperties(e))
e.unknown();
}
Expand All @@ -304,6 +306,8 @@ void Clef::write(XmlWriter& xml) const
writeProperty(xml, Pid::CLEF_TYPE_TRANSPOSING);
if (!_showCourtesy)
xml.tag("showCourtesyClef", _showCourtesy);
if (_forInstrumentChange)
xml.tag("forInstrumentChange", _forInstrumentChange);
Element::writeProperties(xml);
xml.etag();
}
Expand Down
4 changes: 4 additions & 0 deletions libmscore/clef.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ class Clef final : public Element {
SymId symId;
bool _showCourtesy = true;
bool _small = false;
bool _forInstrumentChange = false;

ClefTypeList _clefTypes { ClefType::INVALID };

Expand Down Expand Up @@ -167,6 +168,9 @@ class Clef final : public Element {
void setClefType(ClefType i);
void setClefType(const QString& s);

void setForInstrumentChange(bool forInstrumentChange) { _forInstrumentChange = forInstrumentChange; }
bool forInstrumentChange() const { return _forInstrumentChange; }

ClefTypeList clefTypeList() const { return _clefTypes; }
ClefType concertClef() const { return _clefTypes._concertClef; }
ClefType transposingClef() const { return _clefTypes._transposingClef; }
Expand Down