Commit graph

68 commits

Author SHA1 Message Date
lasconic
92d7e1369a revert commit 6dbdd05a 2015-03-06 13:38:22 +01:00
Maurizio M. Gavioli
4e68502b0f Fix #29986 : Ottavas in TABs - Solution A)
Ottavas are not used in TAB staves, as they do not really make sense in TAB's. Yet, currently ottavas:

- can be dropped on TAB staves
- ottavas added to standard staves are duplicated in TAB staves linked to them

Fix:

- Ottavas cannot be dropped on TAB staves any longer. Attempting to drop an Ottava on a TAB, results in the action being ignored.
- If an `Ottava` is added to a standard staff linked to TAB staves, the standard staff operation is carried over exactly as before, but the Ottava element is not replicated in the TAB linked staff; instead, the actual pitches of corresponding notes in the TAB staff are shifted by the pitchOffset of the Ottava.
- If the `Ottava` span is later edited (in the standard staff, of course), the pitches of the corresponding TAB staff notes are updated accordingly.

Regarding adding ottavas directly to TAB staves, either linked, there is no difference between Solution A) and Solution B): with both, ottavas **cannot** be added to TAB staves.

When TABs are linked to standard staves and ottavas are added to the standard staff, the differences between Solution A) and B) are:

- A) does not create **any** `Ottava` element in TABs; B) creates hidden `Ottava` elements in the linked TAB.
- A) modifies the TAB note pitches to render the ottava effect; B) does not change the stored pitches, only the fretting.

I am not very fond of the hidden `Ottava` trick of Solution B), but that solution seems more in tune with the current code and easier to understand (and maintain). This solution A) seems to me less tricky, but probably less clear to the unaware developer, as each modification of the 'master' `Ottava` has to be cloned into the linked TAB, at the proper place and time with respect to undo/redo machinery.

My 'instinctive' preference is for Solution B), but advice is welcome!
2015-02-25 23:59:41 +01:00
Marc Sabatella
777f30c038 fix #40566: add text style for pedal, baseline alignment 2015-02-21 14:52:56 -07:00
ws
24419cbf95 fix #45961 Adding measures does not mark the file as changed 2015-02-03 13:42:37 +01:00
ws
822aa31be3 cleanup for score dirty status 2015-02-02 10:54:48 +01:00
ws
27267b09f4 fix #22695: Text ottava changes to symbol after reset 2014-12-02 18:47:38 +01:00
Marc Sabatella
eb52afec85 fix #36446: ottava numbers only property not read in inspector 2014-10-12 11:38:02 -06:00
Marc Sabatella
dbae0e1928 34586: placement ignored for ottava in Inspector 2014-10-10 14:00:02 -06: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
01ebb2e443 fix #29736 2014-08-18 11:33:28 +02:00
Bartlomiej Lewandowski
cbaa128e4d Added comments and spaces 2014-08-15 22:49:59 +02:00
ws
9e93f15037 fix #29511 2014-08-13 15:42:55 +02:00
Bartlomiej Lewandowski
5311a65614 Filter for hairpin, ottava, trill and pedal line. 2014-07-30 14:49:53 +02:00
lasconic
e7a782ed83 Ottava position is lost between save and reload 2014-07-28 18:25:12 +02:00
ws
17910f7441 remove id from spanner class 2014-07-21 14:28:37 +02:00
ws
a2c0bf6188 fix #26476 2014-07-15 12:49:51 +02:00
Bartlomiej Lewandowski
00ac2e1c09 Fixed ottava copy constructor to include style data 2014-07-11 11:57:26 +02:00
ws
d59cc84ee2 fix some spanner bugs 2014-07-09 18:05:58 +02:00
Joachim Schmitz
206b1e5798 move OttavaType to Ottava::Type
needed to make it available to the plugin framework
2014-06-26 12:01:52 +02:00
Joachim Schmitz
e50bd46532 move enum Placement to Element::Placement
needed to make it available to the Plugin framework
2014-06-26 11:49:08 +02:00
ws
e8be73f41b fix transposition when changing instrument 2014-06-04 10:40:26 +02:00
Joachim Schmitz
562c92e2bc convert enum PlayMode into enum class
and make enum LayoutFlag a ": char" (making it an enum class requires
more work, as it is used for flags)
2014-05-30 13:37:35 +02:00
Joachim Schmitz
79474e3fcc convert unnamed enum into enum TextStyleType
more work needed to make it an enum class
2014-05-30 13:37:30 +02:00
Joachim Schmitz
7f1b612615 convert enum P_ID into enum class 2014-05-26 18:18:01 +02:00
Joachim Schmitz
0b43247956 convert enum StyleIdx into enum class 2014-05-26 15:31:36 +02:00
Joachim Schmitz
3b7bd56318 convert enum Placement to enum class 2014-05-23 10:35:02 +02:00
LucaRood
e7f1c19eb8 fix #25424: ottava playback solved 2014-04-16 05:47:52 -03:00
lasconic
fda46e955c fix import of ottava type from 1.3 files 2014-03-20 16:29:49 +01:00
ws
5297c963dd textline+ottava updates 2014-03-10 10:50:32 +01:00
ws
d162a9ee91 simplify TextLine, use only text and drop symbols 2014-03-06 14:53:22 +01:00
ws
9a8e05e734 fix mtest 2014-01-13 11:22:18 +01:00
ws
2902cf6dae smufl: add ottava numbers for emmentaler 2014-01-09 13:09:58 +01:00
ws
d9c1b78851 cleanup sym.h use 2013-11-12 09:29:13 +01:00
ws
733c1934db smufl integration, part I 2013-11-12 09:29:12 +01:00
lasconic
2f916a235e fix #22867: Tooltips of 8vb and 15ma incorrect 2013-09-26 14:32:52 +02:00
lasconic
740fe88f9c fix name of 8vb 2013-09-24 21:05:32 +02:00
ws
4c2e2e971b more fixes for line editing 2013-08-30 12:46:34 +02:00
ws
b44dc2047d simple implementation of repeat (R) last chord in input mode 2013-08-30 12:46:34 +02:00
ws
dfe30326ac more fixes for spanners & import 2013-08-29 11:08:37 +02:00
ws
839b2dc313 fix for line editing; fix ottava import from 1.3 2013-08-28 11:10:47 +02:00
ws
416e7ddff7 change spanner to use closed interval tick-tick2 2013-08-12 10:38:07 +02:00
ws
8fd9d2c479 fixes for line edit mode 2013-08-12 10:38:06 +02:00
ws
feff123ba1 more styling for ottava 2013-08-12 10:38:06 +02:00
ws
42695f0b9b implement placement above/below for ottava 2013-08-09 14:44:38 +02:00
ws
f95059f6ee fix inspector handling of QComboBox 2013-08-09 13:20:15 +02:00
ws
edc8008961 updates for style 2013-08-09 11:42:45 +02:00
ws
c4b43b8ba5 extend styles and inspector; add new bagpipe palette to master palette 2013-08-08 11:38:50 +02:00
ws
8bbceb045f inspector update: make styled properties undoable 2013-08-07 13:21:05 +02:00
ws
cc10cd0372 distinguish between styled and unstyled properties in inspector 2013-08-06 21:15:25 +02:00