Class SyncPatterns2musicXml
java.lang.Object
eu.bandm.music.applications.indisp.SyncPatterns2musicXml
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidbeam(PrintWriter pw, String what) (package private) static voidbeamGroup2musicXml(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.(package private) static voidoneNote2musicXml(int vox, int pos, BiFunction<Integer, Integer, Integer> dynamics, PrintWriter pw) (package private) static voidrest1_8(PrintWriter pw, boolean closeNote) (package private) static voidselections2musicXml(NSM nsm, File target, NSM.BeamStyle beamStyle) Service three: Print scales of continuous selections by indispensability value.(package private) static voidvoice2musicXml(NSM pattern, boolean[] events, int lengthInMeasures, int vox, String partId, BiFunction<Integer, Integer, Integer> dynamics, @Opt String[] comments, NSM.BeamStyle beamStyle, PrintWriter pw)
-
Field Details
-
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
-
rest1_8
-
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 definesize = 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
-