Package com.tagtraum.audiokern.beats
Class IrregularBeats
- java.lang.Object
-
- com.tagtraum.audiokern.beats.IrregularBeats
-
-
Constructor Summary
Constructors Constructor Description IrregularBeats(long... beatLocationsInMicroSeconds)
IrregularBeats(Beat[] beats)
IrregularBeats(org.json.simple.JSONObject jsonObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Beats
changeTime(TimeSignature timeSignature)
Provide a view that reflects the given time signature and adjust beat numbers accordingly.Object
clone()
boolean
equals(Object o)
int
getBeatsPerMeasure()
Beats per measure.int
hashCode()
Iterator<Beat>
iterator()
Beats.ListIterator<Beat>
listIterator()
Beats.String
toJSONString()
String
toString()
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
IrregularBeats
public IrregularBeats(long... beatLocationsInMicroSeconds)
-
IrregularBeats
public IrregularBeats(Beat[] beats)
-
IrregularBeats
public IrregularBeats(org.json.simple.JSONObject jsonObject)
-
-
Method Detail
-
getBeatsPerMeasure
public int getBeatsPerMeasure()
Description copied from interface:Beats
Beats per measure.- Specified by:
getBeatsPerMeasure
in interfaceBeats
- Returns:
- beats per measure or
1
if unknown
-
listIterator
public ListIterator<Beat> listIterator()
Description copied from interface:Beats
Beats.- Specified by:
listIterator
in interfaceBeats
- Returns:
- iterator over beats
-
changeTime
public Beats changeTime(TimeSignature timeSignature)
Description copied from interface:Beats
Provide a view that reflects the given time signature and adjust beat numbers accordingly. If no beat number information is available at all, the provided view may be identical to the original view.- Specified by:
changeTime
in interfaceBeats
- Parameters:
timeSignature
- time signature- Returns:
- beat number adjusted view on the same beats
-
toJSONString
public String toJSONString()
- Specified by:
toJSONString
in interfaceorg.json.simple.JSONAware
-
clone
public Object clone() throws CloneNotSupportedException
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
-