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 Segments
alignWith(Beats beats)
Create a newSegments
object that contains beat/measure-aligned segments.Object
clone()
int
count()
Number of segments.boolean
equals(Object o)
int
hashCode()
Iterator<Segment>
iterator()
int
size()
Size of list.String
toJSONString()
String
toString()
void
trim(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:Segments
Number of segments.
-
alignWith
public Segments alignWith(Beats beats)
Description copied from interface:Segments
Create a newSegments
object that contains beat/measure-aligned segments.- Specified by:
alignWith
in 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:
toJSONString
in interfaceorg.json.simple.JSONAware
-
clone
public Object clone() throws CloneNotSupportedException
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
-