2 #include <Engine/Node/SimpleApi.hpp>
4 #include <Analysis/GistState.hpp>
13 static const constexpr
auto prettyName =
"RMS";
14 static const constexpr
auto objectKey =
"RMS";
15 static const constexpr
auto category =
"Analysis/Envelope";
16 static const constexpr
auto author =
"ossia score, Gist library";
17 static const constexpr
auto kind = Process::ProcessCategory::Analyzer;
18 static const constexpr
auto description =
"Get the RMS of a signal";
19 static const constexpr
auto tags = std::array<const char*, 0>{};
20 static const uuid_constexpr
auto uuid
21 = make_uuid(
"5d4057ff-d8d0-4d66-9e0f-55675e3323be");
23 static const constexpr audio_in audio_ins[]{
"in"};
24 static const constexpr
auto controls = tuplet::make_tuple(
28 static const constexpr value_out value_outs[]{
"out"};
32 using control_policy = ossia::safe_nodes::last_tick;
35 run(
const ossia::audio_port& in,
float gain,
float gate, ossia::value_port& out,
36 ossia::token_request tk, ossia::exec_state_facade e,
State& st)
38 st.process<&Gist<double>::rootMeanSquare>(in, gain, gate, out, tk, e);
45 static const constexpr
auto prettyName =
"Peak";
46 static const constexpr
auto objectKey =
"Peak";
47 static const constexpr
auto category =
"Analysis/Envelope";
48 static const constexpr
auto author =
"ossia score, Gist library";
49 static const constexpr
auto kind = Process::ProcessCategory::Analyzer;
50 static const constexpr
auto description =
"Get the peak energy of a signal";
51 static const constexpr
auto tags = std::array<const char*, 0>{};
52 static const uuid_constexpr
auto uuid
53 = make_uuid(
"a14c8ced-25e6-4c89-ac45-63750cbb87fd");
55 static const constexpr audio_in audio_ins[]{
"in"};
56 static const constexpr
auto controls = tuplet::make_tuple(
60 static const constexpr value_out value_outs[]{
"out"};
64 using control_policy = ossia::safe_nodes::last_tick;
67 run(
const ossia::audio_port& in,
float gain,
float gate, ossia::value_port& out,
68 ossia::token_request tk, ossia::exec_state_facade e,
State& st)
70 st.process<&Gist<double>::peakEnergy>(in, gain, gate, out, tk, e);
Utilities for OSSIA data structures.
Definition: DeviceInterface.hpp:33
Definition: GistState.hpp:24
Definition: score-plugin-analysis/Analysis/Envelope.hpp:42
Definition: score-plugin-analysis/Analysis/Envelope.hpp:10
Definition: score-lib-process/Control/Widgets.hpp:77