Commit graph

9 commits

Author SHA1 Message Date
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
Joachim Schmitz
18b86cf23a Fix #271103: Add 7-string Guitar and Cavaquinho (4-string Guitar)
also tablature for both, the former needs a 7-string tablature type, so
appended that, also inserted missing 5-string types to the StaffTypes
enum and appended a 8-string tablature, as GuitarPro has that too.

See also https://musescore.org/en/node/271096

Don't show presets for more strings than the instrument is set up for

esp. counting only fretted strings, i.e. non-open strings
2018-06-24 10:32:44 +02:00
Werner Schweer
45c2d9136a guitar pro import update; add power tab import 2017-11-16 10:59:35 +01:00
Werner Schweer
c5f46bb208 rename Xml() -> XmlWriter() 2016-11-19 11:51:21 +01:00
Maurizio M. Gavioli
23f3348405 TAB: Make tabs aware of staff transpositions.
Feature has been requested and discussed at length in the forum thread: http://musescore.org/en/node/31016

To implement this, the fret-to-pitch relation has been made dependent of the staff, as each staff may have an individual transposition value in addition to the string data. And -- in addition -- on tick, in preparation of dealing with ottavas and capos.
2015-02-18 10:11:58 +01:00
Maurizio M. Gavioli
99c8dc0de8 Open strings in StringData.
Allows to mark strings as open (non-fretted).
Defaults to fretted, keeping backward-compatibility with existing scores.
Adds an attribute `open="1"` in score (and instruments.xml) string data (defaults to "0").

Benefits:
- allows future support (also in TAB's) for string instruments with non-fretted strings (mainly but, I think, not only the lute family)
- gives correct fretting for non-fretted strings
- instrument range can more easily and automatically linked to actual string tuning
- as this will be eventually needed for better TAB support, the score reading/writing will be already able to manage it.
2014-08-15 02:15:24 +02:00
Maurizio M. Gavioli
1e047709cb In staff type dlg box, only displays staff types from groups relevant to staff instrument.
Also removes the default guitar string data, which does not make sense for non-stringed instruments (stringed instruments are assumed to have proper string data in instruments.xml anyway)
2014-05-16 12:25:01 +02:00
ws
436c116b01 add default string table 2014-05-13 17:15:43 +02:00
Maurizio M. Gavioli
2acd24ba1c Finish renaming of Tablature class to StringData
Renames also the files hoding the class itself:
- libmscore/tablature.cpp => stringdata.cpp
- libmscore/tablature.h => stringdata.h

No actual change in the code, only updated references to stringdata.h in #include's.
2013-12-05 21:37:28 +01:00
Renamed from libmscore/tablature.h (Browse further)