|
abc4j API Specification | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector
abc.notation.Tune.Music
public class Tune.Music
| Constructor Summary | |
|---|---|
Tune.Music()
|
|
| Method Summary | |
|---|---|
void |
addElement(KeySignature key)
|
void |
addElement(NoteAbstract note)
|
MusicElement |
getElementAt(int offset)
Returns the score element location at the specified offset. |
Note |
getHighestNoteBewteen(MusicElement elmtBegin,
MusicElement elmtEnd)
Returns the highest note between two music elements. |
NoteAbstract |
getLastNote()
|
Note |
getLowestNoteBewteen(MusicElement noteBegin,
MusicElement noteEnd)
MultiNote instances are ignored. |
int |
indexOf(MusicElement elmnt)
|
| Methods inherited from class java.util.Vector |
|---|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
iterator, listIterator, listIterator |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
iterator, listIterator, listIterator |
| Constructor Detail |
|---|
public Tune.Music()
| Method Detail |
|---|
public void addElement(KeySignature key)
public void addElement(NoteAbstract note)
public NoteAbstract getLastNote()
public MusicElement getElementAt(int offset)
offset - An offset in a char stream.
public int indexOf(MusicElement elmnt)
public Note getHighestNoteBewteen(MusicElement elmtBegin,
MusicElement elmtEnd)
throws java.lang.IllegalArgumentException
elmtBegin - The music element where to start (included) the search
of the highest note.elmtEnd - The music element where to end (included) the search
of the highest note.
java.lang.IllegalArgumentException - Thrown if one of the music elements hasn't been found
in the music or if the elmtEnd param is located before the elmntBegin
param in the music.
public Note getLowestNoteBewteen(MusicElement noteBegin,
MusicElement noteEnd)
throws java.lang.IllegalArgumentException
noteBegin - (included)noteEnd - (included)
java.lang.IllegalArgumentException
|
abc4j API Specification | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||