org.jfugue
Class PitchBend

java.lang.Object
  extended by org.jfugue.PitchBend
All Implemented Interfaces:
JFugueElement

public class PitchBend
extends java.lang.Object
implements JFugueElement

Represents pitch bend changes.

Version:
3.0
Author:
David Koelle

Constructor Summary
PitchBend(byte lsb, byte msb)
          Creates a new Pitch Bend object, with the specified tempo value.
 
Method Summary
 byte[] getBend()
          Returns the value of the pitch bend for this object.
 java.lang.String getMusicString()
          Returns the Music String representing this element and all of its settings.
 void setPitchBend(byte lsb, byte msb)
          Sets the value of the pitch bend for this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PitchBend

public PitchBend(byte lsb,
                 byte msb)
Creates a new Pitch Bend object, with the specified tempo value. Integer value = msb * 0x80 + lsb (0x80 hex == 128 dec)

Parameters:
lsb - the least significant byte for the pitch bend for this object
msb - the most significant byte for the pitch bend for this object
Method Detail

setPitchBend

public void setPitchBend(byte lsb,
                         byte msb)
Sets the value of the pitch bend for this object.

Parameters:
tempo - the pitch bend for this object

getBend

public byte[] getBend()
Returns the value of the pitch bend for this object.

Returns:
the value of the pitch bend for this object

getMusicString

public java.lang.String getMusicString()
Returns the Music String representing this element and all of its settings. For a PitchBend object, the Music String is &int or &lsb,msb

Specified by:
getMusicString in interface JFugueElement
Returns:
the Music String for this element