public final class MidiUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MidiUtils.DestinationSettings |
static class |
MidiUtils.DeviceControl |
static class |
MidiUtils.GeneralMidiMessages |
static class |
MidiUtils.KeyBasedInstrumentControl |
static class |
MidiUtils.MidiTuningStandard
|
Modifier and Type | Field and Description |
---|---|
static int |
ALL_DEVICES |
Modifier and Type | Method and Description |
---|---|
static void |
sendTuningChange(javax.sound.midi.Receiver recv,
int channel,
int tuningpreset)
Enables a tuning preset.
|
static void |
sendTunings(javax.sound.midi.Receiver recv,
int bank,
int preset,
java.lang.String name,
double[] tunings)
Sends a KeyBasedTuningDump MIDI
message to a receiver using the specified tuning in cents.
|
public static final int ALL_DEVICES
public static void sendTuningChange(javax.sound.midi.Receiver recv, int channel, int tuningpreset) throws javax.sound.midi.InvalidMidiDataException
recv
- the receiver to send the message tochannel
- the channel to send the message ontuningpreset
- the index of the tuning presetjavax.sound.midi.InvalidMidiDataException
- if something goes awry.public static void sendTunings(javax.sound.midi.Receiver recv, int bank, int preset, java.lang.String name, double[] tunings) throws java.io.IOException, javax.sound.midi.InvalidMidiDataException
recv
- bank
- preset
- name
- tunings
- java.io.IOException
javax.sound.midi.InvalidMidiDataException