Loading...
Searching...
No Matches
Flatness.hpp
1#pragma once
2#include <Analysis/GistState.hpp>
3#include <Analysis/Helpers.hpp>
4#include <halp/audio.hpp>
5#include <halp/callback.hpp>
6#include <halp/controls.hpp>
7#include <halp/meta.hpp>
8
9namespace Analysis
10{
12{
13 halp_meta(name, "Spectral flatness")
14 halp_meta(c_name, "Flatness")
15 halp_meta(category, "Analysis/Spectrum")
16 halp_meta(author, "ossia score, Gist library")
17 halp_meta(manual_url, "https://ossia.io/score-docs/processes/analysis.html#spectral-parameters")
18 halp_meta(description, "Get the spectral flatness of a signal")
19 halp_meta(uuid, "a2806714-0233-41ed-842b-de6978aac728");
20
21 struct
22 {
23 audio_in audio;
24 gain_slider gain;
25 gate_slider gate;
26 } inputs;
27 struct
28 {
29 value_out result;
30 } outputs;
31
32 void operator()(int frames)
33 {
34 process<&Gist<double>::spectralFlatness>(
35 inputs.audio, inputs.gain, inputs.gate, outputs.result, frames);
36 }
37};
38}
Definition Flatness.hpp:12
Definition GistState.hpp:26
Definition Helpers.hpp:27
Definition Helpers.hpp:34
Definition Helpers.hpp:43
Definition Helpers.hpp:19