Class AnalysisPianoHands
java.lang.Object
eu.bandm.music.applications.feldproj.AnalysisPianoHands
Analyse a
FeldmanProjection_n
score object
for multi stops and three overlapping piano events.
The further is done by simple static methods.
For the latter, construct an instance of this class and
invoke apply(eu.bandm.tscore.model.Vox,eu.bandm.tscore.model.Vox,eu.bandm.tscore.model.Vox)
.-
Field Summary
Modifier and TypeFieldDescriptionContains the end point of the event currently sounding in each voice.final FeldmanProjection_n
Needed to step through the time points, identify pauses, and get event ends.Contains a start point of an event for each voice, as long as it is sounding. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Scan these three voices for three overlapping events.static void
findMultiStops
(FeldmanProjection_n score, String name, String vname) Looks in the voice with the given name in the given score data for multistops.static void
findMultiStops1
(FeldmanProjection_n score, String name, String vname) Looks in the voice with the given name in the given score data for multistops.static void
Loads the tscore source for all five Projections and searches for overlapping chords in the piano voices and for multi stops in the string instruments.static String
Converts a time point rational (0-based) to a string representation of measure number (1-based) plus internal offset as rational (iff !=0)
-
Field Details
-
score
Needed to step through the time points, identify pauses, and get event ends. -
start
Contains a start point of an event for each voice, as long as it is sounding. -
end
Contains the end point of the event currently sounding in each voice.
-
-
Constructor Details
-
AnalysisPianoHands
Only constructor.
-
-
Method Details
-
apply
Scan these three voices for three overlapping events. If a triple is found, print its beginning time point to standard output. -
rat2measurenumber
Converts a time point rational (0-based) to a string representation of measure number (1-based) plus internal offset as rational (iff !=0) -
findMultiStops
Looks in the voice with the given name in the given score data for multistops. If there is at least one, the total figures are printed of double, triple, and quadruple stops.- Parameters:
score
- the dataname
- to identify the score in the printed outputvname
- of the voide to analyse
-
findMultiStops1
Looks in the voice with the given name in the given score data for multistops. If there is at least one, the figures are printed seperately for harmonics, pizzicato, and ordinario, to the standard output.- Parameters:
score
- the dataname
- to identify the score in the printed outputvname
- of the voide to analyse
-
main
Loads the tscore source for all five Projections and searches for overlapping chords in the piano voices and for multi stops in the string instruments. The results are printed to stdanard output.
-