|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uiuc.cs397rhc.game.Instrumentation
Represents the parts of a MIDI piece that can be assigned to a team. These are any channel, or any notes on the drum channel (channel 9).
| Constructor Summary | |
|---|---|
Instrumentation(int[] channels,
int[] percussion)
Creates a new Instrumentation for the given channels and
notes on the drum channel. |
|
| Method Summary | |
|---|---|
static Instrumentation |
create(java.util.Properties props,
java.lang.String prefix)
Creates an Instrumentation as read from a set of properties. |
java.util.Set<java.lang.Integer> |
getChannels()
Gets the channels. |
protected java.util.Set<java.lang.Integer> |
getChannelSet()
Gets the channels. |
java.util.Set<java.lang.Integer> |
getPercussion()
Gets the drum notes. |
protected java.util.Set<java.lang.Integer> |
getPercussionSet()
Gets the drum notes. |
boolean |
includesDrumChannel()
Whether the drum channel has been assigned. |
protected void |
removeAll(Instrumentation other)
Un-assigns all channels or drum notes that have already been assigned to the given Instrumentation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Instrumentation(int[] channels,
int[] percussion)
Instrumentation for the given channels and
notes on the drum channel.
channels - an int array representing channelspercussion - an int array representing notes on the drum
channel| Method Detail |
|---|
public java.util.Set<java.lang.Integer> getChannels()
Set of channelspublic java.util.Set<java.lang.Integer> getPercussion()
Set of drum notespublic boolean includesDrumChannel()
true if the drum channel has been assigned,
false otherwiseprotected java.util.Set<java.lang.Integer> getChannelSet()
Set of channelsprotected java.util.Set<java.lang.Integer> getPercussionSet()
Set of drum notesprotected void removeAll(Instrumentation other)
Instrumentation.
other - the given Instrumentation
public static Instrumentation create(java.util.Properties props,
java.lang.String prefix)
Instrumentation as read from a set of properties.
The format is:
prefix.channels={channel1,channel2,...}
prefix.percussion={note1,note1,...}
Empty instrumentations ("{}") are allowed.
props - the set of properties to examineprefix - the prefix of the relevant properties
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||