Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
audio_doctor_artifacts.hpp
Go to the documentation of this file.
1#pragma once
2
18
19#include "audio_spectrum.hpp"
20
21#include <filesystem>
22#include <string>
23#include <string_view>
24
25namespace pulp::test::audio {
26
29inline constexpr std::int64_t kDoctorCurveSchemaVersion = 1;
30
33std::string response_curve_to_json(const ResponseCurve& curve,
34 std::string_view scenario);
35
37std::string thd_to_json(const ThdResult& thd, std::string_view scenario);
38
56std::string phase_curve_to_json(const PhaseCurve& curve,
57 std::string_view scenario);
58
62std::filesystem::path write_response_artifact(const ResponseCurve& curve,
63 std::string_view scenario);
64
67std::filesystem::path write_thd_artifact(const ThdResult& thd,
68 std::string_view scenario);
69
73std::filesystem::path write_phase_artifact(const PhaseCurve& curve,
74 std::string_view scenario);
75
76} // namespace pulp::test::audio
Buffer-level offline spectrum analyzers: magnitude/frequency response and harmonic distortion (THD / ...
Definition audio_artifacts.hpp:20
std::filesystem::path write_phase_artifact(const PhaseCurve &curve, std::string_view scenario)
Write phase_curve_to_json to <temp>/pulp-audio-doctor/<sanitized-scenario>.groupdelay....
std::filesystem::path write_response_artifact(const ResponseCurve &curve, std::string_view scenario)
Write response_curve_to_json to <temp>/pulp-audio-doctor/<sanitized-scenario>.response....
constexpr std::int64_t kDoctorCurveSchemaVersion
Current Doctor-curve schema version.
Definition audio_doctor_artifacts.hpp:29
std::filesystem::path write_thd_artifact(const ThdResult &thd, std::string_view scenario)
Write thd_to_json to <temp>/pulp-audio-doctor/<sanitized-scenario>.thd.json and return path.
std::string response_curve_to_json(const ResponseCurve &curve, std::string_view scenario)
Serialize a magnitude/response curve to a JSON string.
std::string phase_curve_to_json(const PhaseCurve &curve, std::string_view scenario)
Serialize a phase/group-delay curve to a JSON string.
std::string thd_to_json(const ThdResult &thd, std::string_view scenario)
Serialize a THD result to a JSON string (including the harmonic breakdown).
Phase / group-delay curve of a transfer function.
Definition audio_spectrum.hpp:347
Magnitude/frequency-response curve.
Definition audio_spectrum.hpp:214
Total harmonic distortion result.
Definition audio_spectrum.hpp:537