public class WaveformDetail extends Object
| Modifier and Type | Field and Description |
|---|---|
DataReference |
dataReference
The unique identifier that was used to request this waveform detail.
|
static int |
LEADING_JUNK_BYTES
The number of bytes at the start of the waveform data which do not seem to be valid or used.
|
Message |
rawMessage
The message holding the detail as it was read over the network.
|
| Constructor and Description |
|---|
WaveformDetail(DataReference reference,
Message message)
Constructor when reading from the network or a cache file.
|
| Modifier and Type | Method and Description |
|---|---|
JComponent |
createViewComponent(TrackMetadata metadata,
BeatGrid beatGrid)
Create a standard Swing component which can be added to a user interface that will draw this waveform detail,
optionally including annotations like the current playback position and minute markers (if you supply
TrackMetadata so the total length can be determined), and cue markers (if you also supply a
CueList). |
ByteBuffer |
getData()
Get the raw bytes of the waveform detail data
|
int |
getFrameCount()
Count the half-frames of waveform available.
|
long |
getTotalTime()
Determine how long the track plays, in milliseconds.
|
String |
toString() |
public static final int LEADING_JUNK_BYTES
public final DataReference dataReference
public final Message rawMessage
public WaveformDetail(DataReference reference, Message message)
reference - the unique database reference that was used to request this waveform detailmessage - the response that contains the previewpublic ByteBuffer getData()
public int getFrameCount()
public long getTotalTime()
public JComponent createViewComponent(TrackMetadata metadata, BeatGrid beatGrid)
TrackMetadata so the total length can be determined), and cue markers (if you also supply a
CueList). The playback position can bemetadata - Information about the track whose waveform we are drawing, so we can translate times into
positionsbeatGrid - The locations of all the beats in the track, so they can be drawnCopyright © 2016–2018 Deep Symmetry, LLC. All rights reserved.