|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fi.jyu.mit.Music.NoteTrack
public class NoteTrack
Luokka yhdelle ääniraidalle
Constructor Summary | |
---|---|
NoteTrack()
|
Method Summary | |
---|---|
void |
add(Note note)
|
List<Note> |
getCopyOfNotes()
Luo kopion puskuroiduista nuoteista |
int |
getCurrentTime()
|
int |
getInstrument()
|
List<Note> |
getNotes()
Palauttaa nuotit viitteenä jolloin niiden muuttaminen muuttaa soitettavia nuotteja |
int |
getStartTime()
|
boolean |
isEmpty()
|
boolean |
isMuted()
|
Iterator<Note> |
iterator()
|
void |
midiSoundNote(int note,
int length,
int velocity)
Tallentaa nuotin puskuriin. |
void |
mute(boolean muted)
|
Note |
remove(int index)
|
void |
rest(int barLength)
|
void |
setInstrument(int instrument)
|
void |
setStartTime(int startTime)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NoteTrack()
Method Detail |
---|
public int getStartTime()
public int getCurrentTime()
public void setStartTime(int startTime)
public int getInstrument()
public void setInstrument(int instrument)
public List<Note> getCopyOfNotes()
public List<Note> getNotes()
public void midiSoundNote(int note, int length, int velocity)
public void rest(int barLength)
public void add(Note note)
public Iterator<Note> iterator()
iterator
in interface Iterable<Note>
public boolean isEmpty()
public Note remove(int index)
public void mute(boolean muted)
public boolean isMuted()
public String toString()
toString
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |