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() |
getScoreprotected VoiceSplittingModelState voiceState
protected BeatTrackingModelState beatState
public abstract Measure getMetricalMeasure()
public abstract java.util.TreeSet<? extends MetricalModelState> handleIncoming(java.util.List<MidiNote> notes)
MidiModelStatehandleIncoming in class MidiModelStatenotes - A List of the MidiNotes on which we need to transition.public abstract java.util.TreeSet<? extends MetricalModelState> close()
MidiModelStateclose in class MidiModelStatepublic void setBeatState(BeatTrackingModelState beatState)
beatState - beatStatepublic VoiceSplittingModelState getVoiceState()
voiceStatepublic BeatTrackingModelState getBeatState()
beatStatepublic void setVoiceState(VoiceSplittingModelState voiceState)
voiceState - voiceStatepublic abstract MetricalModelState deepCopy()
public java.lang.String toString()
toString in class java.lang.Object