Package com.tagtraum.audiokern.segments
Class SegmentList
- java.lang.Object
-
- com.tagtraum.audiokern.segments.SegmentList
-
-
Constructor Summary
Constructors Constructor Description SegmentList(List<Segment> segments)SegmentList(org.json.simple.JSONObject jsonObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SegmentsalignWith(Beats beats)Create a newSegmentsobject that contains beat/measure-aligned segments.Objectclone()intcount()Number of segments.booleanequals(Object o)inthashCode()Iterator<Segment>iterator()intsize()Size of list.StringtoJSONString()StringtoString()voidtrim(int size)Trims this list to the desired size.-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
count
public int count()
Description copied from interface:SegmentsNumber of segments.
-
alignWith
public Segments alignWith(Beats beats)
Description copied from interface:SegmentsCreate a newSegmentsobject that contains beat/measure-aligned segments.- Specified by:
alignWithin interfaceSegments- Parameters:
beats- beats- Returns:
- beat aligned segments
- See Also:
Beats.changeTime(com.tagtraum.audiokern.timesignature.TimeSignature)
-
size
public int size()
Size of list.- Returns:
- size
-
trim
public void trim(int size)
Trims this list to the desired size.- Parameters:
size- size to trim to
-
toJSONString
public String toJSONString()
- Specified by:
toJSONStringin interfaceorg.json.simple.JSONAware
-
clone
public Object clone() throws CloneNotSupportedException
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
-