HarmonicCapture class

Single voice snapshot captured from the microphone at a point in time.

Contains the fundamental pitch, volume, harmonic amplitudes (1st-8th), spectral centroid, and detected pitch bounds for this capture window.

Constructors

HarmonicCapture({required String id, required DateTime timestamp, required double fundamentalHz, required double volumeDb, required List<double> harmonics, required double spectralCentroid, required double pitchMin, required double pitchMax, required int durationMs})
const
HarmonicCapture.fromJson(Map<String, dynamic> json)
factory

Properties

durationMs int
Duration of this capture window in milliseconds.
final
fundamentalHz double
Detected fundamental pitch in Hz.
final
harmonics List<double>
Relative amplitudes of harmonics 1-8 vs the fundamental. Each value is 0.0-1.0 where 1.0 = same amplitude as fundamental.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier (UUID).
final
pitchMax double
Highest pitch detected in this capture window (Hz).
final
pitchMin double
Lowest pitch detected in this capture window (Hz).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spectralCentroid double
Spectral centroid in Hz — indicates voice brightness.
final
timestamp DateTime
When this capture was taken.
final
volumeDb double
Normalized volume level (0.0 = silence, 1.0 = max).
final

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