Segment class

JSON representation of track segment in the analysis

Annotations
  • @JsonSerializable()

Constructors

Segment()
Segment.fromJson(Map<String, dynamic> json)
factory

Properties

confidence double?
The confidence, from 0.0 to 1.0, of the reliability of the segmentation. Segments of the song which are difficult to logically segment (e.g: noise) may correspond to low values in this field.
getter/setter pair
duration double?
The duration (in seconds) of the segment.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
loudnessEnd double?
The offset loudness of the segment in decibels (dB). This value should be equivalent to the loudnessStart of the following segment.
getter/setter pair
loudnessMax double?
The peak loudness of the segment in decibels (dB). Combined with loudness_start and loudness_max_time, these components can be used to describe the “attack” of the segment.
getter/setter pair
loudnessMaxTime double?
The segment-relative offset of the segment peak loudness in seconds. Combined with loudnessStart and loudnessMax, these components can be used to describe the “attack” of the segment.
getter/setter pair
loudnessStart double?
The onset loudness of the segment in decibels (dB). Combined with loudnessMax and loudnessMaxTime, these components can be used to describe the “attack” of the segment.
getter/setter pair
pitches List<double>?
A “chroma” vector representing the pitch content of the segment, corresponding to the 12 pitch classes C, C#, D to B, with values ranging from 0 to 1 that describe the relative dominance of every pitch in the chromatic scale.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start double?
The starting point (in seconds) of the segment.
getter/setter pair
timbre List<double>?
Timbre is the quality of a musical note or sound that distinguishes different types of musical instruments, or voices. Timbre vectors are best used in comparison with each other.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited