pub fn layer_values(
report: &Value,
) -> Result<Vec<(String, String, f64)>, SpreadError>Expand description
The numbers of a layer report that a spread covers, with their units.
They are each estimate and each median of every group but the ones
that hold no estimate: schema, source, synth, transcription and
conventions.
The path drops the value or median key, such as stem.rms_dbfs or
stem.band_share[1].share. Left out are confidences, IQRs, band
edges, the inputs (bpm, bpm_given, bpm_refined and
sample_rate_hz), the format constant ticks_per_beat, the mapper’s
suggested_edits and unrepresentable, and every null. The unit
comes from the field name’s suffix (_hz, _s, _ms, _db, _dbfs,
_deg, _st, _ct), or from NAMED_UNITS for a name without one.
§Errors
Returns SpreadError::UnknownUnit for a field that has neither.