public abstract class MetricalModelState extends MidiModelState
MetricalModelState
is used in meter detection, and
contains some representation of a song's meter.Modifier and Type | Field and Description |
---|---|
protected BeatTrackingModelState |
beatState
The BeatTrackingModelState which we are modeling jointly with.
|
protected VoiceSplittingModelState |
voiceState
The VoiceSplittingModelState which these hierarchies will be based on.
|
Constructor and Description |
---|
MetricalModelState() |
Modifier and Type | Method and Description |
---|---|
abstract java.util.TreeSet<? extends MetricalModelState> |
close()
Return a TreeSet of all of the possible MidiModelStates which we could tansition into
when the input closes.
|
abstract MetricalModelState |
deepCopy()
Create a deep copy of this HierarchyModelState.
|
BeatTrackingModelState |
getBeatState()
Get the BeatTrackingModelState which this hierarchy is based on.
|
abstract Measure |
getMetricalMeasure()
Gets the Measure which is contained by this state currently.
|
VoiceSplittingModelState |
getVoiceState()
Get the VoiceSplittingModelState which this hierarchy is based on.
|
abstract java.util.TreeSet<? extends MetricalModelState> |
handleIncoming(java.util.List<MidiNote> notes)
Return a TreeSet of all of the possible MidiModelStates which we could tansition into
given the List of MidiNotes.
|
void |
setBeatState(BeatTrackingModelState beatState)
Set the BeatTrackingModelState which this HierarchyModelState is to be based on.
|
void |
setVoiceState(VoiceSplittingModelState voiceState)
Set the VoiceSplittingModelState which this HierarchyModelState is to be based on.
|
java.lang.String |
toString() |
getScore
protected VoiceSplittingModelState voiceState
protected BeatTrackingModelState beatState
public abstract Measure getMetricalMeasure()
public abstract java.util.TreeSet<? extends MetricalModelState> handleIncoming(java.util.List<MidiNote> notes)
MidiModelState
handleIncoming
in class MidiModelState
notes
- A List of the MidiNotes on which we need to transition.public abstract java.util.TreeSet<? extends MetricalModelState> close()
MidiModelState
close
in class MidiModelState
public void setBeatState(BeatTrackingModelState beatState)
beatState
- beatState
public VoiceSplittingModelState getVoiceState()
voiceState
public BeatTrackingModelState getBeatState()
beatState
public void setVoiceState(VoiceSplittingModelState voiceState)
voiceState
- voiceState
public abstract MetricalModelState deepCopy()
public java.lang.String toString()
toString
in class java.lang.Object