2 #include <Engine/Node/CommonWidgets.hpp>
4 #include <ossia/detail/pod_vector.hpp>
5 #include <ossia/detail/small_vector.hpp>
6 #include <ossia/detail/variant.hpp>
8 #include <halp/audio.hpp>
9 #include <halp/callback.hpp>
10 #include <halp/controls.hpp>
11 #include <halp/meta.hpp>
12 #include <halp/midi.hpp>
13 #include <halp/polyfill.hpp>
14 #include <halp/static_string.hpp>
15 #include <libremidi/message.hpp>
19 static constexpr
auto multichannel_max_count = 8;
20 using multichannel_output_vector = ossia::small_pod_vector<float, multichannel_max_count>;
21 using multichannel_output_type = ossia::variant<float, multichannel_output_vector>;
22 using midi_out = halp::midi_out_bus<
"out", libremidi::message>;
23 using value_output_callback = halp::basic_callback<void(ossia::value)>;
24 using value_out = halp::callback<
"out", ossia::value>;
25 template <halp::static_
string Str>
26 using midi_spinbox = halp::spinbox_i32<Str, halp::irange{0, 127, 64}>;
27 template <halp::static_
string Str>
28 using midi_channel = halp::spinbox_i32<Str, halp::irange{1, 16, 1}>;
29 template <halp::static_
string Str>
30 using midi_slider = halp::hslider_i32<Str, halp::irange{0, 127, 64}>;
31 template <halp::static_
string Str>
32 using default_slider = halp::hslider_f32<Str>;
33 template <halp::static_
string Str,
int neg_oct,
int pos_oct>
35 = halp::hslider_i32<Str, halp::irange{12 * neg_oct, 12 * pos_oct, 0}>;
37 template <halp::static_
string lit,
typename T,
bool event = true>
40 halp_meta(is_event, event)
41 static clang_buggy_consteval
auto name() {
return std::string_view{lit.value}; }
46 template <halp::static_
string lit, auto* array,
int init_
idx>
49 static clang_buggy_consteval
auto name() {
return std::string_view{lit.value}; }
56 decltype(Control::Widgets::notes) values = Control::Widgets::notes;
59 float value = 1. / 4.;
62 template <halp::static_
string lit>
65 template <halp::static_
string lit>
67 template <halp::static_
string lit>