public class TempoCode extends AbstractDataType
FrameBodySYTC
tempo code.
The tempo is in BPM described with one or two bytes. If the
first byte has the value $FF, one more byte follows, which is added
to the first giving a range from 2 - 510 BPM, since $00 and $01 is
reserved. $00 is used to describe a beat-free time period, which is
not the same as a music-free time period. $01 is used to indicate one
single beat-stroke followed by a beat-free period.frameBody, identifier, logger, size, TYPE_ELEMENT, value
Constructor and Description |
---|
TempoCode(String identifier,
AbstractTagFrameBody frameBody) |
TempoCode(String identifier,
AbstractTagFrameBody frameBody,
Object value) |
TempoCode(TempoCode copy) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object that) |
int |
getSize()
This defines the size in bytes of the datatype being
held when read/written to file.
|
void |
readByteArray(byte[] arr,
int offset)
This is the starting point for reading bytes from the file into the ID3 datatype
starting at offset.
|
String |
toString() |
byte[] |
writeByteArray()
Starting point write ID3 Datatype back to array of bytes.
|
createStructure, getBody, getIdentifier, getValue, readByteArray, setBody, setValue
public TempoCode(TempoCode copy)
public TempoCode(String identifier, AbstractTagFrameBody frameBody)
public TempoCode(String identifier, AbstractTagFrameBody frameBody, Object value)
public int getSize()
AbstractDataType
getSize
in class AbstractDataType
public boolean equals(Object that)
equals
in class AbstractDataType
public void readByteArray(byte[] arr, int offset) throws InvalidDataTypeException
AbstractDataType
readByteArray
in class AbstractDataType
InvalidDataTypeException
public byte[] writeByteArray()
AbstractDataType
writeByteArray
in class AbstractDataType
Copyright © 2005–2020 jthink.net. All rights reserved.