memlnaut-nisps/nisps/modes/generated/channel_strip_schema.hpp
w1n5t0n 55e7bc9654 fix: wire generated C++ schemas to nisps::Curve from core/math.hpp
Stream 5 shipped a temporary local Curve enum (PascalCase) while stream 1
was in flight. Stream 1 has now landed nisps/core/math.hpp with the
authoritative lowercase Curve enum per architecture spec. Generated C++
headers now include core/math.hpp and re-export the enum into the
generated namespace via 'using Curve = ::nisps::Curve;'.

- codegen/generate.ts: emit lowercase enum values + include math.hpp
- regenerated all 8 mode schema headers
- updated golden snapshot to match

Verified all 8 headers compile clean with -std=c++20 -Wall -Wextra.
2026-04-29 15:43:42 +03:00

271 lines
4.7 KiB
C++

// AUTOGENERATED — do not edit. Source: schemas/modes/channel_strip.json. Run `bun run codegen/generate.ts` to regenerate.
#ifndef NISPS_GENERATED_CHANNEL_STRIP_SCHEMA_HPP
#define NISPS_GENERATED_CHANNEL_STRIP_SCHEMA_HPP
#include "schema_types.hpp"
namespace nisps::modes::generated {
inline constexpr std::string_view kChannelStripModeId = "channel_strip";
inline constexpr std::string_view kChannelStripEngineId = "channel_strip";
inline constexpr std::array<std::string_view, 4> kChannelStripInputChannels = {{
"joy_x",
"joy_y",
"joy_z",
"joy_w",
}};
inline constexpr std::array<std::size_t, 3> kChannelStripHiddenLayers = {{
10u,
10u,
14u,
}};
inline constexpr MLConfig kChannelStripMLConfig = {
4u,
24u,
0.6f,
1.0f,
1000u,
};
inline constexpr std::size_t kChannelStripParamCount = 24u;
inline constexpr std::array<Param, kChannelStripParamCount> kChannelStripParams = {{
Param{
"pre_gain",
"Pre Gain",
0.0f,
1.0f,
0.5f,
Curve::square,
"gain",
},
Param{
"peak0_freq",
"Peak0 Freq",
0.0f,
1.0f,
0.3f,
Curve::square,
"eq",
},
Param{
"p02",
"Param 02",
0.0f,
1.0f,
0.5f,
Curve::linear,
"general",
},
Param{
"p03",
"Param 03",
0.0f,
1.0f,
0.5f,
Curve::linear,
"general",
},
Param{
"peak1_freq",
"Peak1 Freq",
0.0f,
1.0f,
0.3f,
Curve::square,
"eq",
},
Param{
"peak_q",
"Peak Q",
0.0f,
1.0f,
0.3f,
Curve::linear,
"eq",
},
Param{
"peak_gain",
"Peak Gain",
0.0f,
1.0f,
0.5f,
Curve::linear,
"eq",
},
Param{
"in_lpf_cutoff",
"Input LPF",
0.0f,
1.0f,
0.7f,
Curve::square,
"filters",
},
Param{
"in_hpf_cutoff",
"Input HPF",
0.0f,
1.0f,
0.2f,
Curve::square,
"filters",
},
Param{
"p09",
"Param 09",
0.0f,
1.0f,
0.5f,
Curve::linear,
"general",
},
Param{
"comp_threshold",
"Comp Threshold",
0.0f,
1.0f,
0.0f,
Curve::linear,
"comp",
},
Param{
"comp_ratio",
"Comp Ratio",
0.0f,
1.0f,
0.0f,
Curve::linear,
"comp",
},
Param{
"comp_attack",
"Comp Attack",
0.0f,
1.0f,
0.1f,
Curve::linear,
"comp",
},
Param{
"comp_release",
"Comp Release",
0.0f,
1.0f,
0.3f,
Curve::square,
"comp",
},
Param{
"lowshelf_freq",
"Lowshelf Freq",
0.0f,
1.0f,
0.3f,
Curve::square,
"eq",
},
Param{
"lowshelf_q",
"Lowshelf Q",
0.0f,
1.0f,
0.3f,
Curve::linear,
"eq",
},
Param{
"lowshelf_gain",
"Lowshelf Gain",
0.0f,
1.0f,
0.5f,
Curve::linear,
"eq",
},
Param{
"highshelf_freq",
"Highshelf Freq",
0.0f,
1.0f,
0.3f,
Curve::square,
"eq",
},
Param{
"highshelf_q",
"Highshelf Q",
0.0f,
1.0f,
0.3f,
Curve::linear,
"eq",
},
Param{
"highshelf_gain",
"Highshelf Gain",
0.0f,
1.0f,
0.5f,
Curve::linear,
"eq",
},
Param{
"p20",
"Param 20",
0.0f,
1.0f,
0.5f,
Curve::linear,
"general",
},
Param{
"p21",
"Param 21",
0.0f,
1.0f,
0.5f,
Curve::linear,
"general",
},
Param{
"p22",
"Param 22",
0.0f,
1.0f,
0.5f,
Curve::linear,
"general",
},
Param{
"post_gain",
"Post Gain",
0.0f,
1.0f,
0.5f,
Curve::square,
"gain",
},
}};
inline constexpr std::size_t kChannelStripVoiceSpaceCount = 6u;
inline constexpr std::array<std::string_view, kChannelStripVoiceSpaceCount> kChannelStripVoiceSpaces = {{
"WannabeNeve66",
"SSL 4K G-ist",
"SSL 9K-inda",
"MaleVox",
"FemaleVox",
"Neve 80",
}};
inline constexpr UIConfig kChannelStripUI = {
PrimaryInput::Joystick,
true,
false,
};
} // namespace nisps::modes::generated
#endif // NISPS_GENERATED_CHANNEL_STRIP_SCHEMA_HPP