dguitar.codecs.guitarPro
Class GPTrill

java.lang.Object
  extended bydguitar.codecs.guitarPro.GPTrill

public class GPTrill
extends java.lang.Object

This class describes a trill.

Author:
Matthieu Wipliez

Field Summary
private  int _fret
          The fret the trill is made with.
private  GPDuration _period
          The period between each note.
 
Constructor Summary
GPTrill()
          Creates a new Trill.
 
Method Summary
 int getFret()
          Returns this trill's fret.
 GPDuration getPeriod()
          Returns this trill's period.
 void setFret(int fret)
          Sets this trill's fret.
 void setPeriod(GPDuration period)
          Sets this trill's period.
 java.lang.String toString()
          Returns a string representation of the Trill.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_fret

private int _fret
The fret the trill is made with.


_period

private GPDuration _period
The period between each note.

Constructor Detail

GPTrill

public GPTrill()
Creates a new Trill.

Method Detail

getFret

public int getFret()
Returns this trill's fret.

Returns:
this trill's fret.

getPeriod

public GPDuration getPeriod()
Returns this trill's period.

Returns:
this trill's period.

setFret

public void setFret(int fret)
Sets this trill's fret.

Parameters:
fret - the fret to set.

setPeriod

public void setPeriod(GPDuration period)
Sets this trill's period.

Parameters:
period - the period to set.

toString

public java.lang.String toString()
Returns a string representation of the Trill.