edu.uiuc.cs397rhc.sound
Interface MidiCondition

All Known Implementing Classes:
AtomicMidiCondition, ChannelGroupCondition, MidiConditionList, NegationCondition

public interface MidiCondition

A MidiCondition is a predicate over a MidiMessage and its timestamp. It is generally used in ConditionalMidiFilters.

Author:
Pedro DeRose

Method Summary
 java.lang.String getPrettyString()
          Returns a pretty, printable representation of this condition.
 boolean isSatisfiedBy(javax.sound.midi.MidiMessage msg, long time)
          Whether the condition is satisfied by the given MidiMessage and timestamp.
 

Method Detail

isSatisfiedBy

boolean isSatisfiedBy(javax.sound.midi.MidiMessage msg,
                      long time)
Whether the condition is satisfied by the given MidiMessage and timestamp.

Parameters:
msg - the message being checked
time - the timestamp of the message
Returns:
true if satisfied, false otherwise.

getPrettyString

java.lang.String getPrettyString()
Returns a pretty, printable representation of this condition. This will be used to recursively print out complex conditions.

Returns:
a pretty, printable representation of this condition