Section class
JSON representation of track section in the analysis
- Annotations
-
- @JsonSerializable()
Constructors
- Section()
-
Section.fromJson(Map<
String, dynamic> json) -
factory
Properties
- confidence ↔ double?
-
The confidence, from 0.0 to 1.0, of the reliability of the section’s “designation”.
getter/setter pairinherited
- duration ↔ double?
-
The duration (in seconds) of the section.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- key ↔ int?
-
The estimated overall key of the section. The values in this field
ranging from
0 to
11mapping to pitches using standard Pitch Class notation (E.g.
0 = C,
1 = C♯/D♭,
2 = D, and so on). If no key was detected, the value is
-1`.getter/setter pairinherited - keyConfidence ↔ double?
-
The confidence, from 0.0 to 1.0, of the reliability of the key.
Songs with many key changes may correspond to low values in this field.
getter/setter pairinherited
- loudness ↔ double?
-
The overall loudness of the section in decibels (dB).
Loudness values are useful for comparing relative loudness of sections within tracks.
getter/setter pairinherited
- mode ↔ int?
-
Indicates the modality (major or minor) of a track, the type of scale
from which its melodic content is derived. This field will contain
a
0
for “minor”, a1
for “major”, or a-1
for no result. Note that the major key (e.g. C major) could more likely be confused with the minor key at3
semitones lower (e.g. A minor) as both keys carry the same pitches.getter/setter pairinherited - modeConfidence ↔ double?
-
The confidence, from
0.0
to1.0
, of the reliability of the mode.getter/setter pairinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start ↔ double?
-
The starting point (in seconds) of the section.
getter/setter pair
- tempo ↔ double?
-
The overall estimated tempo of the section in beats per minute (BPM).
In musical terminology, tempo is the speed or pace of a given piece and derives
directly from the average beat duration.
getter/setter pairinherited
- tempoConfidence ↔ double?
-
The confidence, from 0.0 to 1.0, of the reliability of the tempo.
Some tracks contain tempo changes or sounds which don’t contain tempo (like pure speech)
which would correspond to a low value in this field.
getter/setter pairinherited
- timeSignature ↔ int?
-
An estimated overall time signature of a track.
The time signature (meter) is a notational convention to specify
how many beats are in each bar (or measure).
The time signature ranges from
3
to7
indicating time signatures of “3/4”, to “7/4”.getter/setter pairinherited - timeSignatureConfidence ↔ double?
-
The confidence, from
0.0
to1.0
, of the reliability of thetimeSignature
. Sections with time signature changes may correspond to low values in this field.getter/setter pairinherited
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