Package eu.bandm.music.entities
Class MSplitter.Result.Dumper
java.lang.Object
eu.bandm.music.entities.MSplitter.Result.WriteOut
eu.bandm.music.entities.MSplitter.Result.Dumper
- Enclosing class:
- MSplitter.Result
Display the result of a metric split by displaying the sequence of call-back invocations.
-
Field Summary
Fields inherited from class eu.bandm.music.entities.MSplitter.Result.WriteOut
bracketStack, currentProportion
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close_proportion
(Rational proportion, Rational startTime) Close an open tuplet bracket.void
open_proportion
(Rational proportion, Rational startTime) Start a new tuplet bracket.void
writeOut
(int index, MTree node, RationalDuration.DottedBaseDuration symbol, Rational proportion, StemEnd beams, boolean isSound, boolean isFirst, boolean isLast) Write out one symbol of an event.Methods inherited from class eu.bandm.music.entities.MSplitter.Result.WriteOut
process, testCloseBrackets, testOpenBrackets, x_writeOut
-
Constructor Details
-
Dumper
Only constructor.- Parameters:
ps
- the target of the printing
-
-
Method Details
-
writeOut
public void writeOut(int index, MTree node, RationalDuration.DottedBaseDuration symbol, Rational proportion, StemEnd beams, boolean isSound, boolean isFirst, boolean isLast) Description copied from class:MSplitter.Result.WriteOut
Write out one symbol of an event.- Specified by:
writeOut
in classMSplitter.Result.WriteOut
- Parameters:
index
- the index into the original event listnode
- the MTree node (for accessing "weight" etc.)symbol
- the (possibly dotted) symbol to printproportion
- the currently effective proportion (for convenience!)beams
- describes left and right beams and beamlets / flagsisSound
- whether the symbol is sound and not pause (for convenience)isFirst
- whether the symbol is the very first in the eventisLast
- whether the symbol is the very last in the event
-
open_proportion
Description copied from class:MSplitter.Result.WriteOut
Start a new tuplet bracket. The parameter "proportion" is the specific proportion, as defined with theMTree.EssentialBracket
class.- Specified by:
open_proportion
in classMSplitter.Result.WriteOut
-
close_proportion
Description copied from class:MSplitter.Result.WriteOut
Close an open tuplet bracket. The parameter "proportion" is the specific proportion, as defined with theMTree.EssentialBracket
class.- Specified by:
close_proportion
in classMSplitter.Result.WriteOut
-