com.frinika.sequencer
Class MidiResource
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MidiResource
public MidiResource(FrinikaSequencer sequencer)
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)