|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread biocell.BioThread nns.BioSensor devs.musicpackage.DanceGenerator
public class DanceGenerator
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
static float |
VOLUME_CORRECTION
|
Fields inherited from class nns.BioSensor |
---|
EXTERO_SENSOR, INTERO_SENSOR, PROPRIO_SENSOR |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Fields inherited from interface biocell.BioDevice |
---|
BLOCKED, BUSY, CYCLING, DONE, END, PAUSED, RESUMED, START, WAIT |
Constructor Summary | |
---|---|
DanceGenerator(BioSensorListener nns)
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
decoded(com.lightdev.lib.audio.Player p,
byte[] buf,
int byteCount)
|
void |
exception(com.lightdev.lib.audio.Player p,
java.lang.Exception ex)
|
SpectrumAnalyzer |
getAnalyzer()
|
java.lang.String |
getCurrentsong()
|
com.lightdev.lib.audio.Player |
getPlayer()
get the currently running play thread |
kj.dsp.KJDigitalSignalProcessingAudioDataConsumer |
getSynchronizer()
|
int |
getVolume()
get the currently set volume |
void |
process(MNSEvent cnv)
loads a CNSEvent into a listener |
void |
progress(com.lightdev.lib.audio.Player p,
long progressValue)
|
void |
setAnalyzer(SpectrumAnalyzer analyzer)
|
void |
setCurrentsong(java.lang.String currentsong)
|
void |
setPlayer(com.lightdev.lib.audio.Player player)
|
void |
setSynchronizer(kj.dsp.KJDigitalSignalProcessingAudioDataConsumer synchronizer)
|
void |
stateChanged(com.lightdev.lib.audio.Player p,
int fromStatus,
int toStatus)
|
void |
update(int[] coeffs)
|
Methods inherited from class nns.BioSensor |
---|
addListener, addListener, addSensorListener, geState, getControls, getCurrentPosition, getCurrentState, getListener, getname, getType, load, loadCNTR, seState, setListener, setname, setType |
Methods inherited from class biocell.BioThread |
---|
getCurrentmood, getMoodParam, getstate, setMood, stepEnergy |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final float VOLUME_CORRECTION
Constructor Detail |
---|
public DanceGenerator(BioSensorListener nns)
name
- Method Detail |
---|
public void update(int[] coeffs)
update
in interface SpectrumAnalyzerListener
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void process(MNSEvent cnv)
MNSListener
process
in interface MNSListener
process
in class BioSensor
public void stateChanged(com.lightdev.lib.audio.Player p, int fromStatus, int toStatus)
stateChanged
in interface com.lightdev.lib.audio.PlayerListener
public void progress(com.lightdev.lib.audio.Player p, long progressValue)
progress
in interface com.lightdev.lib.audio.PlayerListener
public void decoded(com.lightdev.lib.audio.Player p, byte[] buf, int byteCount)
decoded
in interface com.lightdev.lib.audio.PlayerListener
public void exception(com.lightdev.lib.audio.Player p, java.lang.Exception ex)
exception
in interface com.lightdev.lib.audio.PlayerListener
public com.lightdev.lib.audio.Player getPlayer()
public int getVolume()
public java.lang.String getCurrentsong()
public void setCurrentsong(java.lang.String currentsong)
currentsong
- The currentsong to set.public SpectrumAnalyzer getAnalyzer()
public void setAnalyzer(SpectrumAnalyzer analyzer)
analyzer
- The analyzer to set.public kj.dsp.KJDigitalSignalProcessingAudioDataConsumer getSynchronizer()
public void setSynchronizer(kj.dsp.KJDigitalSignalProcessingAudioDataConsumer synchronizer)
synchronizer
- The synchronizer to set.public void setPlayer(com.lightdev.lib.audio.Player player)
player
- The player to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |