Class AnalysisPianoHands

java.lang.Object
eu.bandm.music.applications.feldproj.AnalysisPianoHands

public class AnalysisPianoHands extends Object
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 Details

    • score

      public final FeldmanProjection_n score
      Needed to step through the time points, identify pauses, and get event ends.
    • start

      @Opt protected @Opt Rational[] start
      Contains a start point of an event for each voice, as long as it is sounding.
    • end

      @Opt protected @Opt Rational[] end
      Contains the end point of the event currently sounding in each voice.
  • Constructor Details

  • Method Details

    • apply

      public void apply(Vox harmonics, Vox sound1, Vox sound2)
      Scan these three voices for three overlapping events. If a triple is found, print its beginning time point to standard output.
    • rat2measurenumber

      public static String rat2measurenumber(Rational pos)
      Converts a time point rational (0-based) to a string representation of measure number (1-based) plus internal offset as rational (iff !=0)
    • findMultiStops

      public 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. If there is at least one, the total figures are printed of double, triple, and quadruple stops.
      Parameters:
      score - the data
      name - to identify the score in the printed output
      vname - of the voide to analyse
    • findMultiStops1

      public 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. If there is at least one, the figures are printed seperately for harmonics, pizzicato, and ordinario, to the standard output.
      Parameters:
      score - the data
      name - to identify the score in the printed output
      vname - of the voide to analyse
    • main

      public static void main(String[] args)
      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.