ie.ncl.sms.nbs
Class Note
java.lang.Object
ie.ncl.sms.nbs.Note
public class Note
- extends java.lang.Object
This class is used to create a note which can be then added
to a RingTone object.
- See Also:
RingTone
Constructor Summary |
Note(int pitch,
int duration)
Create a note specifying pitch and duration. |
Note(int pitch,
int duration,
int specifier)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DURATION_BASE
public static final int DURATION_BASE
- See Also:
- Constant Field Values
DURATION_BREVE
public static final int DURATION_BREVE
- See Also:
- Constant Field Values
DURATION_SEMIBREVE
public static final int DURATION_SEMIBREVE
- See Also:
- Constant Field Values
DURATION_MINIM
public static final int DURATION_MINIM
- See Also:
- Constant Field Values
DURATION_CROTCHET
public static final int DURATION_CROTCHET
- See Also:
- Constant Field Values
DURATION_QUAVER
public static final int DURATION_QUAVER
- See Also:
- Constant Field Values
DURATION_SEMIQUAVER
public static final int DURATION_SEMIQUAVER
- See Also:
- Constant Field Values
DURATION_DEMISEMIQUAVER
public static final int DURATION_DEMISEMIQUAVER
- See Also:
- Constant Field Values
DURATION_HEMIDEMISEMIQUAVER
public static final int DURATION_HEMIDEMISEMIQUAVER
- See Also:
- Constant Field Values
SPECIFIER_NONE
public static final int SPECIFIER_NONE
- See Also:
- Constant Field Values
SPECIFIER_DOTTED
public static final int SPECIFIER_DOTTED
- See Also:
- Constant Field Values
SPECIFIER_DOUBLE_DOTTED
public static final int SPECIFIER_DOUBLE_DOTTED
- See Also:
- Constant Field Values
SPECIFIER_TWO_THIRDS
public static final int SPECIFIER_TWO_THIRDS
- See Also:
- Constant Field Values
PAUSE
public static final int PAUSE
- See Also:
- Constant Field Values
MIDDLE_C
public static final int MIDDLE_C
- See Also:
- Constant Field Values
C
public static final int C
- See Also:
- Constant Field Values
CSHARP
public static final int CSHARP
- See Also:
- Constant Field Values
D
public static final int D
- See Also:
- Constant Field Values
DSHARP
public static final int DSHARP
- See Also:
- Constant Field Values
E
public static final int E
- See Also:
- Constant Field Values
F
public static final int F
- See Also:
- Constant Field Values
FSHARP
public static final int FSHARP
- See Also:
- Constant Field Values
G
public static final int G
- See Also:
- Constant Field Values
GSHARP
public static final int GSHARP
- See Also:
- Constant Field Values
A
public static final int A
- See Also:
- Constant Field Values
ASHARP
public static final int ASHARP
- See Also:
- Constant Field Values
B
public static final int B
- See Also:
- Constant Field Values
PITCH_MIN
public static final int PITCH_MIN
- The minimum pitch value.
- See Also:
- Constant Field Values
PITCH_MAX
public static final int PITCH_MAX
- The maximum pitch value.
- See Also:
- Constant Field Values
Note
public Note(int pitch,
int duration)
- Create a note specifying pitch and duration.
Middle C has pitch 0, C-sharp has pitch 1, etc.
Duration of 1 is one beat, 2 is 1/2 beat etc.
Note
public Note(int pitch,
int duration,
int specifier)
getPitch
public int getPitch()
getDuration
public int getDuration()
getSpecifier
public int getSpecifier()