API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.sound.midi. MidiSystem View Source
Author(s)
Kara Kytle
Florian Bomers
Matthias Pfisterer
Since
Version
1.68, 06/05/02
Serial
Hierarchy
 Object
      MidiSystem
Implements
Subclasses
Description
public class MidiSystem
  The MidiSystem class provides access to the installed MIDI system resources, including devices such as synthesizers, sequencers, and MIDI input and output ports.
See also:   
Constructors
private MidiSystem ()
Private no-args constructor for ensuring against instantiation.
Methods
Hide/Show inherited methods
publicstatic MidiDevice getMidiDevice (Info info) throws MidiUnavailableException
  Obtains the requested MIDI device.
publicstatic Info getMidiDeviceInfo ()
  Obtains an array of information objects representing the set of all MIDI devices available on the system.
publicstatic MidiFileFormat getMidiFileFormat (File file) throws InvalidMidiDataException IOException
  Obtains the MIDI file format of the specified File.
publicstatic MidiFileFormat getMidiFileFormat (InputStream stream) throws InvalidMidiDataException IOException
  Obtains the MIDI file format of the data in the specified input stream.
publicstatic MidiFileFormat getMidiFileFormat (URL url) throws InvalidMidiDataException IOException
  Obtains the MIDI file format of the data in the specified URL.
publicstatic int getMidiFileTypes ()
  Obtains the set of MIDI file types for which file writing support is provided by the system.
publicstatic int getMidiFileTypes (Sequence sequence)
  Obtains the set of MIDI file types that the system can write from the sequence specified.
publicstatic Receiver getReceiver () throws MidiUnavailableException
  Obtains a MIDI receiver from an external MIDI port or other default device.
publicstatic Sequence getSequence (File file) throws InvalidMidiDataException IOException
  Obtains a MIDI sequence from the specified File.
publicstatic Sequence getSequence (InputStream stream) throws InvalidMidiDataException IOException
  Obtains a MIDI sequence from the specified input stream.
publicstatic Sequence getSequence (URL url) throws InvalidMidiDataException IOException
  Obtains a MIDI sequence from the specified URL.
publicstatic Sequencer getSequencer () throws MidiUnavailableException
  Obtains the default Sequencer, connected to a default device.
publicstatic Sequencer getSequencer (boolean connected) throws MidiUnavailableException
  Obtains the default Sequencer, optionally connected to a default device.
publicstatic Soundbank getSoundbank (File file) throws InvalidMidiDataException IOException
  Constructs a Soundbank by reading it from the specified File.
publicstatic Soundbank getSoundbank (InputStream stream) throws InvalidMidiDataException IOException
  Constructs a MIDI sound bank by reading it from the specified stream.
publicstatic Soundbank getSoundbank (URL url) throws InvalidMidiDataException IOException
  Constructs a Soundbank by reading it from the specified URL.
publicstatic Synthesizer getSynthesizer () throws MidiUnavailableException
  Obtains the default synthesizer.
publicstatic Transmitter getTransmitter () throws MidiUnavailableException
  Obtains a MIDI transmitter from an external MIDI port or other default source.
publicstatic boolean isFileTypeSupported (int fileType)
  Indicates whether file writing support for the specified MIDI file type is provided by the system.
publicstatic boolean isFileTypeSupported (int fileType, Sequence sequence)
  Indicates whether a MIDI file of the file type specified can be written from the sequence indicated.
publicstatic int write (Sequence in, int type, File out) throws IOException
  Writes a stream of bytes representing a file of the MIDI file type indicated to the external file provided.
publicstatic int write (Sequence in, int fileType, OutputStream out) throws IOException
  Writes a stream of bytes representing a file of the MIDI file type indicated to the output stream provided.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar