org.jfugue
Class Layer

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

public class Layer
extends java.lang.Object
implements JFugueElement

Represents layer changes. A Layer allows multiple sounds to be played at the same time on a single track (also known as a voice), without those notes being specified as a chord. This is particularly helpful when sing Track 9, the percussion track, so multiple percussion sounds can occur at the same time.

Version:
3.0
Author:
David Koelle

Constructor Summary
Layer(byte layer)
          Creates a new Layer object, with the specified layer number.
 
Method Summary
 byte getLayer()
          Returns the layer used in this object
 java.lang.String getMusicString()
          Returns the Music String representing this element and all of its settings.
 void setLayer(byte layer)
          Sets the value of the layer for this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Layer

public Layer(byte layer)
Creates a new Layer object, with the specified layer number.

Parameters:
layer - the number of the layer to use
Method Detail

setLayer

public void setLayer(byte layer)
Sets the value of the layer for this object.

Parameters:
layer - the number of the layer to use

getLayer

public byte getLayer()
Returns the layer used in this object

Returns:
the layer used in this object

getMusicString

public java.lang.String getMusicString()
Returns the Music String representing this element and all of its settings. For a Layer object, the Music String is Llayer-number

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