Package org.jfugue.devices
Class MusicTransmitterToSequence
java.lang.Object
org.jfugue.devices.MusicTransmitterToSequence
Represents a device that will send music. For example, you can attach this
to your external MIDI keyboard and play music on the keyboard, which is then recorded here.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
listenForMillis
(long millis) Used instead of startListening() and stopListening() - listens for a pre-defined amount of time.void
void
-
Constructor Details
-
MusicTransmitterToSequence
- Throws:
MidiUnavailableException
-
-
Method Details
-
startListening
-
stopListening
public void stopListening() -
listenForMillis
public void listenForMillis(long millis) throws MidiUnavailableException, InvalidMidiDataException, InterruptedException Used instead of startListening() and stopListening() - listens for a pre-defined amount of time.- Parameters:
millis
-- Throws:
MidiUnavailableException
InterruptedException
InvalidMidiDataException
-
close
public void close() -
getSequence
-