Kurtosis.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 
9 namespace Analysis
10 {
12 {
13 
14  halp_meta(name, "Complex Spectral Difference")
15  halp_meta(c_name, "CSD")
16  halp_meta(category, "Analysis/Spectrum")
17  halp_meta(author, "ossia score, Gist library")
18  halp_meta(manual_url, "https://ossia.io/score-docs/processes/analysis.html#spectral-parameters")
19  halp_meta(description, "Get the kurtosis of a signal")
20  halp_meta(uuid, "6e9ed0f9-c541-4c74-b3b7-5d5da77466a0");
21 
22 
23  struct
24  {
25  audio_in audio;
26  gain_slider gain;
27  gate_slider gate;
28  } inputs;
29  struct
30  {
31  value_out result;
32  } outputs;
33 
34  void operator()(int frames)
35  {
36  process<&Gist<double>::complexSpectralDifference>(
37  inputs.audio, inputs.gain, inputs.gate, outputs.result, frames);
38  }
39 };
40 }
Definition: GistState.hpp:26
Definition: Kurtosis.hpp:12
Definition: Helpers.hpp:27
Definition: Helpers.hpp:34
Definition: Helpers.hpp:43
Definition: Helpers.hpp:19