|
||||||||||
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.ArrayList
jcaas.midi.Score
public class Score
Constructor Summary | |
---|---|
Score(Staff s)
Standard Constructor |
|
Score(Staff[] s)
Standard Constructor |
Method Summary | |
---|---|
void |
add(int i,
java.lang.Object o)
|
boolean |
add(java.lang.Object o)
|
boolean |
addAll(java.util.Collection c)
|
boolean |
addAll(int i,
java.util.Collection c)
|
boolean |
changeStaff(int i,
Staff s)
A method to replace one of the staves in this score |
MMessage |
getInfo(int i,
MMessage m)
A method to get information about the currently Playing Scores/Staffs. |
NoteVector[] |
getNextNote()
A method to return the next note to be played in this score |
int |
getNumStaffs()
Method to get the number of staves in this Score |
StaffProperty |
getProperty(int i,
java.lang.String pname)
Method to get information about substaffs of the score |
Staff |
getStaff(int i)
A method to get teh ith staff in this Score |
boolean |
passMessage(int i,
MMessage m)
A method to inform the Score of changes it should make. |
Methods inherited from class java.util.ArrayList |
---|
clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
Constructor Detail |
---|
public Score(Staff[] s)
s
- the staves this score representspublic Score(Staff s)
s
- the staff this score representsMethod Detail |
---|
public boolean add(java.lang.Object o)
add
in interface java.util.Collection
add
in interface java.util.List
add
in class java.util.ArrayList
public void add(int i, java.lang.Object o)
add
in interface java.util.List
add
in class java.util.ArrayList
public boolean addAll(java.util.Collection c)
addAll
in interface java.util.Collection
addAll
in interface java.util.List
addAll
in class java.util.ArrayList
public boolean addAll(int i, java.util.Collection c)
addAll
in interface java.util.List
addAll
in class java.util.ArrayList
public NoteVector[] getNextNote()
public StaffProperty getProperty(int i, java.lang.String pname)
i
- the index of the staff in this scorepname
- the name of the property
public int getNumStaffs()
public boolean changeStaff(int i, Staff s)
i
- s
-
public Staff getStaff(int i)
i
- the index of the Staff
public boolean passMessage(int i, MMessage m)
i
- the index of the staff to modify.m
- the message to be implemented
public MMessage getInfo(int i, MMessage m)
i
- the index of the staff to get information abouttype
- the type of information to get
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |