org.jfugue
Class DeviceThatWillReceiveMidi
java.lang.Object
org.jfugue.DeviceThatWillReceiveMidi
public class DeviceThatWillReceiveMidi
- extends java.lang.Object
Represents an attached MIDI device, such as a keyboard - use this class
to send MIDI from your JFugue program to a keyboard or sythesizer.
This class uses javax.sound.MidiDevice, but is not derived from javax.sound.MidiDevice.
- Version:
- 3.0
- Author:
- David Koelle
Method Summary |
void |
close()
|
javax.sound.midi.Receiver |
getReceiver()
|
void |
sendSequence(javax.sound.midi.Sequence sequence)
Send the given sequence to the MIDI device - use this to send MIDI files
to your keyboard! |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeviceThatWillReceiveMidi
public DeviceThatWillReceiveMidi()
throws javax.sound.midi.MidiUnavailableException
- Creates a new DeviceThatWillReceiveMidi using JFugue's Intelligent Device Resolver to pick the
most likely device to open.
- Throws:
javax.sound.midi.MidiUnavailableException
DeviceThatWillReceiveMidi
public DeviceThatWillReceiveMidi(javax.sound.midi.MidiDevice.Info info)
throws javax.sound.midi.MidiUnavailableException
- Throws:
javax.sound.midi.MidiUnavailableException
sendSequence
public void sendSequence(javax.sound.midi.Sequence sequence)
- Send the given sequence to the MIDI device - use this to send MIDI files
to your keyboard!
- Parameters:
sequence
- The sequence to send to the MIDI device
close
public void close()
getReceiver
public javax.sound.midi.Receiver getReceiver()