Class SyncPatterns2musicXml

java.lang.Object
eu.bandm.music.applications.indisp.SyncPatterns2musicXml

class SyncPatterns2musicXml extends Object
  • Field Details

    • PAUSES

      static final String[] PAUSES
  • Constructor Details

    • SyncPatterns2musicXml

      SyncPatterns2musicXml()
  • Method Details

    • oneNote2musicXml

      static void oneNote2musicXml(int vox, int pos, BiFunction<Integer,Integer,Integer> dynamics, PrintWriter pw)
      Parameters:
      dynamics - function from voice and timepoint into {0..3}
    • beam

      static void beam(PrintWriter pw, String what)
    • rest1_8

      static void rest1_8(PrintWriter pw, boolean closeNote)
    • beamGroup2musicXml

      static void beamGroup2musicXml(int vox, boolean[] events, int start, int len, BiFunction<Integer,Integer,Integer> dynamics, @Opt String[] comments, NSM.BeamStyle beamStyle, PrintWriter pw)
      Print one beam group.
    • voice2musicXml

      static void voice2musicXml(NSM pattern, boolean[] events, int lengthInMeasures, int vox, String partId, BiFunction<Integer,Integer,Integer> dynamics, @Opt String[] comments, NSM.BeamStyle beamStyle, PrintWriter pw)
    • selections2musicXml

      static void selections2musicXml(NSM nsm, File target, NSM.BeamStyle beamStyle) throws FileNotFoundException
      Service three: Print scales of continuous selections by indispensability value. Numbering corresponds to that on the slider in the interactive GUI. The indispensability values, as assigned to the positions, go from 0 to size-1. Since GUI sliders have a "0" in the middle, it is sensible to define
        size  = all Pause
        size-1 play only the one most important (>= size-1)
        ...
        n  play only those which are >=  n 
        ...
        1  play only those which are >= 1  (ie. all but the smallest)
        0  play all 
        -1 play all but the largest ie. invalid input: '<' size - 1
        -2 play all but the largest two ie. invalid input: '<' size - 2 
        ...
        -n play SMALLER than size + n 
        ...
        -(size-1) play only the least ie.  invalid input: '<' 1 
        -size  ALL PAUSE ie. play smaller than 0 
        

      Attention: writes to pwd with a fixed file name.

      Throws:
      FileNotFoundException