uk.org.toot.synth
Class BasicMidiSynth

java.lang.Object
  extended by java.util.Observable
      extended by uk.org.toot.midi.core.AbstractMidiDevice
          extended by uk.org.toot.synth.BasicMidiSynth
All Implemented Interfaces:
AudioDevice, MidiDevice, MidiInput, MidiPort, MidiTransport, IObservable, MidiSynth
Direct Known Subclasses:
MultiMidiSynth, PluckedSynth

public abstract class BasicMidiSynth
extends AbstractMidiDevice
implements MidiSynth

A BasicMidiSynth is a MidiSynth with 16 SynthChannels which may be set by the user. So it is multitimbral and each SynthChannel may be a different implementation, think a multitimbral synth with channel 1 a TX81Z, channel 2 a Moog etc.

Author:
st

Constructor Summary
BasicMidiSynth(java.lang.String name)
           
 
Method Summary
 void closeAudio()
           
 void closeMidi()
           
 java.util.List<AudioInput> getAudioInputs()
          Get the list of AudioInputs for this AudioDevice.
 java.util.List<AudioOutput> getAudioOutputs()
          Get the list of AudioOutputs for this AudioDevice.
 SynthChannel getChannel(int chan)
           
 SynthChannel[] getChannels()
           
 java.lang.String getLocation()
           
 void setLocation(java.lang.String location)
           
 void transport(javax.sound.midi.MidiMessage msg, long timestamp)
           
 
Methods inherited from class uk.org.toot.midi.core.AbstractMidiDevice
getMidiInputs, getMidiOutputs, getName, toString
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface uk.org.toot.midi.core.MidiDevice
getMidiInputs, getMidiOutputs, getName
 
Methods inherited from interface uk.org.toot.midi.core.MidiPort
getName
 
Methods inherited from interface uk.org.toot.audio.system.AudioDevice
getName
 
Methods inherited from interface uk.org.toot.misc.IObservable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 

Constructor Detail

BasicMidiSynth

public BasicMidiSynth(java.lang.String name)
Method Detail

setLocation

public void setLocation(java.lang.String location)
Specified by:
setLocation in interface MidiSynth

getLocation

public java.lang.String getLocation()

getChannels

public SynthChannel[] getChannels()

getChannel

public SynthChannel getChannel(int chan)

transport

public void transport(javax.sound.midi.MidiMessage msg,
                      long timestamp)
Specified by:
transport in interface MidiTransport

closeMidi

public void closeMidi()
Specified by:
closeMidi in interface MidiDevice

getAudioOutputs

public java.util.List<AudioOutput> getAudioOutputs()
Description copied from interface: AudioDevice
Get the list of AudioOutputs for this AudioDevice.

Specified by:
getAudioOutputs in interface AudioDevice

getAudioInputs

public java.util.List<AudioInput> getAudioInputs()
Description copied from interface: AudioDevice
Get the list of AudioInputs for this AudioDevice.

Specified by:
getAudioInputs in interface AudioDevice

closeAudio

public void closeAudio()
Specified by:
closeAudio in interface AudioDevice


Copyright © 2004, 2005, 2006, 2007 Steve Taylor. All Rights Reserved.