Commit graph

44 commits

Author SHA1 Message Date
Werner Schweer
90b1991912 replace Q_OBJECT with Q_GADGET for all Element based classes 2017-02-17 15:48:28 +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
c5f46bb208 rename Xml() -> XmlWriter() 2016-11-19 11:51:21 +01:00
lasconic
b149f9caff add more style to be compatible with SMuFL engravingDefaults 2016-10-10 23:05:51 +02:00
werner
9f572b57f7 fix #123501 LYrics hyphen gets positioned too low 2016-09-08 10:54:44 +02:00
werner
49ceda6bfb update lyrics properties 2016-08-26 12:43:43 +02:00
Nicolas Froment
4965fd2054 Merge pull request #2785 from Jojo-Schmitz/lyrics-dash-distance
fix #88171: Lyrics dash max distance as a parameter
2016-08-17 14:43:21 +02:00
werner
9faf3f79e7 autoplace for lyrics 2016-08-17 12:52:35 +02:00
Joachim Schmitz
ab9ffd633c fix #88171: Lyrics dash max distance as a parameter
Turns the previously hard-coded max. distance between multiple dashes
into a user configurable score style.

__References__:
- Issue: https://musescore.org/en/node/88171
- Original request with discussion and screen-shots:
https://musescore.org/en/node/87841

Shamelessly stolen from PR #2294, which needed a non-trivial rebase
2016-08-15 14:32:33 +02:00
Maurizio M. Gavioli
8c017d8536 Lyrics: Better dash control
This patch gives better control on lyrics dash management and it is intended to supersede https://github.com/musescore/MuseScore/pull/2213 which did not suit the taste of several forum users; for a discussion, see https://musescore.org/en/node/76021 .

Adds 3 new score style parameters:
- `lyricsDashMinLength` to control the minimum dash length (default: 0.4sp)
- `lyricsDashMaxLength` to control the maximum dash length (default: 0.8sp)
- `lyricsDashForce`: if set to __true__, a dash is always generated between two syllables of a word and, if there is not enough space for the min dash length, more space is added between the syllables to accommodate it; if set to __false__, no extra space is added and the two syllables are joined together (default: true)

The effect of the last parameter is exemplified by the following screen-shots:

Current situation (before this patch); if there is no room for the min dash length, the dash is skipped and some blank is left between syllables:

Patch with `lyricsDashForce = true`; chords are further spaced and a min-length dash is inserted:

Patch with `lyricsDashForce = false`: the second syllable is moved (slightly) to the left to reclaim the blank:
2015-10-03 23:55:33 +02:00
Maurizio M. Gavioli
2f7b5bfe76 Updates the documentation for classes named from E to L to proposal A) in http://dev-list.musescore.org/Plugin-documentation-generated-manual-td7579164.html
Properties are also sorted in alphabetical order for easier identification.

No attempt made to evaluate what to include and what to exclude from documentation: anything which is currently documented is retained. Case by case decisions can always be made.

Also completed update for `Accidental`.
2015-04-24 00:55:46 +02:00
Maurizio M. Gavioli
59ba1b5f10 Fix #48436 - Lyrics melisma and deleting measures / Fix #48491 - Lyrics melisma and time change
**Deleting measures** When measures are deleted, spans of lyrics melismas and dashes involved (`LyricsLine`s) were not correctly adjusted.

Also fixes the general case of removing or adding some time span intersecting `LyricsLine` spans.

**Rewriting measures** while rewriting measures (as for time changes), existing `LyricsLine`s were left over and then re-added. Now they are deleted while removing measures (`InsertRemoveMeasures::removeMeasures()`).
2015-03-10 11:38:27 +01:00
Maurizio M. Gavioli
1786f110d9 Fix typos and improve comments 2015-01-23 23:50:49 +01:00
Maurizio M. Gavioli
1153a1deca Make constants for lyrics syllabics accessible to other classes
Move constants for the syllabic metrics of lyrics to `lyrics.h` so they are accessible to other classes.
2015-01-23 20:58:01 +01:00
Maurizio M. Gavioli
dd41b196fe Show melisma line after first underscore
While entering a melisma, the first underscore has no specific visual effect.

This patch displays a short melisma after the first underscore, by setting a conventional non-0 lyrics `_ticks` value.

Note: If no second underscore is entered (edit mode is exited or a new syllable is entered in the following chord), the short melisma is left behind as a left-over. It may be the case to reset to 0 the melisma ticks (= no melisma at all) for instance when the score is saved, or read back.
2015-01-19 17:50:05 +01:00
ws
16764d4614 fix #44466: Crash extending volta over mmrest starting a new system + other cleanups 2015-01-19 12:41:16 +01:00
Maurizio M. Gavioli
c69d2a9262 Lyrics multi-system melisma and dashes
Implements melisma and dash lines for lyrics spanning several systems.

