dguitar.codecs.guitarPro
Class GPDynamic

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

public class GPDynamic
extends java.lang.Object

This class describes a note's dynamic.

Author:
Matthieu Wipliez

Field Summary
private  int _type
          A note's dynamic is represented by an integer.
private static GPDynamic[] dynamics
          The different dynamics.
private static java.lang.String[] dynamicsNames
          The different dynamics's names.
static GPDynamic F
          forte
static GPDynamic FF
          fortissimo
static GPDynamic FFF
          forte fortissimo
static GPDynamic INVALID
          An invalid dynamic value.
static GPDynamic MF
          mezzo forte
static GPDynamic MP
          mezzo piano
static GPDynamic P
          piano
static GPDynamic PP
          pianissimo
static GPDynamic PPP
          piano pianissimo
 
Constructor Summary
private GPDynamic(int type)
          Creates a new GPDynamic whose type is type.
 
Method Summary
 int getIndex()
          Returns an index that represents the dynamic
0 = INVALID
1 = PPP
2 = PP
and so on.
 java.lang.String toString()
          Returns a string representation of this Dynamic.
static GPDynamic valueOf(int type)
          Returns the GPDynamic associated with the value type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_type

private int _type
A note's dynamic is represented by an integer.


INVALID

public static final GPDynamic INVALID
An invalid dynamic value.


PPP

public static final GPDynamic PPP
piano pianissimo


PP

public static final GPDynamic PP
pianissimo


P

public static final GPDynamic P
piano


MP

public static final GPDynamic MP
mezzo piano


MF

public static final GPDynamic MF
mezzo forte


F

public static final GPDynamic F
forte


FF

public static final GPDynamic FF
fortissimo


FFF

public static final GPDynamic FFF
forte fortissimo


dynamics

private static final GPDynamic[] dynamics
The different dynamics.


dynamicsNames

private static final java.lang.String[] dynamicsNames
The different dynamics's names.

Constructor Detail

GPDynamic

private GPDynamic(int type)
Creates a new GPDynamic whose type is type.

Parameters:
type - this dynamic's integer value.
Method Detail

getIndex

public int getIndex()
Returns an index that represents the dynamic
0 = INVALID
1 = PPP
2 = PP
and so on.


toString

public java.lang.String toString()
Returns a string representation of this Dynamic.


valueOf

public static GPDynamic valueOf(int type)
Returns the GPDynamic associated with the value type.

Parameters:
type - the dynamic integer value.
Returns:
the dynamic object associated.