memlnaut-nisps/nisps/modes/generated/channel_strip_schema.hpp
w1n5t0n 05f04a90e0 Add generated schema headers (C++) and modules (TS)
Output of \`bun run codegen/generate.ts\` for the 8 mode schemas.
These files are checked in so consumers don't need bun on every
build, but they remain regenerable and byte-identical.

C++ (nisps/modes/generated/):
  schema_types.hpp + 8 <mode_id>_schema.hpp files. All compile
  cleanly with g++ -std=c++20 -Wall -Wextra -fsyntax-only -I nisps.

TS (playground/src/modes/generated/):
  types.ts + index.ts + 8 <mode_id>_schema.ts files. Type-check
  cleanly with tsc --strict.
2026-04-29 15:29:15 +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