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
Modifier and TypeFieldDescriptionFIXME APIDOC +++ weitermachen :protected eu.bandm.tools.util.xml.XMLDocumentIdentifier
Must be global for error message locations.protected String
Evidentprotected Integer
protected LineNumberReader
Must be global for error message locations.protected MessageCounter
Evidentprotected MessageReceiver<SimpleMessage<eu.bandm.tools.util.xml.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 PrintWriter
FIXME APIDOC +++ weitermachen :(package private) final List<eu.bandm.music.demoMetric.DMBatch.TestCase>
-
Constructor Summary
ConstructorDescriptionDMBatch
(@Opt MessageReceiver<SimpleMessage<eu.bandm.tools.util.xml.XMLDocumentIdentifier>> extMsg) Called by test/.../TestMSplit and Demometric2 -
Method Summary
Modifier and TypeMethodDescriptionprotected void
(package private) void
boolean
prepareParameters
(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 void
S_error()
protected void
protected void
writeOneLilyPondTest
(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
protected eu.bandm.tools.util.xml.XMLDocumentIdentifier inputFileIdMust 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
public DMBatch(@Opt @Opt MessageReceiver<SimpleMessage<eu.bandm.tools.util.xml.XMLDocumentIdentifier>> extMsg) 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)
-