Package wavFiles.xwav
Class HarpCycle
java.lang.Object
wavFiles.xwav.HarpCycle
- All Implemented Interfaces:
Cloneable
information from one point in a harp header.
- Author:
- dg50
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
compatible
(HarpCycle other) True if same sample rate and gain, false otherwiselong
long
long
long
End time of this cycle info in millis.int
getGain()
long
long
long
long
boolean
isConsecutive
(HarpCycle other) Start of other cycle is at end of this cycle ? Within 500ms anyway.void
Add another cycle to this one, extending its byte length and durariontoString()
-
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
Start of other cycle is at end of this cycle ? Within 500ms anyway.- Parameters:
other
-- Returns:
-
compatible
True if same sample rate and gain, false otherwise- Parameters:
other
-- Returns:
-
merge
Add another cycle to this one, extending its byte length and durarion- Parameters:
other
-
-
clone
-
toString
-
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
-