|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uiuc.cs397rhc.sound.MidiFilter
edu.uiuc.cs397rhc.sound.ConditionalMidiFilter
edu.uiuc.cs397rhc.sound.ChannelMapFilter
ChannelMapFilter is a ConditionalMidiFilter that
maps MIDI channels on ShortMessages to other channels.
| Constructor Summary | |
|---|---|
ChannelMapFilter(java.util.Map<java.lang.Integer,java.lang.Integer> channelMap)
Creates a new ChannelMapFilter with the given mapping, no
Receiver, and that always applies. |
|
ChannelMapFilter(MidiCondition condition,
java.util.Map<java.lang.Integer,java.lang.Integer> channelMap)
Creates a new ChannelMapFilter with the given mapping, no
Receiver, and that applies when then given condition is
satisfied. |
|
ChannelMapFilter(javax.sound.midi.Receiver receiver,
java.util.Map<java.lang.Integer,java.lang.Integer> channelMap)
Creates a new ChannelMapFilter with the given mapping and
Receiver, and that always appliess. |
|
ChannelMapFilter(javax.sound.midi.Receiver receiver,
MidiCondition condition,
java.util.Map<java.lang.Integer,java.lang.Integer> channelMap)
Creates a new ChannelMapFilter with the given mapping and
Receiver, and that applies when then given condition is
satisfied. |
|
| Method Summary | |
|---|---|
javax.sound.midi.MidiEvent[] |
applyFilter(javax.sound.midi.MidiMessage message,
long time)
Returns the MidiEvents whose MidiMessages and
timestamps should be sent instead of the given message and timestamp when
the filter applies. |
| Methods inherited from class edu.uiuc.cs397rhc.sound.ConditionalMidiFilter |
|---|
getCondition, isApplicable, setCondition |
| Methods inherited from class edu.uiuc.cs397rhc.sound.MidiFilter |
|---|
close, getMicrosecondPosition, getReceiver, getSequencer, send, setReceiver, setSequencer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChannelMapFilter(java.util.Map<java.lang.Integer,java.lang.Integer> channelMap)
ChannelMapFilter with the given mapping, no
Receiver, and that always applies.
channelMap - a Map between channels
public ChannelMapFilter(MidiCondition condition,
java.util.Map<java.lang.Integer,java.lang.Integer> channelMap)
ChannelMapFilter with the given mapping, no
Receiver, and that applies when then given condition is
satisfied.
condition - the conditionchannelMap - a Map between channels
public ChannelMapFilter(javax.sound.midi.Receiver receiver,
java.util.Map<java.lang.Integer,java.lang.Integer> channelMap)
ChannelMapFilter with the given mapping and
Receiver, and that always appliess.
receiver - the receiverchannelMap - a Map between channels
public ChannelMapFilter(javax.sound.midi.Receiver receiver,
MidiCondition condition,
java.util.Map<java.lang.Integer,java.lang.Integer> channelMap)
ChannelMapFilter with the given mapping and
Receiver, and that applies when then given condition is
satisfied.
receiver - the receivercondition - the conditionchannelMap - a Map between channels| Method Detail |
|---|
public javax.sound.midi.MidiEvent[] applyFilter(javax.sound.midi.MidiMessage message,
long time)
MidiFilterMidiEvents whose MidiMessages and
timestamps should be sent instead of the given message and timestamp when
the filter applies. When called by send(), this method will
only be caleld if isApplicable() returns true.
applyFilter in class MidiFiltermessage - the messagetime - the timestamp
MidiEvents whose MidiMessages
and timestamps should be sent instead of the given message and timestamp
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||