org.jfugue
Class PolyphonicPressure

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

public class PolyphonicPressure
extends java.lang.Object
implements JFugueElement

Represents tempo changes. Tempo is kept for the whole song, and is independent of tracks. You may change the tempo during a song.

Version:
3.0
Author:
David Koelle

Constructor Summary
PolyphonicPressure(byte key, byte pressure)
          Creates a new polyphonic pressure object, with the specified key and pressure values.
 
Method Summary
 byte getKey()
          Returns the key for this object.
 java.lang.String getMusicString()
          Returns the Music String representing this element and all of its settings.
 byte getPressure()
          Returns the pressure for this object.
 void setKey(byte key)
          Sets the key value of this object.
 void setPressure(byte pressure)
          Sets the pressure value of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolyphonicPressure

public PolyphonicPressure(byte key,
                          byte pressure)
Creates a new polyphonic pressure object, with the specified key and pressure values.

Parameters:
key - the key to apply pressure to
pressure - the pressure to apply
Method Detail

setKey

public void setKey(byte key)
Sets the key value of this object.

Parameters:
key - the key for this object

setPressure

public void setPressure(byte pressure)
Sets the pressure value of this object.

Parameters:
pressure - the pressure for this object

getKey

public byte getKey()
Returns the key for this object.

Returns:
the key for this object

getPressure

public byte getPressure()
Returns the pressure for this object.

Returns:
the pressure for this object

getMusicString

public java.lang.String getMusicString()
Returns the Music String representing this element and all of its settings. For a polyphonic pressure object, the Music String is *key,pressure

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