Crest.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  halp_meta(name, "Spectral Crest")
14  halp_meta(c_name, "Crest")
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 crest of a signal")
19  halp_meta(uuid, "41755e45-dc1f-4bd8-b2c9-6a455119339a");
20 
21 
22  struct
23  {
24  audio_in audio;
25  gain_slider gain;
26  gate_slider gate;
27  } inputs;
28  struct
29  {
30  value_out result;
31  } outputs;
32 
33  void operator()(int frames)
34  {
35  process<&Gist<double>::spectralCrest>(
36  inputs.audio, inputs.gain, inputs.gate, outputs.result, frames);
37  }
38 };
39 }
Definition: Crest.hpp:12
Definition: GistState.hpp:26
Definition: Helpers.hpp:27
Definition: Helpers.hpp:34
Definition: Helpers.hpp:43
Definition: Helpers.hpp:19