public class FromFileVoiceSplittingModelState extends VoiceSplittingModelState implements java.lang.Comparable<FromFileVoiceSplittingModelState>
FromFileVoiceSplittingModelState
generates a list of Voice
s, 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.
|
toString
private 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.InvalidMidiDataException
public java.util.List<Voice> getVoices()
VoiceSplittingModelState
getVoices
in class VoiceSplittingModelState
public java.util.TreeSet<FromFileVoiceSplittingModelState> handleIncoming(java.util.List<MidiNote> notes)
MidiModelState
handleIncoming
in class VoiceSplittingModelState
notes
- A List of the MidiNotes on which we need to transition.public java.util.TreeSet<FromFileVoiceSplittingModelState> close()
MidiModelState
close
in class VoiceSplittingModelState
public double getScore()
MidiModelState
getScore
in class MidiModelState
public int compareTo(FromFileVoiceSplittingModelState o)
compareTo
in interface java.lang.Comparable<FromFileVoiceSplittingModelState>