public class FromFileVoiceSplittingModelState extends VoiceSplittingModelState implements java.lang.Comparable<FromFileVoiceSplittingModelState>
FromFileVoiceSplittingModelState generates a list of Voices, the one
directly generated from the underlying MIDI using the MidiEventParser.getGoldStandardVoices()
method.| Modifier and Type | Field and Description |
|---|---|
private long |
mostRecentTime
The most recent time for which we have seen a note onset so far, initially 0.
|
private java.util.List<Voice> |
voices
A List of the Voices present in this state, generated from the MIDI directly.
|
| Constructor and Description |
|---|
FromFileVoiceSplittingModelState(EventParser ep)
Creates a new object, generating
voices directly from the
EventParser.getGoldStandardVoices() method. |
| Modifier and Type | Method and Description |
|---|---|
java.util.TreeSet<FromFileVoiceSplittingModelState> |
close()
Return a TreeSet of all of the possible MidiModelStates which we could tansition into
when the input closes.
|
int |
compareTo(FromFileVoiceSplittingModelState o) |
double |
getScore()
Get the score of this MidiModelState.
|
java.util.List<Voice> |
getVoices()
Gets the Voices which are contained by this state currently.
|
java.util.TreeSet<FromFileVoiceSplittingModelState> |
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.
|
toStringprivate java.util.List<Voice> voices
private long mostRecentTime
public FromFileVoiceSplittingModelState(EventParser ep) throws javax.sound.midi.InvalidMidiDataException
voices directly from the
EventParser.getGoldStandardVoices() method.ep - The EventParser we will get the gold standard voices from.javax.sound.midi.InvalidMidiDataExceptionpublic java.util.List<Voice> getVoices()
VoiceSplittingModelStategetVoices in class VoiceSplittingModelStatepublic java.util.TreeSet<FromFileVoiceSplittingModelState> handleIncoming(java.util.List<MidiNote> notes)
MidiModelStatehandleIncoming in class VoiceSplittingModelStatenotes - A List of the MidiNotes on which we need to transition.public java.util.TreeSet<FromFileVoiceSplittingModelState> close()
MidiModelStateclose in class VoiceSplittingModelStatepublic double getScore()
MidiModelStategetScore in class MidiModelStatepublic int compareTo(FromFileVoiceSplittingModelState o)
compareTo in interface java.lang.Comparable<FromFileVoiceSplittingModelState>