public class Note
extends java.lang.Object
| Constructor and Description |
|---|
Note(java.lang.String name)
Constructs a Note object.
|
Note(java.lang.String name,
double duration)
Constructs a Note object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCompleteIndex()
Return the absolute MIDI key index of the note.
|
double |
getDuration()
Return the note duration.
|
int |
getKeyIndex()
Return the relative MIDI key index in base 12.
|
java.lang.String |
getName()
Return the name of Note object.
|
boolean |
isRest()
Returns true if the note is a rest.
|
public Note(java.lang.String name)
name - Note namepublic Note(java.lang.String name,
double duration)
name - Note nameduration - Note durationpublic double getDuration()
public java.lang.String getName()
public int getCompleteIndex()
public int getKeyIndex()
public boolean isRest()