public class FromFileVoiceSplittingModel extends VoiceSplittingModel
FromFileVoiceSplittingModel
generates only a single VoiceSplittingModelState
, the one
directly generated from the underlying MIDI using the MidiEventParser.getGoldStandardVoices()
method.Modifier and Type | Field and Description |
---|---|
private FromFileVoiceSplittingModelState |
state
The one state of this model, generated directly from the MIDI data.
|
Constructor and Description |
---|
FromFileVoiceSplittingModel(EventParser ep)
Generate the state of this model from the given EventParser's
EventParser.getGoldStandardVoices()
method. |
Modifier and Type | Method and Description |
---|---|
void |
close()
This method is called to tell the given model that the input has finished and to flush out all
of its states.
|
java.util.TreeSet<FromFileVoiceSplittingModelState> |
getHypotheses()
This method returns a TreeSet of the current hypothesis states of this MidiModel.
|
void |
handleIncoming(java.util.List<MidiNote> notes)
This method takes as input some List of MidiNotes, and then does some work on
the notes, updating its list of hypotheses in the process.
|
private FromFileVoiceSplittingModelState state
public FromFileVoiceSplittingModel(EventParser ep) throws javax.sound.midi.InvalidMidiDataException
EventParser.getGoldStandardVoices()
method.ep
- The EventParser we will get gold standard voices from.javax.sound.midi.InvalidMidiDataException
public java.util.TreeSet<FromFileVoiceSplittingModelState> getHypotheses()
MidiModel
getHypotheses
in class VoiceSplittingModel
public void handleIncoming(java.util.List<MidiNote> notes)
MidiModel
handleIncoming
in class MidiModel
notes
- A List of the MidiNotes which we want to handle next.