Commit graph

551 commits

Author SHA1 Message Date
Joachim Schmitz
17a978ad8c fix compiler warnings 2020-04-14 14:29:17 +02:00
anatoly-os
a1dc1371c2
Merge pull request #5810 from igorkorsukov/5129_chord-symbol-playback_corrections
[GSoC 2019] Basic chord symbol realization
2020-03-20 16:03:28 +02:00
Dmitri Ovodok
26fda43407
Merge pull request #5561 from mattmcclinch/298959-change-accidental
fix #298959: Note changes pitch, but accidental is not changed
2020-03-20 15:23:37 +02:00
Peter Hieu Vu
86a4e7b105 Added basic chord symbol realization 2020-03-19 13:52:39 +02:00
Joachim Schmitz
c9ec1ac5d4 fix some compiler warnings differently/cleaner
as requested/discussed in PR #4989, by using size_t or at least
unsigned instead of casting to int when using the size() method of stl
containers (vectors etc.) in for loops.
Doesn't work everywhere though, not without either adding more casts
elsewhere or with massive code changes or with different compiler(s')
warnings.
Tested with MinGW 64-bit, MinGW 32-bit and MSVC 64-bit.
2020-03-03 14:39:24 +01:00
Matt McClinch
82858514a3 Made cmdList a static vector in Score::cmd(), just like the one in ScoreView::cmd().
Also, fixed the compiler warnings about the unused parameter to the lambda functions in ScoreView::cmd().
2020-02-17 04:53:24 -05:00
Matt McClinch
37ccd37db6 fix #300926: Problem selecting and entering a whole note
Resolves: https://musescore.org/en/node/300926.

This allows a full measure rest to be changed into a "normal" rest even if the actual length of the rest is not being changed.
2020-02-11 13:48:37 -05:00
Dmitri Ovodok
32812a2fb9 Merge pull request #5678 from mattmcclinch/300718-nested-tuplet
fix #300718: Cannot increase the duration of a chord/rest within a nested tuplet.
2020-02-10 12:20:28 +02:00
Niek van den Berg
231a4d0135 Completing shortcuts for beaming.
PR5321 solved [#110386]. However, there were still some beaming shortcuts missing and it
was suggested by Jojo-Schmitz to implement there too. Due a misunderstanding from me this
wasn't done by then.
This PR implements these suggestions and makes the shortcuts for beaming complete.
2020-02-10 09:09:38 +01:00
Matt McClinch
d6a80d6c13 fix #300718: Cannot increase the duration of a chord/rest within a nested tuplet. 2020-02-07 00:28:02 -05:00
Howard-C
4732e794c1 fix #299369: crash when pressing numbers/letters in a different voice
Use `staff(pos.staffIdx)->staffType(is.tick())` to make sure `nullptr` won't emerge.
2020-01-28 14:49:00 +08:00
Matt McClinch
2f2d9e316e fix #298959: Note changes pitch, but accidental is not changed
Resolves: https://musescore.org/en/node/298959.

Note: In the following paragraphs, I use the word "microtonal" to refer to all accidentals for which Accidental::isMicrotonal() currently returns true. That is, all proper microtonal accidentals as well as NATURAL_FLAT, NATURAL_SHARP, and SHARP_SHARP.

When force adding or force removing an accidental, Score::changeAccidental() will remove a note's existing accidental (if any) from the score. When not force adding or force removing an accidental, the note's pitch is changed, but the accidental is left alone until Note::updateAccidental() is called. But Note::updateAccidental() does not touch microtonal accidentals, so any existing microtonal accidentals must be removed in Score::changeAccidental().

Also, when changing from a microtonal accidental to a non-microtonal accidental that results in the same change to the pitch of the note, the new accidental's role is currently set to USER every time, when in fact this should only be done if it truly is a courtesy accidental. So when determining whether or not the accidental is being force added, when we are comparing the new pitch to the old pitch, we should also look at whether the old accidental was microtonal or not, to make sure that the accidental's role is not being set incorrectly.
2019-12-26 15:21:03 -05:00
Dmitri Ovodok
fb18567d8f
Merge pull request #5511 from mattmcclinch/add-interval
fix #298121: Adding Intervals (above/below) should take into consideration the accidental toggle state
2019-12-25 11:59:06 +02:00
Dmitri Ovodok
02f6aae684
Merge pull request #5524 from Howard-C/italian-tab
fix #298362: pressing number after mouse click works for a different line in "Italian" styled tablature staff
2019-12-24 13:56:16 +02:00
Dmitri Ovodok
bb78c390fa
Merge pull request #5487 from mattmcclinch/297454-local-time-signature
fix #297454: Corruption in local time signature
2019-12-24 12:04:48 +02:00
luz.paz
f31624d746 fix various typos
* Found via `codespell -q 3 -S ./share/locale,./thirdparty -L ba,cann,clas,dur,foto,iff,nd,ois,ot,pres,possibile,snaped,strack,tage,te,uint,thru,valu`  
* Some revisions made per feedback given during review.
* Follow-up typos for review  
* Add revisions per feedback
2019-12-19 06:13:30 -05:00
Howard-C
a349116dc1 fix #298362: pressing number after mouse click works for a different line in "italian" styled tablature staff
Resolves: https://musescore.org/node/298362.

This is because the string number is reversed for number pressing (for upside-down tablature staves) while in fact it isn't needed. So a physStringToVisual() is called in this patch to eliminate the effect. See https://musescore.org/en/node/298362#comment-965223.
2019-12-10 23:23:13 +08:00
Matt McClinch
573280f1ca fix #298121: Adding Intervals (above/below) should take into consideration the accidental toggle state
Resolves: https://musescore.org/en/node/298121.

In addition to making the "Add Interval" commands apply the highlighted accidental when in note input mode, I have corrected a few cases where I had chosen the wrong tpc to use to calculate the AccidentalType for a user accidental, given the current value of styleB(Sid::concertPitch).
2019-12-04 23:07:55 -05:00
Dmitri Ovodok
a96b72c2fe fix #298061: fix a crash on "set as style" if score ends with a frame
- Don't pass staff number to adjustCanvasPosition if trying to
   adjust viewport to a frame. This avoids a crash itself.
 - Implement a more robust approach to determine a measure relevant
   to the current edit operation in CmdState. This avoids trying to
   unnecessarily jump to the frame at the end of a score.
2019-12-04 02:22:55 +02:00
Howard-C
b258c85c58 fix #292648: make courtesy accidentals stay if notes are changed using Ctrl+Up/Down 2019-12-03 09:39:43 +08:00
Dmitri Ovodok
49fedc47c4 fix #297428: crash on copying measure with slur and pasting it to TAB staff
1) Fix incorrect track2 assignment to spanners on pasting in some
situations due to not handling the case of track2 == -1.
2) Fix staff index checks in ScoreView code to avoid a crash if
incorrect staff index gets recorded to CmdState.
3) Add an assertion to catch invalid negative staff indices recorded
to CmdState.
2019-11-22 16:17:51 +02:00
Matt McClinch
f1e2d51970 fix #297454: Corruption in local time signature
Resolves: https://musescore.org/en/node/297454.
2019-11-21 16:05:06 -05:00
Matt McClinch
d173093c40 fix #166116: Slurs terminate in wrong spot in voices other than 1 2019-11-18 08:09:43 -05:00
Dmitri Ovodok
34d7d320c9
Merge pull request #5444 from mattmcclinch/296363-repitch-accidental
fix #296363: Accidental shortcuts do not work in Re-Pitch mode
2019-11-18 14:28:14 +02:00
Dmitri Ovodok
44a0382fdd fix #296995: use a more reliable way to prevent layout from altering CmdState 2019-11-13 12:27:08 +02:00
Dmitri Ovodok
b8eba0fa81 fix #296566: erase invalid elements from CmdState
Prevents crashes if an element triggering layout has been deleted,
e.g. in case of an unsuccessful attempt to add a glissando to a score.
2019-11-11 09:27:42 +02:00
Dmitri Ovodok
3933dac26b
Merge pull request #5342 from dbrinkmann91/292079-add-grace-notes
fix #292079: prevent crash when adding grace notes to a selected measure
2019-11-01 10:45:42 +02:00
Matt McClinch
d9554e5028 fix #296363: Accidental shortcuts do not work in Re-Pitch mode
Resolves: https://musescore.org/en/node/296363.
2019-10-31 13:52:52 -04:00
Daniel Brinkmann
f61e9814ba fix #292079: Prevent crash when adding grace notes to a selected measure
Copy selected elements and iterate over the copied list since the
original list might be changed during the execution of the loop.
2019-10-26 21:40:50 +02:00
Dmitri Ovodok
99c7b0d746 Add more information to setLayout() 2019-10-25 16:18:41 +02:00
Dmitri Ovodok
a88bc6707d Make layout range information available in MuseScore::endCmd()
Don't reset CmdState before MuseScore::endCmd is called
2019-10-25 15:51:01 +02:00
Matt McClinch
50e964bca4 fix #296065: Toolbar accidentals don't respect changes to previous notes
Resolves: https://musescore.org/en/node/296065.

