org.tritonus.share.midi
Class TDirectSynthesizer
java.lang.Object
org.tritonus.share.midi.TMidiDevice
org.tritonus.share.midi.TDirectSynthesizer
- All Implemented Interfaces:
- MidiDevice, Synthesizer
public abstract class TDirectSynthesizer
- extends TMidiDevice
- implements Synthesizer
Base class for Synthesizer implementations.
This base class is for Synthesizer implementations that do not itself operate
on MIDI, but instread implement the MidiChannel interface. For these
implementations, MIDI behaviour is simulated on top of MidiChannel.
- Author:
- Matthias Pfisterer
- See Also:
MidiChannel
|
Method Summary |
protected void |
receive(MidiMessage message,
long lTimeStamp)
Handles MIDI messages coming in from Receivers. |
| Methods inherited from class org.tritonus.share.midi.TMidiDevice |
addReceiver, addTransmitter, close, closeImpl, getDeviceInfo, getMaxReceivers, getMaxTransmitters, getMicrosecondPosition, getReceiver, getReceivers, getTransmitter, getTransmitters, getUseReceiver, getUseTransmitter, isOpen, open, openImpl, removeReceiver, removeTransmitter, sendImpl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.sound.midi.Synthesizer |
getAvailableInstruments, getDefaultSoundbank, getChannels, getLatency, getLoadedInstruments, getMaxPolyphony, getVoiceStatus, isSoundbankSupported, loadAllInstruments, loadInstrument, loadInstruments, remapInstrument, unloadAllInstruments, unloadInstrument, unloadInstruments |
| Methods inherited from interface javax.sound.midi.MidiDevice |
close, getDeviceInfo, getMaxReceivers, getMaxTransmitters, getMicrosecondPosition, getReceiver, getReceivers, getTransmitter, getTransmitters, isOpen, open |
TDirectSynthesizer
public TDirectSynthesizer(MidiDevice.Info info)
- Initialize this class.
This sets the info from the passed one, sets the open status
to false, the number of Receivers to zero and the collection
of Transmitters to be empty.
- Parameters:
info - The info object that describes this instance.
receive
protected void receive(MidiMessage message,
long lTimeStamp)
- Handles MIDI messages coming in from Receivers.
- Overrides:
receive in class TMidiDevice
Copyright © 2012. All Rights Reserved.