|
abc4j API Specification | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectabc.notation.NoteAbstract
abc.notation.MultiNote
public class MultiNote
A multi note is a group of notes that should be played together.
| Field Summary |
|---|
| Fields inherited from class abc.notation.NoteAbstract |
|---|
DOWN, NONE, UP |
| Constructor Summary | |
|---|---|
MultiNote(java.util.Vector notes)
Creates a new MultiNote from given notes. |
|
| Method Summary | |
|---|---|
boolean |
contains(Note aNote)
Returns true if this chord contains the specified note. |
static Note[] |
excludeTiesEndings(Note[] notes)
|
Note |
getHighestNote()
Returns the highest note among the notes composing this multi note. |
static Note |
getHighestNote(Note[] notes)
Returns the highest note from the given array of notes. |
Note |
getLongestNote()
Returns the longest note of this multi note, based on its duration. |
static Note |
getLongestNote(Note[] notes)
Returns the note with the biggest duration from the given array of notes. |
Note |
getLowestNote()
Returns the lowest note among the notes composing this multi note. |
static Note |
getLowestNote(Note[] notes)
Returns the lowest note from the given array of notes. |
java.util.Vector |
getNotesAsVector()
Returns a new vector containing all Note objects contained in this multi note. |
Note[] |
getNotesBeginningTie()
Returns the notes from this multinote that begin a tie. |
static Note[] |
getNotesShorterThan(Note[] notes,
int aStrictDuration)
Returns all notes strictly shorter than the given strict duration. |
Note |
getShortestNote()
Returns the shortest note of this multi note, based on its duration. |
short[] |
getStrictDurations()
Returns the strict durations composing this multi notes. |
boolean |
hasAccidental()
Returns true if this multi note some accidentals (for at least one of its note). |
boolean |
hasUniqueStrictDuration()
Returns true if the strict durations of all notes composing this multi note have the same value. |
MultiNote[] |
normalize()
Normalizes this multi note by decomposing it into multinotes with same strict duration. |
Note[] |
toArray()
Returns notes composing this multinote as an array of notes, sorted from the lowest note to the highest one. |
| Methods inherited from class abc.notation.NoteAbstract |
|---|
countDots, getBow, getChordName, getDotted, getGracingNotes, getGracingNotesLength, getSlurDefinition, getTuplet, hasGeneralGracing, hasGracingNotes, hasStaccato, isBeginingSlur, isEndingSlur, isPartOfSlur, isPartOfTuplet, setBow, setChordName, setDotted, setGeneralGracing, setGracingNotes, setPartOfSlur, setSlurDefinition, setStaccato, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MultiNote(java.util.Vector notes)
notes - A Vector containing the NoteAbstract of this
MultiNote.| Method Detail |
|---|
public boolean contains(Note aNote)
aNote - A note instance.
public Note getLongestNote()
Note.getDuration()public static Note getLongestNote(Note[] notes)
notes - An array of notes.
Note.getDuration()
public static Note[] getNotesShorterThan(Note[] notes,
int aStrictDuration)
notes - An arry of notes.aStrictDuration - A strict duration (use constants defined class Note)
Note.getStrictDuration()public static Note getLowestNote(Note[] notes)
notes - An array of notes.
Note.isLowerThan(Note)public static Note getHighestNote(Note[] notes)
notes - An array of notes.
Note.isHigherThan(Note)public Note getShortestNote()
Note.getDuration()public Note getHighestNote()
getLowestNote(),
Note.isHigherThan(Note)public Note[] getNotesBeginningTie()
Note.isBeginningTie()public static Note[] excludeTiesEndings(Note[] notes)
public Note getLowestNote()
Note.isLowerThan(Note),
getHighestNote()public boolean hasUniqueStrictDuration()
Note.getStrictDuration()public short[] getStrictDurations()
public MultiNote[] normalize()
hasUniqueStrictDuration()public boolean hasAccidental()
Note.hasAccidental()public java.util.Vector getNotesAsVector()
public Note[] toArray()
|
abc4j API Specification | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||