public abstract class BeatTrackingModelState extends MidiModelState
BeatTrackingModelState is a MidiModelState which contains
a List of Beats which has been created from the incoming MIDI data. In
order to get these beats, the getBeats() method should be called.| Modifier and Type | Field and Description |
|---|---|
protected VoiceSplittingModelState |
voiceState
The VoiceSplittingModelState which these hierarchies will be based on.
|
| Constructor and Description |
|---|
BeatTrackingModelState() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.util.TreeSet<? extends BeatTrackingModelState> |
close()
Return a TreeSet of all of the possible MidiModelStates which we could tansition into
when the input closes.
|
abstract BeatTrackingModelState |
deepCopy()
Create a deep copy of this BeatTrackingModelState.
|
abstract java.util.List<Beat> |
getBeats()
Gets the Beats which are contained by this state currently.
|
int |
getTactiPerMeasure()
Get the number of tacti which are present in each measure of the Beats of this state.
|
VoiceSplittingModelState |
getVoiceState()
Get the VoiceSplittingModelState which this beat tracker is based on.
|
abstract java.util.TreeSet<? extends BeatTrackingModelState> |
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 |
setVoiceState(VoiceSplittingModelState voiceState)
Set the VoiceSplittingModelState which this JointBeatTrackingModelState is to be
based on.
|
java.lang.String |
toString() |
getScoreprotected VoiceSplittingModelState voiceState
public void setVoiceState(VoiceSplittingModelState voiceState)
voiceState - voiceStatepublic VoiceSplittingModelState getVoiceState()
voiceStatepublic abstract java.util.List<Beat> getBeats()
public int getTactiPerMeasure()
FromFileBeatTrackingModelState,
the measures are incremented correctly, but for any other BeatTrackingModelState, this is not the case.FromFileBeatTrackingModelState,
or 0 for any other model.public abstract BeatTrackingModelState deepCopy()
public abstract java.util.TreeSet<? extends BeatTrackingModelState> 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 BeatTrackingModelState> close()
MidiModelStateclose in class MidiModelStatepublic java.lang.String toString()
toString in class java.lang.Object