Package | Description |
---|---|
metdetection.meter | |
metdetection.meter.fromfile | |
metdetection.meter.lpcfg | |
metdetection.time | |
metdetection.utils |
Modifier and Type | Method and Description |
---|---|
abstract Measure |
MetricalModelState.getMetricalMeasure()
Gets the Measure which is contained by this state currently.
|
Modifier and Type | Method and Description |
---|---|
int |
Measure.compareTo(Measure o) |
Modifier and Type | Field and Description |
---|---|
private Measure |
FromFileMetricalModelState.measure
The Measure of this metrical structure.
|
Modifier and Type | Method and Description |
---|---|
Measure |
FromFileMetricalModelState.getMetricalMeasure() |
Constructor and Description |
---|
FromFileMetricalModelState(Measure measure,
long mostRecentTime)
Create a new FromFileHierarchyModelState and initialize the fileds as given.
|
Modifier and Type | Field and Description |
---|---|
private Measure |
MetricalLpcfgMetricalModelState.measure
The measure type we are looking for.
|
private Measure |
MetricalLpcfgMeasure.measure
The measure of this tree structure.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<Measure,java.util.Map<java.lang.Double,java.lang.Integer>> |
MetricalLpcfgProbabilityTracker.measureHeadMap
The map used for modeling: p(head(measure) | measure)
|
Modifier and Type | Method and Description |
---|---|
Measure |
MetricalLpcfgMeasure.getMeasure()
Get the Measure type of this node.
|
Measure |
MetricalLpcfgMetricalModelState.getMetricalMeasure() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<Measure> |
MetricalLpcfg.getMeasures()
Get a Set of the Measures which are contained in any tree from within this lpcfg.
|
Modifier and Type | Method and Description |
---|---|
void |
MetricalLpcfgProbabilityTracker.addHead(Measure measure,
java.lang.String typeString,
MetricalLpcfgHead parentHead,
MetricalLpcfgHead head,
MetricalLpcfgNonterminal.MetricalLpcfgLevel level)
Add a new head mapping.
|
void |
MetricalLpcfgProbabilityTracker.addMeasureHead(Measure measure,
MetricalLpcfgHead head)
Add a new measure head length mapping.
|
void |
MetricalLpcfgProbabilityTracker.addTransition(Measure measure,
java.lang.String typeString,
MetricalLpcfgHead head,
java.lang.String transitionString,
MetricalLpcfgNonterminal.MetricalLpcfgLevel level)
Add a new transition mapping.
|
private static java.lang.String |
MetricalLpcfgProbabilityTracker.encode(Measure measure,
java.lang.String typeString,
MetricalLpcfgHead head)
Encode the given measure, typeString, and head into a single String key.
|
private static java.lang.String |
MetricalLpcfgProbabilityTracker.encodeBackoff(Measure measure,
java.lang.String typeString,
MetricalLpcfgHead head,
MetricalLpcfgNonterminal.MetricalLpcfgLevel level)
Encode the given measure's backup type (based on the level), typeString, and headLength into
a single String key.
|
double |
MetricalLpcfgProbabilityTracker.getHeadProbability(Measure measure,
java.lang.String typeString,
MetricalLpcfgHead parentHead,
MetricalLpcfgHead head,
MetricalLpcfgNonterminal.MetricalLpcfgLevel level)
Gets the probability p(headLength | measure, type, parentHeadLength).
|
double |
MetricalLpcfgProbabilityTracker.getMeasureHeadProbability(Measure measure,
MetricalLpcfgHead head)
Gets the probability p(headLength | measure).
|
private double |
MetricalLpcfg.getNodeLogProbability(MetricalLpcfgNode node,
MetricalLpcfgHead parentHead,
Measure measure)
Get the log probability of the given Node.
|
double |
MetricalLpcfgProbabilityTracker.getTransitionProbability(Measure measure,
java.lang.String typeString,
MetricalLpcfgHead head,
java.lang.String transitionString,
MetricalLpcfgNonterminal.MetricalLpcfgLevel level)
Gets the probability p(transition | measure, type, headLength).
|
static MetricalLpcfgTree |
MetricalLpcfgTreeFactory.makeTree(java.util.List<MidiNote> notes,
java.util.List<Beat> beats,
Measure measure,
int subBeatLength,
int anacrusisLengthSubBeats,
int measureNum)
Make a new tree based on a List of MidiNotes.
|
void |
MetricalLpcfgProbabilityTracker.removeHead(Measure measure,
java.lang.String typeString,
MetricalLpcfgHead parentHead,
MetricalLpcfgHead head,
MetricalLpcfgNonterminal.MetricalLpcfgLevel level)
Remove a head mapping.
|
void |
MetricalLpcfgProbabilityTracker.removeMeasureHead(Measure measure,
MetricalLpcfgHead head)
Remove measure head length mapping.
|
void |
MetricalLpcfgProbabilityTracker.removeTransition(Measure measure,
java.lang.String typeString,
MetricalLpcfgHead head,
java.lang.String transitionString,
MetricalLpcfgNonterminal.MetricalLpcfgLevel level)
Remove a transition mapping.
|
private void |
MetricalLpcfg.updateCounts(MetricalLpcfgNode node,
MetricalLpcfgHead parentHead,
Measure measure,
boolean adding)
Update the counts maps recursively for each node under the given one.
|
Constructor and Description |
---|
MetricalLpcfgMetricalModelState(MetricalLpcfgMetricalModelState state,
MetricalLpcfg grammar,
Measure measure,
int terminalLength,
int anacrusisLength)
Create a new state based on the given grammar, measure, and terminal length, and as a partial
deep copy of the given state.
|
Modifier and Type | Method and Description |
---|---|
Measure |
TimeSignature.getMetricalMeasure()
Get the BeatHierarchy of this time signature.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
Evaluation.getAccuracyString(Measure correctMeasure,
int correctSubBeatLength,
int correctAnacrusisLength,
Measure hypothesisMeasure,
int hypothesisSubBeatLength,
int hypothesisAnacrusisLength)
Get the accuracy String for a metrical hypothesis.
|
private static int |
Evaluation.getMatch(int length,
int offset,
Measure correctMeasure,
int correctSubBeatLength,
int correctAnacrusisLength)
Get the match type of a grouping of the given length and offset given the correct measure,
anacrusis length, and sub beat length.
|