org.jfugue
Class ChannelPressure

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

public class ChannelPressure
extends java.lang.Object
implements JFugueElement

Represents channel pressure changes.

Version:
3.0
Author:
David Koelle

Constructor Summary
ChannelPressure(byte pressure)
          Creates a new channel pressure object, with the specified key and pressure values.
 
Method Summary
 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 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

ChannelPressure

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

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

setPressure

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

Parameters:
pressure - the pressure 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 channel pressure object, the Music String is +key,pressure

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