Package com.tagtraum.audiokern.segments
Interface Similarities
-
- All Superinterfaces:
Iterable<Similarity>
- All Known Implementing Classes:
SimilarityList
public interface Similarities extends Iterable<Similarity>
Similarities.- Author:
- Hendrik Schreiber
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Similarities
alignWith(Beats beats)
Create a newSimilarities
object that contains beat/measure-aligned similarities.int
count()
Number of similarities.default Stream<Similarity>
stream()
Return stream for this iterable.long[]
translate(long time, TimeUnit timeUnit)
Calculates other points in time, a given time is similar to.-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
translate
long[] translate(long time, TimeUnit timeUnit)
Calculates other points in time, a given time is similar to.- Parameters:
time
- timetimeUnit
- time unit- Returns:
- array of times the given time is similar to
-
alignWith
Similarities alignWith(Beats beats)
Create a newSimilarities
object that contains beat/measure-aligned similarities.- Parameters:
beats
- beats- Returns:
- beat aligned similarities
- See Also:
Beats.changeTime(com.tagtraum.audiokern.timesignature.TimeSignature)
-
count
int count()
Number of similarities.- Returns:
- count or -1 if not known
-
stream
default Stream<Similarity> stream()
Return stream for this iterable.- Returns:
- stream
-
-