Commit graph

57 commits

Author SHA1 Message Date
Dmitri Ovodok
99c7b0d746 Add more information to setLayout() 2019-10-25 16:18:41 +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
c354eb24c3 Remove read300 functions 2018-09-19 01:57:37 +03:00
Dmitri Ovodok
9bb7666779 Use a universal <location> tag to denote various position shifts 2018-08-16 19:09:58 +03:00
Dmitri Ovodok
55bef706b8 Add API for retrieving positions of elements in terms of fractions
Rename fpos -> rfrac
Merge Element::ftick with Element::afrac
2018-08-16 19:08:45 +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
33d1cd7fb4 rename StyleIdx -> Sid and P_ID -> Pid 2018-03-27 15:36:00 +02:00
Werner Schweer
0e4211e2d0 update let ring, palm mute 2017-11-27 16:55:52 +01:00
Werner Schweer
d9ff5a26f6 misc. layout fixes 2017-03-14 17:00:49 +01:00
lasconic
752bafc8e9 fix #99146: File > Save Selection… leads to corrupt score if selection is not 4/4 and does not start with time signature 2017-03-09 23:55:10 +01:00
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
c5f46bb208 rename Xml() -> XmlWriter() 2016-11-19 11:51:21 +01:00
Werner Schweer
f7d96502c3 update layout, change handling of clefs, system header and trailer 2016-10-25 17:35:55 +02:00
Werner Schweer
4e0b0dbae0 update layout code 2016-10-20 11:32:17 +02:00
Werner Schweer
79b7746f5b layout updates 2016-10-18 15:41:11 +02:00
Werner Schweer
b511d0a490 section break implies line break 2016-10-13 14:28:00 +02:00
Werner Schweer
ab1723fc6f implementation of 'no break' layout break type 2016-10-12 17:56:22 +02:00
lasconic
66dc473364 fix #127556: remove _repeatMeasure property from MeasureBase 2016-10-07 08:33:55 +02:00
werner
b85cad9d83 replace ticks in mscore file by fraction 2016-07-07 16:20:29 +02:00
ws
c56835afb1 mtest updates 2016-06-06 10:33:23 +02:00
ws
3f1aa2ed1f misc. updates to layout 2016-04-13 12:05:46 +02:00
ws
84cf28089b fix some regressions, mtest 2016-04-13 11:38:08 +02:00
ws
eb279e5e8a misc. layout fixes 2016-04-13 11:20:05 +02:00
ws
a6ded46190 fix vtests mmrest-1 bravura-10 gonville-10 2016-04-13 11:20:05 +02:00
ws
14ee35ba52 misc. regression fixes 2016-04-13 11:20:05 +02:00
ws
989aae1d93 fix note dot handling in inspector 2016-04-13 11:18:15 +02:00
ws
3d8749ffe9 some regression fixes, code cleanups 2016-04-13 11:08:01 +02:00
ws
9f933d8503 Layout reorganization 2016-04-13 11:05:04 +02:00
Maurizio M. Gavioli
3b27da04a0 Plugin Manual - Documentation update for classes M-P
Updates the documentation for classes named from M to P 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.

Description of methods for `QProcess` and `ScoreView` (in file libmscore/plugins.h) are stubs.
2015-07-13 00:21:09 +02:00
lasconic
61eed11401 fix all warnings on Mac OSX. Hopefully without side effects on other platforms. 2015-05-05 18:28:39 +02:00
ws
94ad0842ef fix #48561 Crash when toggling visibility of a line break over a multimeasure rest 2015-02-25 10:48:58 +01:00
ws
54a6d64d97 fix #48481 Last measure of score corrupt when applying local time signature 2015-02-23 10:10:18 +01:00
ws
13eccf97fb fix #47976 Crash when closing score with empty tet-frame 2015-02-17 21:12:19 +01:00
ws
ec8913a19b fix #45601 changing note value can lead to missing accidentals; simplify layout() 2015-02-17 20:22:38 +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
ws
0af0091e11 fix #30961 2014-08-27 14:36:42 +02:00
Maurizio M. Gavioli
d11f1b118b Fixes the following Q_INVOKABLE methods returning a QObject* by turning them into a property:
- Measure:
-- firstSegment
-- lastSegment
- MeasureBase:
-- nextMeasure
-- nextMeasureMM (new)
-- prevMeasure
-- prevMeasureMM (new)
- Score:
-- firstMeasure
-- firstMeasureMM (new)
-- (for firstSegment(), see special cases below)
-- lastMeasure
-- lastMeasureMM (new)
-- lastSegment

- Segment:
-- next (renamed from `next1`)
-- nextInMeasure (renamed from `next`)
-- prev (renamed from `prev1`)
-- prevInMeasure (renamed from prev)

Special cases:

- Cursor: The prototype of the `Q_INVOKABLE Ms::Note* Cursor::addNote(int pitch)` was wrong: corrected in `Q_INVOKABLE void Cursor::addNote(int pitch)`.
- QmlPlugin: `Q_INVOKABLE Score* QmlPlugin::readScore()` and `Q_INVOKABLE Score* QmlPlugin::newScore()` has been kept, as they are intended to be called from QML; code has been added to ensure the C++ ownership of the returned object.
- Score: `Q_INVOKABLE Segment* Score::firstSegment(Segment::Type segType)` is kept (as it needs a parameters), but code is added to ensure C++ ownership of the returned Segment*.
- Segment: `Ms::Element* Segment::element(int track)` has been made NOT Q_INVOKABLE; a variant `Q_INVOKABLE Ms::Element* elementAt(int track)` has been added specifically for QML with code to ensure the C++ ownership of the returned Element* (this was the cause for the crash of the Walk plug-in).
- FiguredBass: `Q_INVOKABLE Ms::FiguredBassItem* FiguredBass::addItem()` has been removed; plugin interface for FiguredBass needs to be redesigned anyway.

The few occurrences in the supplied plug-ins of the methods whose names did change have been updated.
2014-07-06 01:56:30 +02:00
Joachim Schmitz
29d17dae5c rename LayoutBreak::LayoutBreakType to LayoutBreak::Type 2014-06-26 11:57:45 +02:00
Joachim Schmitz
2ae0940bdd convert enum LayoutBreakType to enum class 2014-05-23 10:35:13 +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
wschweer
51a6f6e7cc expose LineBreakType to plugins 2013-10-05 23:13:33 +02:00
ws
7d919a97e9 fix some regressions for mm rests 2013-09-27 18:43:25 +02:00
ws
239ffd7456 change implementation of multi measure rests 2013-09-19 15:08:54 +02:00
lasconic
de4a24ad57 add break every X measure plugin, add a couple of new properties and function in plugin framework 2013-08-21 19:53:24 +02:00
lasconic
cf0d56d965 fix #21819: Q_INVOKABLE needs namespace declaration, better fix for #21812 2013-07-13 18:41:16 +02: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
Werner Schweer
c9f05e41b2 layout changes 2012-08-02 18:33:43 +02:00
Werner Schweer
32d697f85d layout changes for handling of system header 2012-07-31 09:48:37 +02:00