Commit graph

192 commits

Author SHA1 Message Date
Howard-C
d7d0465b03 code formatting (for single-click implementation) 2019-12-26 00:24:52 +08:00
pereverzev_v
e1073c5c98 Added boundaries for the left-side note dragging 2019-12-24 14:20:36 +02:00
pereverzev_v
767fcae3b1 Allowed to drag note in both directions at normal mode accordingly to angle 2019-12-24 14:20:35 +02:00
Matt McClinch
682e5b7742 fix #293459: Tie command does not properly handle chords with unisons 2019-09-11 14:04:37 -04:00
anatoly-os
12adde5052
Merge pull request #5175 from Jojo-Schmitz/qt-creator-warnings
fix some 'red underline' warnings in/for QtCreator
2019-08-29 11:33:58 +02:00
Dale Larson
b60fea52cf Fix #293008: Plugin: Provide Note.tieBack & Note.tieForward properties in QML.
Provide Note.tieBack & Note.tieForward properties and their
associated Tie objects in QML. Also provides Note.firstTiedNote
and lastTiedNote methods to locate a tie range.
2019-08-27 17:28:53 -05:00
Joachim Schmitz
e44c823c07 fix some 'red underline' warnings in/for QtCreator 2019-08-01 10:23:29 +02:00
Matt McClinch
84ee193c78 fix #284002: Tablature: unexpected default behavior with tied fret mark and parenthesis 2019-06-11 14:15:01 -04:00
anatoly-os
ffdd0498b1 Revert "Merge pull request #4933 from dmitrio95/play-selected-staves"
This reverts commit 0b3cfbc83d.
2019-05-21 21:22:29 +02:00
anatoly-os
217a06a9fd
Merge pull request #5030 from MarcSabatella/scale-offset
Scale offsets with staff
2019-05-21 11:19:38 +02:00
Marc Sabatella
510b60ce45 fix #289312: offsets on elements of chords and rests not scaling with staff 2019-05-18 09:32:39 -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
Dmitri Ovodok
d037f774ab Play selected staves only if there is a range selection 2019-04-17 16:23:38 +03:00
Dmitri Ovodok
3cfde39f10 Add plugins documentation 2019-03-22 17:55:48 +02:00
ws
ec3be9a99a Replacd integer midi tick values by fractions.
- tick names a position on the time axis
- tick is always a Fraction()
- only Measure() and Segment() (and Tuplet?) have a tick value
- tick() for an generic element return only a sensible value if isMeasure() or isSegment() or isSegment(parent())

- "ticks" names a duration stored in a Fraction()
- the tick value for an Segment is relative to its measure

- rename "duration" to "ticks"
- rename afrac() to tick()
- rename rfrac() to rtick()
- rename some variables, changing "fraction" into "tick"
  (example: actualFraction() into actualTicks())

- Lyrics ticks are written as Fraction, on read if xmlreader sees a "/" it reads a fraction
  else midi ticks for backwards compatibility
2019-02-18 11:46:05 +01:00
Dmitri Ovodok
77bcd39537 Expose enumerations to QML
All enumerations defined directly in Ms namespace had to be moved
to types.h due as Q_NAMESPACE cannot be used multiple times in one
namespace, see https://bugreports.qt.io/browse/QTBUG-68611
2019-01-24 17:42:46 +03:00
Dmitri Ovodok
ea81a9338c Add a new QML plugins API
- Move Qml plugin engine out of libmscore
 - Add Pid::TICK handling to Element class
 - Make tick QML property correspond to absolute tick in all contexts
     That is a temporary solution though, a proper solution would
     require revising Pid::TICK handling
 - Move plugins API to api directory
 - Rename ElementW -> Element (PluginAPI namespace)
 - Remove Qt meta-object macros from Score in libmscore
 - Remove string-based access to properties from QML
 - Remove unused functions from Note
 - Rename QML properties names to camel case
     Two reasons:
       - They were named so in MuseScore 2.X.
       - Using underscored_names is less consistent with MuseScore
         coding style.
2019-01-24 17:36:05 +03:00
Dmitri Ovodok
62f5d132bf fix #280095, fix #278964: rework duration types hanling with tremolo 2018-12-19 15:42:47 +02:00
ws
1edd676aa7 fix #277699 Staff properties corrupted on MusicXML import after Master Palette opened
The problem is deep in the initialization of staff types in Staff.
This commit also tries to make handling of StaffType more "const correct" and adds some
assertions which may lead to crashes (and helps detecting bad code).
2018-11-08 15:50:00 +01:00
Dmitri Ovodok
6ae48c8b32 Extend properties framework for score comparison related needs
This commit adds:
- ScoreElement::propertyId for obtaining property ID by its XML name
  within the context of the respective element
