Package wavFiles.xwav

Class HarpCycle

java.lang.Object
wavFiles.xwav.HarpCycle
All Implemented Interfaces:
Cloneable

public class HarpCycle extends Object implements Cloneable
information from one point in a harp header.
Author:
dg50
  • Field Details

    • durationMillis

      public long durationMillis
  • Constructor Details

    • HarpCycle

      public HarpCycle()
  • Method Details

    • getEndMillis

      public long getEndMillis()
      End time of this cycle info in millis.
      Returns:
    • isConsecutive

      public boolean isConsecutive(HarpCycle other)
      Start of other cycle is at end of this cycle ? Within 500ms anyway.
      Parameters:
      other -
      Returns:
    • compatible

      public boolean compatible(HarpCycle other)
      True if same sample rate and gain, false otherwise
      Parameters:
      other -
      Returns:
    • merge

      public void merge(HarpCycle other)
      Add another cycle to this one, extending its byte length and durarion
      Parameters:
      other -
    • clone

      public HarpCycle clone()
      Overrides:
      clone in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • gettMillis

      public long gettMillis()
      Returns:
      the tMillis
    • getByteLoc

      public long getByteLoc()
      Returns:
      the byteLoc
    • getByteLength

      public long getByteLength()
      Returns:
      the byteLength
    • getWriteLength

      public long getWriteLength()
      Returns:
      the writeLength
    • getSampleRate

      public long getSampleRate()
      Returns:
      the sampleRate
    • getGain

      public int getGain()
      Returns:
      the gain
    • getDurationMillis

      public long getDurationMillis()
      Returns:
      the durationMillis
    • getSamplesSkipped

      public long getSamplesSkipped()
      Returns:
      the samplesSkipped