Package uk.ac.qmul.eecs.depic.daw
Class DbWave
- java.lang.Object
-
- uk.ac.qmul.eecs.depic.daw.DbWave
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
createNewSequence()
void
deleteSequence()
Chunk
getChunkAt(int i)
int
getChunkNum()
int
getMaxScaleFactor()
float
getMillisecPerChunk()
int
getScaleFactor()
Sequence
getSequence()
Returns a sequence representing the peak meter line, if anyfloat
getWaveTime()
boolean
hasSequence()
void
setScaleFactor(int scaleFactor)
Sets the new scale factor.
-
-
-
Constructor Detail
-
DbWave
public DbWave(Wave soundWave)
-
-
Method Detail
-
getChunkNum
public int getChunkNum()
- Specified by:
getChunkNum
in interfaceWave
-
getChunkAt
public Chunk getChunkAt(int i)
- Specified by:
getChunkAt
in interfaceWave
-
setScaleFactor
public void setScaleFactor(int scaleFactor)
Description copied from interface:Wave
Sets the new scale factor. RegisteredSoundWaveListener
objects are notified with aSCALE_FACTOR_CHANGED
event.- Specified by:
setScaleFactor
in interfaceWave
- Parameters:
scaleFactor
- the new scale factor
-
getScaleFactor
public int getScaleFactor()
- Specified by:
getScaleFactor
in interfaceWave
-
getMaxScaleFactor
public int getMaxScaleFactor()
- Specified by:
getMaxScaleFactor
in interfaceWave
-
getWaveTime
public float getWaveTime()
- Specified by:
getWaveTime
in interfaceWave
-
getMillisecPerChunk
public float getMillisecPerChunk()
- Specified by:
getMillisecPerChunk
in interfaceWave
-
getSequence
public Sequence getSequence()
Returns a sequence representing the peak meter line, if any- Specified by:
getSequence
in interfaceWave
- Returns:
- the peak level sequence or
null
if this wave doesn't have a sequence
-
createNewSequence
public void createNewSequence()
-
deleteSequence
public void deleteSequence()
-
hasSequence
public boolean hasSequence()
- Specified by:
hasSequence
in interfaceWave
-
-