- ScoreElement::propertyUserValue to obtain values of the properties
  in a human-readable representation
2018-10-29 17:04:24 +02:00
Dmitri Ovodok
c354eb24c3 Remove read300 functions 2018-09-19 01:57:37 +03:00
Dmitri Ovodok
104898195b Read and write spanners using the connectors framework
Remove IDs for spanners
2018-08-16 19:10:28 +03:00
Dmitri Ovodok
8fa920b7df Backup old MSC read functions, add a test for fileformats compatibility
Use old read functions for reading 1.x and 2.x fileformats

Assign version number 3.01 to the new MSCX format flavor
2018-08-16 19:08:45 +03:00
ws
076b56f3bc fix for note edit mode 2018-07-19 13:03:38 +02:00
anatoly-os
be5d711b37
Merge pull request #3564 from dmitrio95/bugfix/flute_0_crash
fix #222031: remove ties and spanners when removing induvidual notes within a chord
2018-06-02 18:15:03 +02:00
anatoly-os
0214736c4c fix #271198: Add a more flexible way to choose noteheads in drumset for percussion instrument
Added "Custom" item to noteheads combobox, removed "invalid" item, set selection at the first tree element when opening the drumset editor, added interaction between custom noteheads group and notehead group combobox, fixed tab order.
Fixed drawing custom noteheads in preview window: Set cachedSymbol from current quarter note combobox value and added slot to update preview on chaning quarter value.
Fixed shadow note drawing: Apply specific notehead from drumset data.
2018-05-05 18:30:45 +02:00
lasconic
6843d0a6ae fix #271198: Add a more flexible way to choose noteheads in drumset for percussion instrument 2018-05-05 12:22:08 +02:00
anatoly-os
4facafc468 fix #271529: incorrect stem position for some noteheads in layout
Implemented correct notehead bbox width and origin calculations. Fixed
note and chord stems, ledger lines, beams, dots, articulation, slur and chord positions.
2018-05-05 10:34:45 +02:00
wschweer
9f3c2d69c4 fix #266011 Crash when editing bend after removal of a linked staff 2018-04-26 11:01:53 +02:00
ws
33d1cd7fb4 rename StyleIdx -> Sid and P_ID -> Pid 2018-03-27 15:36:00 +02:00
Dmitri Ovodok
1b8679d9c5 fix #222031: remove ties and spanners when removing induvidual notes within a chord 2018-03-21 18:16:13 +03:00
luz.paz
dab3b5f056 Misc. typos follow up
Follow up to previous typo commit a8ac55c180
2018-02-19 19:30:12 -05:00
Werner Schweer
b46b55fa1e fix ties from/to grace notes; add 'final' to classes were appropriate 2017-12-21 14:08:44 +01:00
Werner Schweer
0e4211e2d0 update let ring, palm mute 2017-11-27 16:55:52 +01:00
lasconic
36b3875108 fix #266019: In Tablature, hidden note after tie should be between parentheses instead under some conditions 2017-11-22 11:19:41 +01:00
divya-urs
28d4e39b05 accessibility: nextElement and prevElement 2017-07-13 23:52:00 +05:30
Werner Schweer
ac41fa396e update edit infrastructure 2017-03-31 13:03:30 +02:00
lasconic
cb4ddb61ba fix compilation warning 2017-03-25 12:38:34 +01:00
Werner Schweer
dff05f9d6d fix note head dragging 2017-03-06 11:33:54 +01:00
Werner Schweer
fc55143b95 update mtest 2017-02-17 15:48:28 +01:00
Werner Schweer
90b1991912 replace Q_OBJECT with Q_GADGET for all Element based classes 2017-02-17 15:48:28 +01:00
Joachim Schmitz
75439a7bfc Plural of parenthesis is parentheses 2017-02-01 11:23:58 +01:00
Joachim Schmitz
6fdb67a3b4 note brackets are actually parenthesis 2017-01-31 18:52:09 +01:00
Werner Schweer
73d097eec6 cleanup some header files 2017-01-19 09:17:21 +01:00
Werner Schweer
1d4c6b2f21 move Element::type() to ScoreElement 2017-01-18 14:16:33 +01:00
Werner Schweer
5433d719d9 replace TextStyle by SubStyle 2017-01-16 20:59:21 +01:00
Werner Schweer
337e885896 barline changes, part-1 2016-12-28 16:36:59 +01:00
Werner Schweer
6e7e05aaec impl. staff type changes 2016-12-18 14:31:34 +01:00
lasconic
8051b4238e fix #151156: Cross-staff glissando missing when creating piano part 2016-12-15 00:27:46 +01:00
Werner Schweer
c5f46bb208 rename Xml() -> XmlWriter() 2016-11-19 11:51:21 +01:00