Only add a *forced* accidental if there is an accidental selected in the toolbar and the note value is the same as it would be without an accidental.
2019-10-24 18:36:19 -04:00
Matt McClinch
c07d2058bb Redesign note input workflow based on Tantacrul's suggestions.
See https://musescore.org/en/noteinput_redesign.

This implements most of the changes Tantacrul suggested in his document, except for the part on Tuplets.
2019-10-15 07:29:17 -04:00
Niek van den Berg
75cb84b9fc Fix #110386: Corrected typo for beam32 and added beam64. 2019-09-16 08:52:01 +02:00
anatoly-os
f38f58ee88
Merge pull request #5182 from mattmcclinch/291261-drag-volta
fix #291261: Make volta mouse drops apply only to first staff by default
2019-08-30 11:18:27 +02:00
Joachim Schmitz
57af1fe2f8 fix compiler warnings on Mac 2019-07-12 10:53:42 +02:00
Matt McClinch
20eb2f1e0e fix #291261: Make volta mouse drops apply only to first staff by default
fix #291431: Incorrect drop anchor displayed while dragging a Volta
2019-06-27 20:27:35 -04:00
Dmitri Ovodok
0bfbac875a fix #291249: fix excerpt edits being not reflected in playback 2019-06-24 17:58:47 +02:00
Joachim Schmitz
1aa445eea2 Fix #286707: add scores and Score.name back to plugin API
Also adding more APIs and some documentation for them.
And some more changes to the existing plugins and documentation.
2019-06-20 13:48:27 +02:00
Dmitri Ovodok
213dea4d6d
Merge pull request #5080 from dmitrio95/289862-noteinput-crash-bad-cursor-pos
fix #289862: fix note input cursor moving to invalid position
2019-06-15 13:50:18 +02:00
Dmitri Ovodok
b556892e14 fix #280906: fix a crash on using "Fill with slashes" on MM rests 2019-06-14 10:27:51 +02:00
Matt McClinch
407939ba8b fix #290019: Piano keyboard display does not update when changing note by using arrow keys. 2019-05-31 10:26:12 -04:00
Dmitri Ovodok
c165631c58 fix #289862: fix note input cursor moving to invalid position 2019-05-29 10:28:17 +02:00
Dmitri Ovodok
f744342faf Make undo/redo changes mark score playlist as dirty 2019-05-27 12:26:38 +02:00
James Thistlewood
5e5b3cd2e0 fix #289561: playback continues to repeat after end repeat barline has been deleted 2019-05-25 08:02:02 +01:00
anatoly-os
73bb933da3
Merge pull request #4980 from mattmcclinch/119101-undo-visibility
fix #119101: Wrong undo visibility change for dotted note, where note and dot have different visibilities
2019-05-20 16:26:13 +03:00
anatoly-os
d103b8f417
Merge pull request #4979 from mattmcclinch/288528-change-pitch
fix #288528: After you change the pitch of a note that's tied, both tied notes end up selected.
2019-05-20 16:23:45 +03:00
anatoly-os
1afbc0bbfe
Merge pull request #4861 from Gac70/286679-pkeyboardnotdisplayaccidendals
fix #286679:  Piano keyboard display does not update when adding accidental using toolbar or palette
2019-05-20 12:15:07 +03:00
Marc Sabatella
7ef9b8b2de fix behavior of flip, reset positions from 2.x 2019-05-09 22:46:59 -06:00
Matt McClinch
3af081c0ae fix #119101: Wrong undo visibility change for dotted note, where note and dot have different visibilities 2019-05-02 00:17:05 -04:00