The melisma and dash line is based on the `SLine` class and its segments on the `LineSegment` class. Both the whole line and its segments are not selectable, marked as generated and not saved in the score file, which is not changed in any way.

For very wide dash segments, several dashes are drawn; the distance between the dashes is not configurable.

Lyrics layout code in `Measure` class and in `layout.cpp` file has been commented out as the lyrics line layout is all contained in the lyrics.cpp file

The line is registered with the `Score` (to have its layout delayed until all elements are positioned) with a mechanism similar to other `Spanner`'s, but in a different container (`_unmanagedSpanner`), as the owning `Lyrics` should decide when create, register, unregister and delete its line.

The line segments are registered with the `System` they belong to (to have them drawn), in the same way as other `Spanner`'s.

There is code for using the dash metrics of the lyrics font, but it is turned off via a conditional directive, as there does not seem to be a reliable way to determine the dash metrics; conventional values (determined by trials and errors and based on my taste!) are used when the conditional directive is off.
2015-01-11 10:16:19 +01:00
lasconic
93e1d5b737 shortcuts for select similar should work 2014-11-07 18:44:08 +00:00
Marc Sabatella
9a35941cf0 add subtype selection (verse number) for lyrics 2014-11-05 09:18:13 -07:00
ws
e797d3b5f0 remove verse number from Lyric 2014-10-22 12:08:39 +02:00
Marc Sabatella
ab15653628 avoid overlaps of melisma syllables, extenders, and hyphens 2014-09-22 11:56:32 -06:00
ws
6d46589c56 fix #29431 2014-08-13 21:01:21 +02:00
Joachim Schmitz
38a16b115b some cosmetic changes to plugin documentation 2014-06-26 11:57:52 +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
e299478fcc convert enum Syllabic into enum class 2014-05-23 10:35:29 +02:00
Joachim Schmitz
931e837c5e convert enum ElementType into enum class 2014-05-23 10:35:27 +02:00
Joachim Schmitz
7043cdaac5 convert "enum class" to "enum class : char"
or "enum class : signed char" or even "enum class: short", whatever/whenever feasible on all exsting "enum class" that don't have it yet, also fixing some signed vs. unadorned char. This
should reduce the memory footprint.
2014-05-23 10:35:15 +02:00
Joachim Schmitz
14290d26be expose HairpinType, Syllabic and GlissandoType
as the only Q_ENUMS() not accompnied by corresponding a
Q_DECLARE_METATYPE()
2014-05-16 14:17:03 +02:00
Joachim Schmitz
54ede6a1f6 improve builtin plugin documentation
reformatting, removing some comments that are irrelevant to plugin
framework in a way that DoxyGen should still find them, documenting the
enums and fully qualify all types that are specific to MuseScore,
2014-05-16 13:58:30 +02:00
lasconic
da6e8929b5 fix #7885: Lyric pasting should break at hyphens 2014-03-22 14:54:15 +01:00
ws
e18298e127 fix lyrics editing 2014-02-19 12:18:44 +01:00
ws
9ebabcc2e5 add namespace Ms 2013-05-13 19:43:59 +02:00
ws
220db94494 reorganize synthesizer; add zita1 reverb 2013-04-03 12:50:21 +02:00
ws
bf1cbe2aa0 use QXmlStreamReader for xml parsing 2013-01-11 18:10:18 +01:00
lasconic
451404f6e0 add syllabic access in plugin framework 2012-12-07 16:42:41 +01:00
lasconic
c56fa93212 read lyric from plugin framework 2012-11-26 15:54:08 +01:00
Werner Schweer
4afe07da6c moved property Placement to Element; change musicxml import/export to use Placement property 2012-10-31 14:21:13 +01:00
Werner Schweer
2cbb3a93ff add Placement property to more elements 2012-10-31 11:48:12 +01:00
Werner Schweer
37aa63b841 enhance 1.2 import of lyrics 2012-10-29 17:14:05 +01:00
Werner Schweer
2381bf1122 create lyrics as styled text; relayout after lyrics edit 2012-10-25 14:50:17 +02:00
Werner Schweer
3d91e61ef4 More plugin bindings 2012-07-25 11:49:34 +02:00
Werner Schweer
5182c9e085 derive Element from QObject; add Q_OBJECT into every Element class 2012-05-28 11:29:21 +02:00
Werner Schweer
1f9ccfcdce add libmscore
git-subtree-dir: libmscore
git-subtree-mainline: 412ca45401
git-subtree-split: 6047361bd0
2012-05-26 14:54:47 +02:00