com.frinika.sequencer
Class MidiResource

java.lang.Object
  extended by com.frinika.sequencer.MidiResource

public class MidiResource
extends java.lang.Object

Provides midi information such a voice lists and channel name. This stuff may find a better home someday.

Author:
Paul

Constructor Summary
MidiResource(FrinikaSequencer sequencer)
           
 
Method Summary
static ControllerListProvider getDefaultControllerList()
           
 java.lang.Object[] getOutChannelList(javax.sound.midi.MidiDevice dev)
          Return the channels provided by a given device.
 PatchNameMap getVoiceList(java.io.File patchMapName)
           
 PatchNameMap getVoiceList(javax.sound.midi.MidiDevice dev, int channel)
          Return a list of voices for a device.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MidiResource

public MidiResource(FrinikaSequencer sequencer)
Method Detail

getOutChannelList

public java.lang.Object[] getOutChannelList(javax.sound.midi.MidiDevice dev)
Return the channels provided by a given device. If device does not provide a list . . . return 0,1 2, ... 15

Parameters:
dev -
Returns:

getVoiceList

public PatchNameMap getVoiceList(javax.sound.midi.MidiDevice dev,
                                 int channel)
Return a list of voices for a device. if device does not provide a list return null.

Parameters:
dev -
channel -
Returns:

getDefaultControllerList

public static ControllerListProvider getDefaultControllerList()

getVoiceList

public PatchNameMap getVoiceList(java.io.File patchMapName)