Class DbWave

  • java.lang.Object
    • uk.ac.qmul.eecs.depic.daw.DbWave
  • All Implemented Interfaces:
    Wave


    public class DbWave
    extends java.lang.Object
    implements Wave
    A Wave that displays chucks in DB scale
    • Constructor Detail

      • DbWave

        public DbWave(Wave soundWave)
    • Method Detail

      • getChunkNum

        public int getChunkNum()
        Specified by:
        getChunkNum in interface Wave
      • setScaleFactor

        public void setScaleFactor(int scaleFactor)
        Description copied from interface: Wave
        Sets the new scale factor. Registered SoundWaveListener objects are notified with a SCALE_FACTOR_CHANGED event.
        Specified by:
        setScaleFactor in interface Wave
        Parameters:
        scaleFactor - the new scale factor
      • getScaleFactor

        public int getScaleFactor()
        Specified by:
        getScaleFactor in interface Wave
      • getWaveTime

        public float getWaveTime()
        Specified by:
        getWaveTime in interface Wave
      • getSequence

        public Sequence getSequence()
        Returns a sequence representing the peak meter line, if any
        Specified by:
        getSequence in interface Wave
        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 interface Wave