Package com.tagtraum.audiokern.beats
Interface Beats
-
- All Known Implementing Classes:
IrregularBeats
,SteadyBeats
public interface Beats extends Iterable<Beat>
Beats.- Author:
- Hendrik Schreiber
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Beats
changeTime(TimeSignature timeSignature)
Provide a view that reflects the given time signature and adjust beat numbers accordingly.int
getBeatsPerMeasure()
Beats per measure.Iterator<Beat>
iterator()
Beats.ListIterator<Beat>
listIterator()
Beats.-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
listIterator
ListIterator<Beat> listIterator()
Beats.- Returns:
- iterator over beats
-
changeTime
Beats changeTime(TimeSignature timeSignature)
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.- Parameters:
timeSignature
- time signature- Returns:
- beat number adjusted view on the same beats
-
getBeatsPerMeasure
int getBeatsPerMeasure()
Beats per measure.- Returns:
- beats per measure or
1
if unknown
-
-