2 #include <Fx/NoiseFilter.hpp>
3 #include <Fx/Types.hpp>
5 #include <ossia/dataflow/value_port.hpp>
6 #include <ossia/detail/logger.hpp>
8 #include <halp/controls.hpp>
9 #include <halp/meta.hpp>
11 namespace Nodes::Smooth
19 halp_meta(name,
"Smooth (old)")
20 halp_meta(c_name,
"ValueFilter")
21 halp_meta(category,
"Control/Mappings")
22 halp_meta(author,
"ossia score")
23 halp_meta(manual_url,
"https://ossia.io/score-docs/processes/smooth.html#smooth")
24 halp_meta(description,
"Filter noisy value stream")
25 halp_meta(uuid,
"809c014d-7d02-45dc-8849-de7a7db5fe67")
26 halp_flag(deprecated);
31 struct : halp::val_port<
"in", ossia::value>
34 halp_flag(active_port);
36 halp::enum_t<dno::type,
"Type"> type;
37 halp::knob_f32<
"Amount", halp::range{0., 1., 0.1}> amount;
38 halp::log_hslider_f32<
"Freq (1e/LP)", halp::range{0.001, 300., 120.}> freq;
39 halp::log_hslider_f32<
"Cutoff (1e/LP)", halp::range{0.001, 10., 1.}> cutoff;
40 halp::hslider_f32<
"Beta (1e only)", halp::range{0.001, 10., 1.}> beta;
49 auto& v = this->inputs.port.value;
51 auto filtered = this->filter(
52 v, inputs.type, inputs.amount, inputs.freq, inputs.cutoff, inputs.beta);
53 outputs.port(std::move(filtered));
Definition: NoiseFilter.hpp:128
Definition: Smooth.hpp:18