| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| pack-priv static interface | |
| protected static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | |
| pack-priv SoftChannel[] | |
| pack-priv boolean | |
| pack-priv final Object | |
| private float | |
| private static Soundbank | |
| private int | |
| pack-priv SoftChannelProxy[] | |
| private AudioFormat | |
| private int | |
| private boolean | |
| pack-priv static final MidiDevice. | |
| pack-priv static final String | |
| pack-priv static final String | |
| pack-priv static final String | |
| pack-priv static final String | |
| private final Map | |
| private boolean | |
| private boolean | |
| private long | |
| pack-priv boolean | |
| private final Map | |
| private SoftMainMixer | |
| private int | |
| private int | |
| private boolean | |
| private SoftAudioPusher | |
| private AudioInputStream | |
| private final ArrayList | |
| private SoftResampler | |
| private String | |
| pack-priv boolean | |
| pack-priv boolean | |
| private SourceDataLine | |
| private static SourceDataLine | |
| private final Map | |
| pack-priv int | |
| pack-priv int | |
| private SoftVoice[] | |
| pack-priv SoftSynthesizer. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements javax. Closes the device, indicating that the device should now release any system resources it is using. |
| pack-priv SoftInstrument | |
| public Instrument[] | getAvailableInstruments()
Implements javax. Obtains a list of instruments that come with the synthesizer. |
| private void | |
| public MidiChannel[] | getChannels()
Implements javax. Obtains the set of MIDI channels controlled by this synthesizer. |
| pack-priv float | |
| public Soundbank | getDefaultSoundbank()
Implements javax. Obtains the default soundbank for the synthesizer, if one exists. |
| pack-priv int | |
| public MidiDevice. | getDeviceInfo()
Implements javax. Obtains information about the device, including its Java class and
|
| public AudioFormat | getFormat()
Implements com. Obtains the current format (encoding, sample rate, number of channels, etc.) of the synthesizer audio data. |
| pack-priv int | |
| public long | getLatency()
Implements javax. Obtains the processing latency incurred by this synthesizer, expressed in microseconds. |
| public Instrument[] | getLoadedInstruments()
Implements javax. Obtains a list of the instruments that are currently loaded onto this
|
| pack-priv SoftMainMixer | |
| public int | getMaxPolyphony()
Implements javax. Obtains the maximum number of notes that this synthesizer can sound simultaneously. |
| public int | getMaxReceivers()
Implements javax. Obtains the maximum number of MIDI IN connections available on this MIDI device for receiving MIDI data. |
| public int | getMaxTransmitters()
Implements javax. Obtains the maximum number of MIDI OUT connections available on this MIDI device for transmitting MIDI data. |
| public long | getMicrosecondPosition()
Implements javax. Obtains the current time-stamp of the device, in microseconds. |
| public AudioSynthesizerPropertyInfo[] | getPropertyInfo(Map<String, Object> info)
Implements com. Gets information about the possible properties for the synthesizer. |
| public Receiver | getReceiver()
Implements javax. Obtains a MIDI IN receiver through which the MIDI device may receive MIDI data. |
| public Receiver | getReceiverReferenceCounting()
Implements com. Retrieve a Receiver that opens the device implicitly. |
| public List | getReceivers()
Implements javax. Returns all currently active, non-closed receivers connected with this
|
| private Properties | |
| public Transmitter | getTransmitter()
Implements javax. Obtains a MIDI OUT connection from which the MIDI device will transmit MIDI data. |
| public Transmitter | getTransmitterReferenceCounting()
Implements com. Retrieve a Transmitter that opens the device implicitly. |
| public List | getTransmitters()
Implements javax. Returns all currently active, non-closed transmitters connected with this
|
| pack-priv SoftTuning | |
| pack-priv int | |
| pack-priv SoftVoice[] | |
| public VoiceStatus[] | getVoiceStatus()
Implements javax. Obtains the current status of the voices produced by this synthesizer. |
| public boolean | |
| public boolean | isSoundbankSupported(Soundbank soundbank)
Implements javax. Informs the caller whether this synthesizer is capable of loading instruments from the specified soundbank. |
| public boolean | loadAllInstruments(Soundbank soundbank)
Implements javax. Loads onto the |
| public boolean | loadInstrument(Instrument instrument)
Implements javax. Makes a particular instrument available for synthesis. |
| private boolean | |
| public boolean | loadInstruments(Soundbank soundbank, Patch[] patchList)
Implements javax. Loads the instruments referenced by the specified patches, from the
specified |
| private boolean | |
| public void | open()
Implements javax. Opens the device, indicating that it should now acquire any system resources it requires and become operational. |
| public void | open(SourceDataLine line, Map<String, Object> info)
Implements com. Opens the synthesizer and starts rendering audio into
|
| public AudioInputStream | openStream(AudioFormat targetFormat, Map<String, Object> info)
Implements com. Opens the synthesizer and renders audio into returned
|
| private String | |
| private void | |
| public boolean | remapInstrument(Instrument from, Instrument to)
Implements javax. Remaps an instrument. |
| pack-priv void | |
| private void | |
| pack-priv void | |
| public void | unloadAllInstruments(Soundbank soundbank)
Implements javax. Unloads all instruments contained in the specified |
| public void | unloadInstrument(Instrument instrument)
Implements javax. Unloads a particular instrument. |
| public void | unloadInstruments(Soundbank soundbank, Patch[] patchList)
Implements javax. Unloads the instruments referenced by the specified patches, from the MIDI sound bank specified. |
| agc_on | back to summary |
|---|---|
| pack-priv boolean agc_on | |
| channels | back to summary |
|---|---|
| pack-priv SoftChannel[] channels | |
| chorus_on | back to summary |
|---|---|
| pack-priv boolean chorus_on | |
| control_mutex | back to summary |
|---|---|
| pack-priv final Object control_mutex | |
| controlrate | back to summary |
|---|---|
| private float controlrate | |
| defaultSoundBank | back to summary |
|---|---|
| private static Soundbank defaultSoundBank | |
| deviceid | back to summary |
|---|---|
| private int deviceid | |
| external_channels | back to summary |
|---|---|
| pack-priv SoftChannelProxy[] external_channels | |
| format | back to summary |
|---|---|
| private AudioFormat format | |
| gmmode | back to summary |
|---|---|
| private int gmmode | |
| implicitOpen | back to summary |
|---|---|
| private boolean implicitOpen | |
| info | back to summary |
|---|---|
| pack-priv static final MidiDevice. | |
| INFO_DESCRIPTION | back to summary |
|---|---|
| pack-priv static final String INFO_DESCRIPTION | |
| INFO_NAME | back to summary |
|---|---|
| pack-priv static final String INFO_NAME | |
| INFO_VENDOR | back to summary |
|---|---|
| pack-priv static final String INFO_VENDOR | |
| INFO_VERSION | back to summary |
|---|---|
| pack-priv static final String INFO_VERSION | |
| inslist | back to summary |
|---|---|
| private final Map<String, SoftInstrument> inslist | |
| jitter_correction | back to summary |
|---|---|
| private boolean jitter_correction | |
| largemode | back to summary |
|---|---|
| private boolean largemode | |
| latency | back to summary |
|---|---|
| private long latency | |
| load_default_soundbank | back to summary |
|---|---|
| pack-priv boolean load_default_soundbank | |
| loadedlist | back to summary |
|---|---|
| private final Map<String, ModelInstrument> loadedlist | |
| mainmixer | back to summary |
|---|---|
| private SoftMainMixer mainmixer | |
| maxpoly | back to summary |
|---|---|
| private int maxpoly | |
| number_of_midi_channels | back to summary |
|---|---|
| private int number_of_midi_channels | |
| open | back to summary |
|---|---|
| private boolean open | |
| pusher | back to summary |
|---|---|
| private SoftAudioPusher pusher | |
| pusher_stream | back to summary |
|---|---|
| private AudioInputStream pusher_stream | |
| recvslist | back to summary |
|---|---|
| private final ArrayList<Receiver> recvslist | |
| resampler | back to summary |
|---|---|
| private SoftResampler resampler | |
| resamplerType | back to summary |
|---|---|
| private String resamplerType | |
| reverb_light | back to summary |
|---|---|
| pack-priv boolean reverb_light | |
| reverb_on | back to summary |
|---|---|
| pack-priv boolean reverb_on | |
| sourceDataLine | back to summary |
|---|---|
| private SourceDataLine sourceDataLine | |
| testline | back to summary |
|---|---|
| private static SourceDataLine testline | |
| tunings | back to summary |
|---|---|
| private final Map<String, SoftTuning> tunings | |
| voice_allocation_mode | back to summary |
|---|---|
| pack-priv int voice_allocation_mode | |
| voiceIDCounter | back to summary |
|---|---|
| pack-priv int voiceIDCounter | |
| voices | back to summary |
|---|---|
| private SoftVoice[] voices | |
| weakstream | back to summary |
|---|---|
| pack-priv SoftSynthesizer. | |
| SoftSynthesizer | back to summary |
|---|---|
| public SoftSynthesizer() | |
| close | back to summary |
|---|---|
| public void close() Implements javax. Doc from javax. Closes the device, indicating that the device should now release any system resources it is using.
All
| |
| findInstrument | back to summary |
|---|---|
| pack-priv SoftInstrument findInstrument(int program, int bank, int channel) | |
| getAvailableInstruments | back to summary |
|---|---|
| public Instrument[] getAvailableInstruments() Implements javax. Doc from javax. Obtains a list of instruments that come with the synthesizer. These instruments might be built into the synthesizer, or they might be part of a default soundbank provided with the synthesizer, etc.
Note that you don't use this method to find out which instruments are
currently loaded onto the synthesizer; for that purpose, you use
| |
| getBuffers | back to summary |
|---|---|
| private void getBuffers(ModelInstrument instrument, List<ModelByteBuffer> buffers) | |
| getChannels | back to summary |
|---|---|
| public MidiChannel[] getChannels() Implements javax. Doc from javax. Obtains the set of MIDI channels controlled by this synthesizer. Each
non-null element in the returned array is a
The MIDI 1.0 specification provides for 16 channels, so this method
returns an array of at least 16 elements. However, if this synthesizer
doesn't make use of all 16 channels, some of the elements of the array
might be
| |
| getControlRate | back to summary |
|---|---|
| pack-priv float getControlRate() | |
| getDefaultSoundbank | back to summary |
|---|---|
| public Soundbank getDefaultSoundbank() Implements javax. Doc from javax. Obtains the default soundbank for the synthesizer, if one exists. (Some synthesizers provide a default or built-in soundbank.) If a synthesizer doesn't have a default soundbank, instruments must be loaded explicitly from an external soundbank.
| |
| getDeviceID | back to summary |
|---|---|
| pack-priv int getDeviceID() | |
| getDeviceInfo | back to summary |
|---|---|
| public MidiDevice. Implements javax. Doc from javax. Obtains information about the device, including its Java class and
| |
| getFormat | back to summary |
|---|---|
| public AudioFormat getFormat() Implements com. Doc from com. Obtains the current format (encoding, sample rate, number of channels, etc.) of the synthesizer audio data. If the synthesizer is not open and has never been opened, it returns the default format.
| |
| getGeneralMidiMode | back to summary |
|---|---|
| pack-priv int getGeneralMidiMode() | |
| getLatency | back to summary |
|---|---|
| public long getLatency() Implements javax. Doc from javax. Obtains the processing latency incurred by this synthesizer, expressed in microseconds. This latency measures the worst-case delay between the time a MIDI message is delivered to the synthesizer and the time that the synthesizer actually produces the corresponding result. Although the latency is expressed in microseconds, a synthesizer's actual measured delay may vary over a wider range than this resolution suggests. For example, a synthesizer might have a worst-case delay of a few milliseconds or more.
| |
| getLoadedInstruments | back to summary |
|---|---|
| public Instrument[] getLoadedInstruments() Implements javax. Doc from javax. Obtains a list of the instruments that are currently loaded onto this
| |
| getMainMixer | back to summary |
|---|---|
| pack-priv SoftMainMixer getMainMixer() | |
| getMaxPolyphony | back to summary |
|---|---|
| public int getMaxPolyphony() Implements javax. Doc from javax. Obtains the maximum number of notes that this synthesizer can sound simultaneously.
| |
| getMaxReceivers | back to summary |
|---|---|
| public int getMaxReceivers() Implements javax. Doc from javax. Obtains the maximum number of MIDI IN connections available on this MIDI device for receiving MIDI data.
| |
| getMaxTransmitters | back to summary |
|---|---|
| public int getMaxTransmitters() Implements javax. Doc from javax. Obtains the maximum number of MIDI OUT connections available on this MIDI device for transmitting MIDI data.
| |
| getMicrosecondPosition | back to summary |
|---|---|
| public long getMicrosecondPosition() Implements javax. Doc from javax. Obtains the current time-stamp of the device, in microseconds. If a device supports time-stamps, it should start counting at 0 when the device is opened and continue incrementing its time-stamp in microseconds until the device is closed. If it does not support time-stamps, it should always return -1.
| |
| getPropertyInfo | back to summary |
|---|---|
| public AudioSynthesizerPropertyInfo[] getPropertyInfo(Map<String, Object> info) Implements com. Doc from com. Gets information about the possible properties for the synthesizer.
| |
| getReceiver | back to summary |
|---|---|
| public Receiver getReceiver() throws MidiUnavailableException Implements javax. Doc from javax. Obtains a MIDI IN receiver through which the MIDI device may receive MIDI data. The returned receiver must be closed when the application has finished using it.
Usually the returned receiver implements the
Obtaining a
| |
| getReceiverReferenceCounting | back to summary |
|---|---|
| public Receiver getReceiverReferenceCounting() throws MidiUnavailableException Implements com. Doc from com. Retrieve a Receiver that opens the device implicitly. This method is similar to MidiDevice.getReceiver(). However, by calling this one, the device is opened implicitly. This is needed by MidiSystem.getReceiver().
| |
| getReceivers | back to summary |
|---|---|
| public List Implements javax. Doc from javax. Returns all currently active, non-closed receivers connected with this
Usually the returned receivers implement the
| |
| getStoredProperties | back to summary |
|---|---|
| private Properties getStoredProperties() | |
| getTransmitter | back to summary |
|---|---|
| public Transmitter getTransmitter() throws MidiUnavailableException Implements javax. Doc from javax. Obtains a MIDI OUT connection from which the MIDI device will transmit MIDI data. The returned transmitter must be closed when the application has finished using it.
Usually the returned transmitter implements the
Obtaining a
| |
| getTransmitterReferenceCounting | back to summary |
|---|---|
| public Transmitter getTransmitterReferenceCounting() throws MidiUnavailableException Implements com. Doc from com. Retrieve a Transmitter that opens the device implicitly. This method is similar to MidiDevice.getTransmitter(). However, by calling this one, the device is opened implicitly. This is needed by MidiSystem.getTransmitter().
| |
| getTransmitters | back to summary |
|---|---|
| public List Implements javax. Doc from javax. Returns all currently active, non-closed transmitters connected with this
Usually the returned transmitters implement the
| |
| getTuning | back to summary |
|---|---|
| pack-priv SoftTuning getTuning(Patch patch) | |
| getVoiceAllocationMode | back to summary |
|---|---|
| pack-priv int getVoiceAllocationMode() | |
| getVoices | back to summary |
|---|---|
| pack-priv SoftVoice[] getVoices() | |
| getVoiceStatus | back to summary |
|---|---|
| public VoiceStatus[] getVoiceStatus() Implements javax. Doc from javax. Obtains the current status of the voices produced by this synthesizer. If
this class of
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements javax. Doc from javax. Reports whether the device is open.
| |
| isSoundbankSupported | back to summary |
|---|---|
| public boolean isSoundbankSupported(Soundbank soundbank) Implements javax. Doc from javax. Informs the caller whether this synthesizer is capable of loading
instruments from the specified soundbank. If the soundbank is
unsupported, any attempts to load instruments from it will result in an
| |
| loadAllInstruments | back to summary |
|---|---|
| public boolean loadAllInstruments(Soundbank soundbank) Implements javax. Doc from javax. Loads onto the
| |
| loadInstrument | back to summary |
|---|---|
| public boolean loadInstrument(Instrument instrument) Implements javax. Doc from javax. Makes a particular instrument available for synthesis. This instrument is
loaded into the patch location specified by its
The instrument must be part of a soundbank that this
| |
| loadInstruments | back to summary |
|---|---|
| private boolean loadInstruments(List<ModelInstrument> instruments) | |
| loadInstruments | back to summary |
|---|---|
| public boolean loadInstruments(Soundbank soundbank, Patch[] patchList) Implements javax. Doc from javax. Loads the instruments referenced by the specified patches, from the
specified
| |
| loadSamples | back to summary |
|---|---|
| private boolean loadSamples(List<ModelInstrument> instruments) | |
| open | back to summary |
|---|---|
| public void open() throws MidiUnavailableException Implements javax. Doc from javax. Opens the device, indicating that it should now acquire any system resources it requires and become operational.
An application opening a device explicitly with this call has to close
the device by calling
Note that some devices, once closed, cannot be reopened. Attempts to
reopen such a device will always result in a
| |
| open | back to summary |
|---|---|
| public void open(SourceDataLine line, Map<String, Object> info) throws MidiUnavailableException Implements com. Doc from com. Opens the synthesizer and starts rendering audio into
An application opening a synthesizer explicitly with this call
has to close the synthesizer by calling Note that some synthesizers, once closed, cannot be reopened.
Attempts to reopen such a synthesizer will always result in
a
| |
| openStream | back to summary |
|---|---|
| public AudioInputStream openStream(AudioFormat targetFormat, Map<String, Object> info) throws MidiUnavailableException Implements com. Doc from com. Opens the synthesizer and renders audio into returned
An application opening a synthesizer explicitly with this call
has to close the synthesizer by calling Note that some synthesizers, once closed, cannot be reopened.
Attempts to reopen such a synthesizer will always result in
a
| |
| patchToString | back to summary |
|---|---|
| private String patchToString(Patch patch) | |
| processPropertyInfo | back to summary |
|---|---|
| private void processPropertyInfo(Map<String, Object> info) | |
| remapInstrument | back to summary |
|---|---|
| public boolean remapInstrument(Instrument from, Instrument to) Implements javax. Doc from javax. Remaps an instrument. Instrument
To cancel the remapping reload instrument
| |
| removeReceiver | back to summary |
|---|---|
| pack-priv void removeReceiver(Receiver recv) | |
| setFormat | back to summary |
|---|---|
| private void setFormat(AudioFormat format) | |
| setGeneralMidiMode | back to summary |
|---|---|
| pack-priv void setGeneralMidiMode(int gmmode) | |
| unloadAllInstruments | back to summary |
|---|---|
| public void unloadAllInstruments(Soundbank soundbank) Implements javax. Doc from javax. Unloads all instruments contained in the specified
| |
| unloadInstrument | back to summary |
|---|---|
| public void unloadInstrument(Instrument instrument) Implements javax. Doc from javax. Unloads a particular instrument.
| |
| unloadInstruments | back to summary |
|---|---|
| public void unloadInstruments(Soundbank soundbank, Patch[] patchList) Implements javax. Doc from javax. Unloads the instruments referenced by the specified patches, from the MIDI sound bank specified.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Info | back to summary |
|---|---|
| pack-priv Info() | |
| Modifier and Type | Method and Description |
|---|---|
| public T |
| run | back to summary |
|---|---|
| public T run() | |
| Modifier and Type | Field and Description |
|---|---|
| private final AudioFloatConverter | |
| private int | |
| public AudioInputStream | |
| public SoftAudioPusher | |
| private final int | |
| public volatile long | |
| private float[] | |
| public SourceDataLine | |
| private volatile AudioInputStream | |
| private final WeakReference |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | available()
Overrides java. Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking, which may be 0, or 0 when end of stream is detected. |
| public void | close()
Overrides java. Implements java. Closes this input stream and releases any system resources associated with the stream. |
| public AudioInputStream | |
| public int | read()
Implements abstract java. Reads the next byte of data from the input stream. |
| public int | read(byte[] b, int off, int len)
Overrides java. Reads up to |
| public void |
| converter | back to summary |
|---|---|
| private final AudioFloatConverter converter | |
| framesize | back to summary |
|---|---|
| private int framesize | |
| jitter_stream | back to summary |
|---|---|
| public AudioInputStream jitter_stream | |
| pusher | back to summary |
|---|---|
| public SoftAudioPusher pusher | |
| samplesize | back to summary |
|---|---|
| private final int samplesize | |
| silent_samples | back to summary |
|---|---|
| public volatile long silent_samples | |
| silentbuffer | back to summary |
|---|---|
| private float[] silentbuffer | |
| sourceDataLine | back to summary |
|---|---|
| public SourceDataLine sourceDataLine | |
| stream | back to summary |
|---|---|
| private volatile AudioInputStream stream | |
| weak_stream_link | back to summary |
|---|---|
| private final WeakReference<AudioInputStream> weak_stream_link | |
| WeakAudioStream | back to summary |
|---|---|
| public WeakAudioStream(AudioInputStream stream) | |
| available | back to summary |
|---|---|
| public int available() throws IOException Overrides java. Doc from java. Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking, which may be 0, or 0 when end of stream is detected. The read might be on the same thread or another thread. A single read or skip of this many bytes will not block, but may read or skip fewer bytes. Note that while some implementations of A subclass's implementation of this method may choose to throw an
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this input stream and releases any system resources associated with the stream.
| |
| getAudioInputStream | back to summary |
|---|---|
| public AudioInputStream getAudioInputStream() | |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract java. Doc from java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |
| read | back to summary |
|---|---|
| public int read(byte[] b, int off, int len) throws IOException Overrides java. Doc from java. Reads up to This method blocks until input data is available, end of file is detected, or an exception is thrown. If The first byte read is stored into element In every case, elements
| |
| setInputStream | back to summary |
|---|---|
| public void setInputStream(AudioInputStream stream) | |