Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
built_in_transient_classifier.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace pulp::audio {
6
7// Background/offline transient classifier built from simple energy and spectral
8// heuristics. It is a permissive fallback metadata source, not a production MIR
9// replacement for package-backed drum/source classifiers.
11public:
13
14 [[nodiscard]] const AnalyzerDescriptor& descriptor() const noexcept override;
15 [[nodiscard]] std::vector<TransientClassification> classify(
16 BufferView<const float> source,
17 std::span<const std::uint64_t> candidate_frames) override;
18
19private:
20 AnalyzerDescriptor descriptor_;
21};
22
23} // namespace pulp::audio
Non-owning view over multi-channel audio sample data.
Definition buffer.hpp:30
const AnalyzerDescriptor & descriptor() const noexcept override
std::vector< TransientClassification > classify(BufferView< const float > source, std::span< const std::uint64_t > candidate_frames) override
Definition analyzer_provider.hpp:243
Definition analyzer_provider.hpp:12
STL namespace.
Definition analyzer_provider.hpp:93
Definition analyzer_provider.hpp:192