Class TablatureGraphics
java.lang.Object
eu.bandm.music.applications.tabstaff.TablatureGraphics
-
Field Summary
Modifier and TypeFieldDescription(package private) final Tabstaff.Configuration
(package private) @Opt DisplayTablature
Created when initializing the graphic conversion.(package private) Tabstaff.SubArea
For drawing the staves use the very first clef event(package private) final SimpleMessage.Sender<eu.bandm.tools.util.xml.XMLDocumentIdentifier>
protected final MSplitter
PROVIS one and only metric splitter currently in use.static final MTreeSpec
PROVIS only metric currently supported.(package private) final Tabstaff
(package private) MSplitter.Result
Created when initializing the graphic conversion.(package private) MSplitter.Result
Created when initializing the graphic conversion.All events played by the left hand, sorted by time points.All events played by the left hand, sorted by time points. -
Constructor Summary
ConstructorDescriptionTablatureGraphics
(Tabstaff score, SimpleMessage.Sender<eu.bandm.tools.util.xml.XMLDocumentIdentifier> msg, Tabstaff.Configuration configuration) -
Method Summary
Modifier and TypeMethodDescriptionprotected static boolean
mergeIsEmpty
(Map<Tp, Set<Event>> map) protected void
Common calculations for print and interactive graphics.void
Generate a tablature graphic and show it in an interactive window.protected MSplitter.Result
splitOneHand
(Map<Tp, Set<Event>> map) Calculate the metric split result for one set of events, which contains all events in one hand in the first measure.void
Merge all left- and right-hand events into one single set each.void
writeToFile
(String filename)
-
Field Details
-
msg
-
score
-
configuration
-
sumRightHand
All events played by the left hand, sorted by time points. Since this data is needed for tablature-style notation, all events with no hands specified are put here or intosumLeftHand
by default. -
sumLeftHand
All events played by the left hand, sorted by time points. Since this data is needed for tablature-style notation, all events with no hands specified are put here or intosumRightHand
by default. -
displayTablature
Created when initializing the graphic conversion. Re-used for interactive graphics and file graphics. -
splitResultLeft
Created when initializing the graphic conversion. Re-used for interactive graphics and file graphics. -
splitResultRight
Created when initializing the graphic conversion. Re-used for interactive graphics and file graphics. -
initialAreaSelection
For drawing the staves use the very first clef event -
MTREE_4_4
PROVIS only metric currently supported. -
mSplitter
PROVIS one and only metric splitter currently in use.
-
-
Constructor Details
-
TablatureGraphics
TablatureGraphics(Tabstaff score, SimpleMessage.Sender<eu.bandm.tools.util.xml.XMLDocumentIdentifier> msg, Tabstaff.Configuration configuration)
-
-
Method Details
-
prepareGraphics
protected void prepareGraphics()Common calculations for print and interactive graphics. -
sumUpHands_2
public void sumUpHands_2()Merge all left- and right-hand events into one single set each. Note with unspecified hand are treated as RIGHT hand. This will be used to generate one voice each, with multiple "note heads". Pauses are ignored, unless there are ONLY pauses at this time point. A B C % % D E % ------------------------------------------- A Da Bd CE c % -
mergeIsEmpty
-
splitOneHand
Calculate the metric split result for one set of events, which contains all events in one hand in the first measure. -
showInteractiveGraphic
public void showInteractiveGraphic()Generate a tablature graphic and show it in an interactive window. -
writeToFile
-