net.charlesames.music.midi
Enum MidiChannelMode

java.lang.Object
  extended by java.lang.Enum<MidiChannelMode>
      extended by net.charlesames.music.midi.MidiChannelMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MidiChannelMode>

public enum MidiChannelMode
extends java.lang.Enum<MidiChannelMode>

Options for assigning notes to MIDI channels.

Author:
Charles Ames

Enum Constant Summary
Dynamic
          Select a free channel for each individual note.
Static
          Direct all notes in a ScoreVoice to the MIDI channel indicated in the corresponding EnsembleVoice.
 
Method Summary
static MidiChannelMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MidiChannelMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Static

public static final MidiChannelMode Static
Direct all notes in a ScoreVoice to the MIDI channel indicated in the corresponding EnsembleVoice.


Dynamic

public static final MidiChannelMode Dynamic
Select a free channel for each individual note. This mode is required when one or more voices in the score has notes playing simultaneously, and when those notes are subject to independent pitch bend. Files generated under the Dynamic channel mode should use MIDI file format 0 (Single Track).

Method Detail

values

public static MidiChannelMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (MidiChannelMode c : MidiChannelMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MidiChannelMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null