public class Note
extends java.lang.Object
Red (ilgea) |
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()
Returns the absolute MIDI key index of the note
|
double |
getDuration()
Returns the note duration
|
int |
getKeyIndex()
Returns the relative MIDI key index in base 12
|
java.lang.String |
getName()
Returns 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()