javax.sound.midi |
Provides interfaces and classes for I/O, sequencing, and synthesis of MIDI
(Musical Instrument Digital Interface) data.
Related Documentation
For overviews, tutorials, examples, and guides,
please see:
@since 1.3
|
Java Source File Name | Type | Comment |
ControllerEventListener.java | Interface | The ControllerEventListener interface should be implemented
by classes whose instances need to be notified when a Sequencer
has processed a requested type of MIDI control-change event. |
Instrument.java | Class | An instrument is a sound-synthesis algorithm with certain parameter
settings, usually designed to emulate a specific real-world
musical instrument or to achieve a specific sort of sound effect.
Instruments are typically stored in collections called soundbanks.
Before the instrument can be used to play notes, it must first be loaded
onto a synthesizer, and then it must be selected for use on
one or more channels, via a program-change command. |
InvalidMidiDataException.java | Class | An InvalidMidiDataException indicates that inappropriate MIDI
data was encountered. |
MetaEventListener.java | Interface | The MetaEventListener interface should be implemented
by classes whose instances need to be notified when a
Sequencer
has processed a
MetaMessage . |
MetaMessage.java | Class | A MetaMessage is a
MidiMessage that is not meaningful to synthesizers, but
that can be stored in a MIDI file and interpreted by a sequencer program.
(See the discussion in the MidiMessage
class description.) The Standard MIDI Files specification defines
various types of meta-events, such as sequence number, lyric, cue point,
and set tempo. |
MidiChannel.java | Interface | A MidiChannel object represents a single MIDI channel.
Generally, each MidiChannel method processes a like-named MIDI
"channel voice" or "channel mode" message as defined by the MIDI specification. |
MidiDevice.java | Interface | MidiDevice is the base interface for all MIDI devices.
Common devices include synthesizers, sequencers, MIDI input ports, and MIDI
output ports. |
MidiEvent.java | Class | MIDI events contain a MIDI message and a corresponding time-stamp
expressed in ticks, and can represent the MIDI event information
stored in a MIDI file or a
Sequence object. |
MidiFileFormat.java | Class | A MidiFileFormat object encapsulates a MIDI file's
type, as well as its length and timing information.
A MidiFileFormat object can
include a set of properties. |
MidiMessage.java | Class | MidiMessage is the base class for MIDI messages. |
MidiSystem.java | Class | The MidiSystem class provides access to the installed MIDI
system resources, including devices such as synthesizers, sequencers, and
MIDI input and output ports. |
MidiUnavailableException.java | Class | A MidiUnavailableException is thrown when a requested MIDI
component cannot be opened or created because it is unavailable. |
Patch.java | Class | A Patch object represents a location, on a MIDI
synthesizer, into which a single instrument is stored (loaded). |
Receiver.java | Interface | A Receiver receives
MidiEvent objects and
typically does something useful in response, such as interpreting them to
generate sound or raw MIDI output. |
Sequence.java | Class | A Sequence is a data structure containing musical
information (often an entire song or composition) that can be played
back by a
Sequencer object. |
Sequencer.java | Interface | A hardware or software device that plays back a MIDI
Sequence sequence is known as a sequencer.
A MIDI sequence contains lists of time-stamped MIDI data, such as
might be read from a standard MIDI file. |
ShortMessage.java | Class | A ShortMessage contains a MIDI message that has at most
two data bytes following its status byte. |
Soundbank.java | Interface | A Soundbank contains a set of Instruments
that can be loaded into a Synthesizer .
Note that a Java Sound Soundbank is different from a MIDI bank.
MIDI permits up to 16383 banks, each containing up to 128 instruments
(also sometimes called programs, patches, or timbres).
However, a Soundbank can contain 16383 times 128 instruments,
because the instruments within a Soundbank are indexed by both
a MIDI program number and a MIDI bank number (via a Patch
object). |
SoundbankResource.java | Class | A SoundbankResource represents any audio resource stored
in a
Soundbank . |
Synthesizer.java | Interface | A Synthesizer generates sound. |
SysexMessage.java | Class | A SysexMessage object represents a MIDI system exclusive message.
When a system exclusive message is read from a MIDI file, it always has
a defined length. |
Track.java | Class | A MIDI track is an independent stream of MIDI events (time-stamped MIDI
data) that can be stored along with other tracks in a standard MIDI file.
The MIDI specification allows only 16 channels of MIDI data, but tracks
are a way to get around this limitation. |
Transmitter.java | Interface | A Transmitter sends
MidiEvent objects to one or more
Receiver Receivers . |
VoiceStatus.java | Class | A VoiceStatus object contains information about the current
status of one of the voices produced by a
Synthesizer . |