public class JointModelState extends MidiModelState implements java.lang.Comparable<JointModelState>
JointModelState is the state used to model and infer one of each type of model
simultaneously as a set, one step at a time.| Modifier and Type | Field and Description |
|---|---|
private BeatTrackingModelState |
beatState
The BeatTrackingModel to use in our joint model.
|
private MetricalModelState |
hierarchyState
The HierarchyModel to use in our joint model.
|
private VoiceSplittingModelState |
voiceState
The VoiceSplittingModel to use in our joint model.
|
| Constructor and Description |
|---|
JointModelState(MetricalModelState h)
Create a new ModelState on the given HierarchyModelState.
|
JointModelState(VoiceSplittingModelState voice,
BeatTrackingModelState beat,
MetricalModelState hierarchy)
Create a new JointModelState with the given constituent states.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.TreeSet<JointModelState> |
close()
Return a TreeSet of all of the possible MidiModelStates which we could tansition into
when the input closes.
|
int |
compareTo(JointModelState o) |
BeatTrackingModelState |
getBeatState()
Get the BeatTrackingModelState currently in this JointModelState.
|
MetricalModelState |
getHierarchyState()
Get the HierarchyModelState currently in this JointModelState.
|
double |
getScore()
Get the score of this MidiModelState.
|
VoiceSplittingModelState |
getVoiceState()
Get the VoiceSplittingModelState currently in this JointModelState.
|
java.util.TreeSet<JointModelState> |
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.
|
java.lang.String |
toString() |
private VoiceSplittingModelState voiceState
private BeatTrackingModelState beatState
private MetricalModelState hierarchyState
public JointModelState(VoiceSplittingModelState voice, BeatTrackingModelState beat, MetricalModelState hierarchy)
voice - voiceStatebeat - beatStatehierarchy - hierarchyStatepublic JointModelState(MetricalModelState h)
voiceState and the
beatState will be loaded from the given HierarchyModelState.h - hierarchyStatepublic double getScore()
MidiModelStategetScore in class MidiModelStatepublic java.util.TreeSet<JointModelState> handleIncoming(java.util.List<MidiNote> notes)
MidiModelStatehandleIncoming in class MidiModelStatenotes - A List of the MidiNotes on which we need to transition.public java.util.TreeSet<JointModelState> close()
MidiModelStateclose in class MidiModelStatepublic VoiceSplittingModelState getVoiceState()
voiceStatepublic BeatTrackingModelState getBeatState()
beatStatepublic MetricalModelState getHierarchyState()
hierarchyStatepublic int compareTo(JointModelState o)
compareTo in interface java.lang.Comparable<JointModelState>public java.lang.String toString()
toString in class java.lang.Object