Lines Matching refs:instrument

44  * unloading instruments from soundbanks.  An instrument is a specification for synthesizing a
45 * certain type of sound, whether that sound emulates a traditional instrument or is
47 * by bank and program number (via the instrument's <code>Patch</code> object).
52 * that not every soundbank and instrument can be used by every synthesizer, even if
59 * "Loading" an instrument means that that instrument becomes available for
60 * synthesizing notes. The instrument is loaded into the bank and
63 * the sound of this newly loaded instrument. For the instrument to play notes,
65 * a program-change message that causes that particular instrument's
156 * Makes a particular instrument available for synthesis. This instrument
161 * <code>instrument</code>. If the specified instrument is already loaded,
164 * The instrument must be part of a soundbank
168 * @param instrument instrument to load
169 * @return <code>true</code> if the instrument is successfully loaded (or
170 * already had been), <code>false</code> if the instrument could not be
174 * <code>Synthesizer</code> doesn't support the specified instrument's
183 public boolean loadInstrument(Instrument instrument);
187 * Unloads a particular instrument.
188 * @param instrument instrument to unload
190 * <code>Synthesizer</code> doesn't support the specified instrument's
198 public void unloadInstrument(Instrument instrument);
202 * Remaps an instrument. Instrument <code>to</code> takes the
203 * place of instrument <code>from</code>.<br>
207 * If the function succeeds, instrument <code>from</code> is unloaded.
208 * <p>To cancel the remapping reload instrument <code>from</code> by
214 * of the old instrument, it should be loaded into the synthesizer
215 * @return <code>true</code> if the instrument succeessfully remapped,
217 * @throws <code>IllegalArgumentException</code> if instrument
218 * <code>from</code> or instrument <code>to</code> aren't supported by
219 * synthesizer or if instrument <code>to</code> is not loaded
250 * To learn whether another instrument can be loaded, you can invoke
251 * <code>isSoundbankSupported()</code>, and if the instrument's
252 * <code>Soundbank</code> is supported, you can try loading the instrument.
280 * already had been), <code>false</code> if any instrument could not be
312 * already had been), <code>false</code> if any instrument could not be