|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.frinika.sequencer.Metronome
public class Metronome
Field Summary |
---|
Fields inherited from interface uk.org.toot.audio.core.AudioProcess |
---|
AUDIO_DISCONNECT, AUDIO_OK |
Constructor Summary | |
---|---|
Metronome(ProjectContainer project)
|
Method Summary | |
---|---|
void |
close()
|
void |
notifyTickPosition(long tick)
This method is called each time a new tick is played by the sequencer. |
void |
open()
|
int |
processAudio(uk.org.toot.audio.core.AudioBuffer buffer)
|
boolean |
requiresNotificationOnEachTick()
Your implementation should return true if your listener requires to be notified for each and every tick. |
void |
setVelocity(int velocity)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Metronome(ProjectContainer project) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public void setVelocity(int velocity)
public void notifyTickPosition(long tick)
SongPositionListener
notifyTickPosition
in interface SongPositionListener
public boolean requiresNotificationOnEachTick()
SongPositionListener
requiresNotificationOnEachTick
in interface SongPositionListener
public int processAudio(uk.org.toot.audio.core.AudioBuffer buffer)
processAudio
in interface uk.org.toot.audio.core.AudioProcess
public void open()
open
in interface uk.org.toot.audio.core.AudioProcess
public void close()
close
in interface uk.org.toot.audio.core.AudioProcess
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |