Commit graph

14 commits

Author SHA1 Message Date
ws
7dc9aed512 rework initial clef, staff type change
- initial clef is now determined by instrument
- extend instrument to allow different clefs for stave (piano)
- do not write first generated clef
2014-08-14 14:34:45 +02:00
ws
e8e5f99c71 fix #28331 2014-07-27 15:06:49 +02:00
ws
f97a8b22c6 cleaner clef/cleflist implementation 2014-07-25 17:13:42 +02:00
Maurizio M. Gavioli
93e31dc04c Fix #18869 : restore original clef on ChangeStaffType undo
When a staff type change is undone, the previous staff clef is not restored, if it has been changed to suit the new staff type.

Fixed by storing the original initial clef and restoring it on undo. Should fix the following issues: #18869, #23374, #24294 and, possibly others too.

- Added to ChangeStaffType class an initialClef member variable to hold the original staff initial clef type list.
- ChangeStaffType::flip() split into undo() and redo(), as the managing the clef and setting the staff type must be applied in reversed order in the two cases.
- Clef::layout() now hides a clef not compatible with the staff group, if the clef is not generated or changes it to the same clef as the staff initial clef if generated
- TAB ad-hoc code in Clef::layout() to check for compatibility between the clef type and the staff group generalized to all groups removed.
- Fixed GuitarPro test reference scores, which all contained wrong clefs for the TAB staves.

Tested with a few 2.0 and 1.3 scores; more tests are probably necessary.
2014-05-27 01:47:30 +02:00
ws
02d0fcca12 fix #25646 2014-05-08 17:59:24 +02:00
ws
e534cccef8 bug fixes for concert pitch switch 2014-04-09 16:09:21 +02:00
ws
517627a21f update clef implementation 2013-09-05 16:38:04 +02:00
ws
95de82de22 fix #21965 2013-09-04 18:03:21 +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
lasconic
452e44c94b fix #19312: Drums in 1.2 score have a treble clef after enabling Concert Pitch 2013-03-21 22:09:14 +01:00
ws
59bf7f378a fix all regressions detected by mtest 2013-01-17 12:56:14 +01:00
ws
bf1cbe2aa0 use QXmlStreamReader for xml parsing 2013-01-11 18:10:18 +01: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