Interface MidiSynthFileReader

All Known Implementing Classes:
CakewalkInsFileReader

public interface MidiSynthFileReader
A reader of MidiSynths.
  • Method Details

    • getReader

      static MidiSynthFileReader getReader(String fileExtension)
      Get the first reader which can read the specified file extension.
      Parameters:
      fileExtension - For example "ins"
      Returns:
    • getId

      String getId()
      Must be unique amongst MidiSynthProviders.
      Returns:
    • getSupportedFileTypes

      List<FileNameExtensionFilter> getSupportedFileTypes()
      Get the list of file types accepted by this provider.
      Returns:
    • readSynthsFromStream

      List<MidiSynth> readSynthsFromStream(InputStream in, File f) throws IOException
      Get synth(s) from an input stream.

      Returned synths must have at least one InstrumentBank. InstrumentBanks can't be empty.

      Parameters:
      in -
      f - Needed for error messages and logging. Can be null.
      Returns:
      Can be an empty list if no synth could be created.
      Throws:
      IOException