org.niffty
Class PartDescriptionOverride

java.lang.Object
  |
  +--org.niffty.PartDescriptionOverride

public class PartDescriptionOverride
extends java.lang.Object

A PartDescriptionOverride has a MIDI channel, MIDI cable and transpose. A PartDescriptionOverride's scope depends on the chunk type on which it appears.


Constructor Summary
PartDescriptionOverride()
          Creates new PartDescriptionOverride with all zero values
PartDescriptionOverride(int midiChannel, int midiCable, int transpose)
          Creates new PartDescriptionOverride with the given values.
 
Method Summary
 int getMidiCable()
          Return the MIDI cable value, or -1 specifies none.
 int getMidiChannel()
          Return the MIDI channel value, or -1 specifies none.
 int getTranspose()
          Return the transpose value.
 java.lang.String toString()
          Returns string as "(MIDI channel:value, MIDI cable:value, transpose:value)"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PartDescriptionOverride

public PartDescriptionOverride()
Creates new PartDescriptionOverride with all zero values


PartDescriptionOverride

public PartDescriptionOverride(int midiChannel,
                               int midiCable,
                               int transpose)
Creates new PartDescriptionOverride with the given values.

Parameters:
midiChannel - the MIDI channel. Use -1 to specify none.
midiCable - the MIDI cable. Use -1 to specify none.
transpose - Number of halfsteps to transpose this part during playback
Method Detail

getMidiChannel

public int getMidiChannel()
Return the MIDI channel value, or -1 specifies none.


getMidiCable

public int getMidiCable()
Return the MIDI cable value, or -1 specifies none.


getTranspose

public int getTranspose()
Return the transpose value.


toString

public java.lang.String toString()
Returns string as "(MIDI channel:value, MIDI cable:value, transpose:value)"

Overrides:
toString in class java.lang.Object