Package eu.bandm.music.demoMetric
Class DMBatch
java.lang.Object
eu.bandm.music.demoMetric.DMBatch
Analyses an input file for test data and generates output.
The first column defines the type of input.
// this is a comment, followed by an MTree specification, stored as number 7 M 7 4*(1/4) // here a sequence of durations: D 1 1/3 2/7 // here comes a sequence of time points: // (there is only one common set of register numbers for durations and tps!): R 2 1/3 4/7 // pause and sound sequence P 0 S // Option settings, register 0(zero) is reserved for default O 1 --max_dots_negative 1 // Here the first test application, combining options, metric tree, rhythm and sound info: // This will generate a "new voice" in the "FIXME alle stimmen in EINE score, aber metrum-angabe je voice getrennt!.ly" file, and // a file included in " .pngs.tex" named " ._0_7_3_0.png" // "number zero" are the default options = no options altered S 0 7 3 0 // The following example case has additionally a comment text in the tex and ly file: S 1 7 3 0 this is an example with non-default options // The following application has additionally a tempo curve and goes to " .1_7_3_0_A.png": T 1 7 3 0 A0 60 1.0 1/2 120 2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionFIXME APIDOC +++ weitermachen :protected XMLDocumentIdentifierMust be global for error message locations.protected StringEvidentprotected Integerprotected LineNumberReaderMust be global for error message locations.protected MessageCounterEvidentprotected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> EvidentBack-up of the source text of all "M" lines in the file.Parsing result of all "M" lines in the file.(package private) final Map<Integer, MetricSplitterOptions> protected PrintWriterFIXME APIDOC +++ weitermachen :(package private) final List<eu.bandm.music.demoMetric.DMBatch.TestCase> -
Constructor Summary
ConstructorsConstructorDescriptionCalled by test/.../TestMSplit and Demometric2 -
Method Summary
Modifier and TypeMethodDescriptionprotected void(package private) voidbooleanprepareParameters(int optnum, int metrum, int rh, int snotp) Load the test data from the registers with the given numbers .(package private) Map<Dm2Options.format, @Opt File> processFile(Dm2Options myOptions) Called bY DemoMetric2, interactively or by command line.protected voidS_error()protected voidprotected voidwriteOneLilyPondTest(int linenumber, int optnum, int metrum, int rh, int snotp, String comment) (package private) File(package private) File
-
Field Details
-
mtrees
Parsing result of all "M" lines in the file. -
msource
Back-up of the source text of all "M" lines in the file. -
points
FIXME APIDOC +++ weitermachen : -
duras
FIXME APIDOC +++ weitermachen : -
snotps
-
options
-
testCases
-
msg
Evident -
mCounter
Evident -
inputFileName
Evident -
inputFileId
Must be global for error message locations. -
lineNumberReader
Must be global for error message locations. -
outpw
-
current_mtspec
-
normalized_tps
-
normalized_snotps
-
current_options
-
allMyOptions
-
lastMeter
-
-
Constructor Details
-
DMBatch
Called by test/.../TestMSplit and Demometric2
-
-
Method Details
-
ERROR
-
WARNING
-
processFile
Called bY DemoMetric2, interactively or by command line. -
loadFile
-
S_error
protected void S_error() -
prepareParameters
public boolean prepareParameters(int optnum, int metrum, int rh, int snotp) Load the test data from the registers with the given numbers . Also called by test/../MSplitTest. Copy the indicated position ofoptions,mtrees,points,duras,snotps) into dedicated registers ready for execution =current_mtspec,normalized_tps,normalized_snotps, andallMyOptions. -
writeTestCasesToPngTex
File writeTestCasesToPngTex() -
writeTestCasesToLilyPond
File writeTestCasesToLilyPond() -
writeOneLilyPondTest
protected void writeOneLilyPondTest(int linenumber, int optnum, int metrum, int rh, int snotp, String comment)
-