dguitar.codecs.guitarPro
Class GPMusicalNote

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

public class GPMusicalNote
extends java.lang.Object

This class describes how is represented a musical note. It is quite different from the GPNote class, as this one only contain one integer representing how a note is encoded, that is to say what is a C, what is a D...

Author:
Matthieu Wipliez

Field Summary
private  int _note
          A note is represented by a positive integer.
 
Constructor Summary
GPMusicalNote(int note)
          Creates a new GPMusicalNote.
 
Method Summary
 int getNote()
          Returns the note.
 void setNote(int note)
          Sets the note.
 java.lang.String toString()
          Returns a string representation of this GPMusicalNote.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_note

private int _note
A note is represented by a positive integer.
Each incrementation represents a half tone.

Constructor Detail

GPMusicalNote

public GPMusicalNote(int note)
Creates a new GPMusicalNote.

Parameters:
note -
Method Detail

getNote

public int getNote()
Returns the note.

Returns:
the note.

setNote

public void setNote(int note)
Sets the note.

Parameters:
note - the note to set.

toString

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