|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.charlesames.music.ensemble.NoteAttribute
public abstract class NoteAttribute
The NoteAttribute class maps attribute names to specific properties of ScoreNote instances.
| Field Summary | |
|---|---|
static NoteAttribute |
ACCENT
Note accent. |
static NoteAttribute |
DURATION
Note duration. |
static NoteAttribute |
ID
Note ID. |
static NoteAttribute |
INSTRUMENT
Note-list Instrument ID. |
static NoteAttribute |
ONSET
Note onset time. |
static NoteAttribute |
ONSET_PITCH
Pitch, expressed in cycles per second, as of the note's starting time. |
static NoteAttribute |
PROCESS
Note process ID. |
static NoteAttribute |
RELEASE_PITCH
Pitch, expressed in cycles per second, as of the note's ending time. |
static NoteAttribute |
SLUR_FROM_ID
ID of slur-from note. |
static NoteAttribute |
VOICE
Note voice ID. |
| Method Summary | |
|---|---|
abstract java.lang.String |
formatValue(double value)
Format the indicated value as text. |
java.lang.String |
getName()
Get the attribute name. |
abstract double |
getValue(ScoreNote note)
Get the note property value corresponding to the attribute name from the indicated note. |
static NoteAttribute |
valueOf(java.lang.String name)
Find the NoteAttribute instance with the indicated name. |
static java.util.SortedMap<java.lang.String,NoteAttribute> |
values()
Get all the attributes. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static NoteAttribute ID
public static NoteAttribute SLUR_FROM_ID
public static NoteAttribute INSTRUMENT
public static NoteAttribute ONSET
public static NoteAttribute DURATION
public static NoteAttribute ACCENT
public static NoteAttribute ONSET_PITCH
public static NoteAttribute RELEASE_PITCH
public static NoteAttribute PROCESS
public static NoteAttribute VOICE
| Method Detail |
|---|
public java.lang.String getName()
public abstract java.lang.String formatValue(double value)
value - The indicated value.
public abstract double getValue(ScoreNote note)
note - The indicated name.
public static NoteAttribute valueOf(java.lang.String name)
NoteAttribute instance with the indicated name.
name - The indicated name.
NoteAttribute instance.public static java.util.SortedMap<java.lang.String,NoteAttribute> values()
NoteAttribute instances, indexed by attribute name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||