Package | Description |
---|---|
metdetection.meter.lpcfg |
Modifier and Type | Field and Description |
---|---|
private MetricalLpcfgQuantum[] |
MetricalLpcfgTerminal.originalPattern
The pattern of quantums that make up this terminal, in unreduced form.
|
private MetricalLpcfgQuantum[] |
MetricalLpcfgTerminal.reducedPattern
The pattern of quantums that make up this terminal, in fully reduced form.
|
Modifier and Type | Method and Description |
---|---|
private static MetricalLpcfgQuantum[] |
MetricalLpcfgTerminal.generateReducedPattern(MetricalLpcfgQuantum[] pattern)
Convert the given pattern into reduced form and return it.
|
MetricalLpcfgQuantum[] |
MetricalLpcfgTerminal.getOriginalPattern()
Get the original unreduced pattern of this terminal.
|
MetricalLpcfgQuantum[] |
MetricalLpcfgTerminal.getReducedPattern()
Get the pattern of this terminal.
|
static MetricalLpcfgQuantum |
MetricalLpcfgQuantum.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MetricalLpcfgQuantum[] |
MetricalLpcfgQuantum.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
private void |
MetricalLpcfgGenerator.addNote(MidiNote note,
java.util.List<Beat> beats,
MetricalLpcfgQuantum[][] quantums,
int[] notes32PerMeasure)
Add the given note into our tracking arrays.
|
private static void |
MetricalLpcfgTreeFactory.addNote(MidiNote note,
MetricalLpcfgQuantum[] quantums,
java.util.List<Beat> beats,
int firstBeatIndex,
int lastBeatIndex)
Add the given note into the given quantums array.
|
private void |
MetricalLpcfgGenerator.addQuantum(MetricalLpcfgQuantum quantum,
MetricalLpcfgQuantum[][] quantums,
int measure,
int beat,
int notes32PerMeasure)
Add the given quantum into the quantums array.
|
private void |
MetricalLpcfgGenerator.addQuantum(MetricalLpcfgQuantum quantum,
MetricalLpcfgQuantum[][] quantums,
int measure,
int beat,
int notes32PerMeasure)
Add the given quantum into the quantums array.
|
private static void |
MetricalLpcfgTreeFactory.addQuantum(MetricalLpcfgQuantum quantum,
MetricalLpcfgQuantum[] quantums,
int index)
Add the given quatnum into the given index of the given quantums array, if the type overrides that index's
current value.
|
private static void |
MetricalLpcfgTreeFactory.addQuantum(MetricalLpcfgQuantum quantum,
MetricalLpcfgQuantum[] quantums,
int index)
Add the given quatnum into the given index of the given quantums array, if the type overrides that index's
current value.
|
private static MetricalLpcfgQuantum[] |
MetricalLpcfgTerminal.generateReducedPattern(MetricalLpcfgQuantum[] pattern)
Convert the given pattern into reduced form and return it.
|
private static int |
MetricalLpcfgTerminal.getGCF(MetricalLpcfgQuantum[] pattern)
Get the greatest common factor of the lengths of all of the constituents in the given
pattern.
|
private static MetricalLpcfgNonterminal |
MetricalLpcfgTreeFactory.makeBeatNonterminal(MetricalLpcfgQuantum[] quantums,
int subBeatsPerBeat)
Make and return a non-terminal representing a beat.
|
private static MetricalLpcfgNonterminal |
MetricalLpcfgTreeFactory.makeSubBeatNonterminal(MetricalLpcfgQuantum[] quantums)
Make and return a non-terminal representing a sub beat.
|
static MetricalLpcfgTree |
MetricalLpcfgTreeFactory.makeTree(MetricalLpcfgQuantum[] quantums,
int beatsPerMeasure,
int subBeatsPerBeat)
Make and return a tree from the given quantums with the given structure.
|
Constructor and Description |
---|
MetricalLpcfgTerminal(MetricalLpcfgQuantum[] pattern)
Create a new MetricalGrammarTerminal with the given pattern and
MetricalLpcfgTerminal.baseLength of 1. |
MetricalLpcfgTerminal(MetricalLpcfgQuantum[] pattern,
int baseLength)
Create a new MetricalGrammarTerminal with the given pattern and base length.
|