Commit graph

83 commits

Author SHA1 Message Date
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
Dmitri Ovodok
d26bd056de Assign PIDs and names for some properties 2019-03-14 15:13:43 +02:00
Joachim Schmitz
56e76ba9db fix tuning offset for Sori and Koron
These settings are currently completly ignored by musescore, but should
get set correctly anyhow, just in case playback for those ever gets
implemented.
Sori is not a quarter tone up, but 1/3 semitone up
Koron is not a quarter tone down, but 2/3 semitones down.
2018-12-20 19:50:38 +01:00
ws
d2e452040b fix #278099 Crash when inserting a symbol from master palette 2018-11-13 13:32:33 +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
c95dfd5a40 Make it possible to record elements written to MSCX 2018-10-29 16:30:19 +02:00
Andres Fernandez de Prado
33dff96a20 This commit contains changes required for MuseScore to compile under MSVC with no warnings.
This commit contains changes required for MuseScore to compile under MSVC with no warnings.

MuseScore is being compiled with the /W4 setting (warning level 4), which is similar to -wall -wextra on clang. This generates lots of warnings on MSVC, mainly for non-standard constructs and for constructs which might be bugs or might lead to bugs.

Most warnings are in the following categories:
- Name hiding: a variable hides a variable with the same name on a larger scope (or a field, or a function parameter). This can easily lead to bugs, and it is a best practice to avoid hiding variable names (see recommendation ES.12 in the C++ Core Guidelines by Stroustrop & Sutter (http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Res-reuse : ES.12: Do not reuse names in nested scopes)
- Narrowing conversion: a numeric conversion results in loss of significant digits (for example, double -> float). The general recommendation is to use a cast to indicate this is designed behaviour.
- Unreachable code: in several instances, there is unreachable code. The unreachable code is commented out.
- (Potentially) uninitialized local variable. Just initialized the vars.
- foreach(,) -> for(:): this does not generate a warning per-se (only a few of these generate warnings due to name hiding), but changed in keeping with "MuseScore Coding Rules" (https://musescore.org/en/handbook/musescore-coding-rules#Loops), which tells explicitly "Use C++11's "for" instead of Qt's "foreach":" ... "If you happen to be fixing some code and see a "foreach", please change that loop into a "for"."

Most changes are in the categories indicated above. The next listing shows detailed changes for files which are *not* of the aforementioned types.

- all.h: Disable warning C4127 (conditional expression is constant - generated in Qt header file qvector.h)
- awl/aslider.h: unreachable code.
- awl/knob.cpp: name hiding
- awl/mslider.cpp: name hiding
- awl/slider.cpp: name hiding
- bww2mxml/parser.cpp: name hiding
- effects/compressor/compressor.cpp: narrowing conversion
- effects/zita1/zitagui.cpp: name hiding
- fluid/fluid.cpp: foreach replacement. Name hiding.
- fluid/mod.cpp: name hiding.
- fluid/sfont.cpp: foreach replacement. Name hiding. Initialize vars.
- fluid/voice.cpp: Name hiding.
- libmscore/accidental.cpp: Name hiding.
- libmscore/ambitus.cpp: Initialize vars.
- libmscore/barline.cpp: Name hiding. Unreachable code.
- libmscore/beam.cpp: Name hiding.
- libmscore/chordrest.cpp: Unreachable code.
- libmscore/scorefile.cpp: Name hiding.
- manual/genManual.cpp: Name hiding. foreach replacement.
- midi/midifile.cpp: Name hiding. Unreachable code.
- omr/importpdf.cpp: Name hiding. foreach replacement.
- omr/omr.cpp: Name hiding. foreach replacement.
- omr/omrpage.cpp: Name hiding. foreach replacement.
- omr/omrview.cpp: Name hiding. foreach replacement.
- synthesizer/event.cpp: Unreachable code.
- zerberus\channel.cpp: Narrowing conversion.
- zerberus\instrument.cpp: Name hiding.
- zerberus\sfz.cpp: Name hiding.
- zerberus\voice.h: Suppress warning C4201: "nonstandard extension used: nameless struct/union"
- zerberus\zerberus.cpp: Name hiding. Unreferenced parameter.
- zerberus\zerberusgui.cpp: Name hiding.
2018-08-03 09:15:42 +02:00
ws
175d5aadb3 cleanup ElementFlags interface, use more Placement properties on mxml import/export 2018-07-04 12:41:14 +02:00
ws
33d1cd7fb4 rename StyleIdx -> Sid and P_ID -> Pid 2018-03-27 15:36:00 +02:00
Werner Schweer
ac41fa396e update edit infrastructure 2017-03-31 13:03:30 +02:00
Werner Schweer
88703a3259 interpret custom keys 2017-02-13 12:45:37 +01:00
Joachim Schmitz
75439a7bfc Plural of parenthesis is parentheses 2017-02-01 11:23:58 +01:00
Werner Schweer
48f2f0897f add parenthesis/bracket to accidental 2017-01-31 17:28:56 +01:00
Werner Schweer
1d4c6b2f21 move Element::type() to ScoreElement 2017-01-18 14:16:33 +01:00
Werner Schweer
660b393b98 change StaffType interface 2016-12-14 15:44:24 +01:00
Werner Schweer
c5f46bb208 rename Xml() -> XmlWriter() 2016-11-19 11:51:21 +01:00
lasconic
7e6ec7f192 add Extended Helmholtz-Ellis accidentals (MHD Boston) 2016-10-22 15:32:40 -04:00
lasconic
03237ee332 fix read114 test for accidentals, remove old unused accidentals and replace by naturals. Order accidentals like SMuFL. Add a couple more accidentals. 2016-09-29 15:17:51 +02:00
Werner Schweer
460e5e74bf fix 123506: Scrambled scores in Start Center 2016-09-26 12:02:05 +02:00
Werner Schweer
8c18761d3b change accidental file format 2016-09-22 12:02:41 +02:00
Joachim Schmitz
a9829292a1 fix #108206: Add natural sharp and natural flat to accidentals palette
see also https://musescore.org/en/node/108191

Missing: support for these in Emmentaler and Gonville, as well as proper
vtests
2016-09-19 12:33:49 +02:00
werner
3172717cbb autoplace for volta 2016-07-10 12:00:57 +02:00
werner
1a8cdf1da4 remove many setLayoutAll() calls; cleanups 2016-06-14 10:32:34 +02:00
werner
22d16c3615 inspector updates; misc. cleanups 2016-06-09 09:33:19 +02:00
ws
bbd802f8ae framework for partial relayout 2016-04-13 11:35:21 +02:00
ws
492709f203 code cleanups 2016-04-13 11:10:17 +02:00
ws
9f933d8503 Layout reorganization 2016-04-13 11:05:04 +02:00
ws
6f2cf4c2c1 fix build for gcc 5.2 2015-10-27 11:30:09 +01:00
Joachim Schmitz
586d03d492 fix #57271: translate accidental subtypes in select dialog 2015-04-23 15:57:31 +02:00
ws
6071a0a003 enable scripting tests again 2015-04-04 11:28:14 +02:00
lasconic
f2c9a4140a comment so some tes tests, replace QVariant::fromValue by cast to int... 2015-04-03 22:50:59 +02:00
ws
e9222d1b45 move enums Accidental::Role and ::Type 2015-04-03 18:24:12 +02:00
ws
0e0e258f5a fix high pitch accidental calculation (midi 127) 2015-03-31 17:35:19 +02:00
Joachim Schmitz
a563ecb773 translate accidental names in accessibleInfo 2014-12-12 14:08:06 +01:00
lasconic
fc7188b329 fix note parenthesis SMuFL way, use proper accidental parenthesis from SMuFL font 2014-11-25 18:01:41 +01:00
Marc Sabatella
58e5a74588 fix #8924: native support for slash notation 2014-11-17 22:02:12 -07:00
Joachim Schmitz
8e4c269ffe fix toolTips to use Sentence case 2014-10-15 21:16:54 +02:00
Joachim Schmitz
6b1a7192b0 fix translation of some accessibility infos
fix translation of some accessibility infos:
* accidentals
* articulations
* clefs
* jumps  (need to run thru Transifex first to be seen)
* keysigs
* marker (need to run thru Transifex first to be seen)
* noteheadnames (not shown anywhere currently)
* tremolo
* trills (need to run thru Transifex first to be seen)

fix some capitalization issues
2014-08-22 18:29:52 +02:00
Andrei Tuicu
c3ff25358b fix 30281
Fix readability
Optimize string allocation
	modified:   libmscore/accidental.cpp
	modified:   libmscore/ambitus.cpp
	modified:   libmscore/articulation.cpp
	modified:   libmscore/barline.cpp
	modified:   libmscore/chord.cpp
	modified:   libmscore/chordline.cpp
	modified:   libmscore/chordrest.cpp
	modified:   libmscore/dynamic.cpp
	modified:   libmscore/fingering.cpp
	modified:   libmscore/hairpin.cpp
	modified:   libmscore/harmony.cpp
	modified:   libmscore/jump.cpp
	modified:   libmscore/keysig.cpp
	modified:   libmscore/marker.cpp
	modified:   libmscore/measure.cpp
	modified:   libmscore/note.cpp
	modified:   libmscore/ottava.cpp
	modified:   libmscore/rest.cpp
	modified:   libmscore/score.h
	modified:   libmscore/tempotext.cpp
	modified:   libmscore/text.cpp
	modified:   libmscore/timesig.cpp
	modified:   libmscore/tremolo.cpp
	modified:   libmscore/trill.cpp
	modified:   libmscore/volta.cpp
	modified:   mscore/scoreaccessibility.cpp
2014-08-21 20:33:11 +03:00
Andrei Tuicu
6460485d3f Score accessibility system.
Provides screen-reader feedback for the selected element.
2014-08-19 00:09:13 +03:00
ws
6d46589c56 fix #29431 2014-08-13 21:01:21 +02:00
Joachim Schmitz
1b996da850 fix #29341, at least partial
but I think an update to/from Transifex is needed to make it work
2014-08-11 16:22:58 +02:00
lasconic
3a68b492c5 fix accidental parenthesis in palette by using an icon, it's the same than the note one, added a shortcut to add bracket around note and accidental 2014-07-18 00:11:00 +02:00
Joachim Schmitz
b6be7a9852 rename AccidentalRole and AccidentalType to Role and Type 2014-06-26 11:57:41 +02:00
Joachim Schmitz
75623c53dc move ElementType to Element::Type
needed to make it available to the Plugin framework
2014-06-26 11:57:35 +02:00
Joachim Schmitz
836db56543 fix warnings reg. wrong format specifier 2014-06-17 14:23:15 +02:00
Nicolas Froment
862ddaf062 Merge pull request #944 from Jojo-Schmitz/warnings
Fix warnings when building in RELEASE mode
2014-06-17 12:44:58 +02:00
Marc Sabatella
264eee216a fix #22205: microtonal accidentals display as naturals after earlier accidental 2014-06-12 20:13:41 -06:00
Joachim Schmitz
9a636ac9c6 remove some unneeded '\n'
and also fix a typo
2014-06-10 09:27:55 +02:00
Joachim Schmitz
76db7c6f66 convert enum AccidentalVal into enum class 2014-05-27 11:41:07 +02:00