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.
126 lines
2.5 KiB
C++
126 lines
2.5 KiB
C++
// AUTOGENERATED — do not edit. Source: schemas/modes/sound_analysis_midi.json. Run `bun run codegen/generate.ts` to regenerate.
|
|
#ifndef NISPS_GENERATED_SOUND_ANALYSIS_MIDI_SCHEMA_HPP
|
|
#define NISPS_GENERATED_SOUND_ANALYSIS_MIDI_SCHEMA_HPP
|
|
|
|
#include "schema_types.hpp"
|
|
|
|
namespace nisps::modes::generated {
|
|
|
|
inline constexpr std::string_view kSoundAnalysisMidiModeId = "sound_analysis_midi";
|
|
inline constexpr std::string_view kSoundAnalysisMidiEngineId = "thru";
|
|
|
|
inline constexpr std::array<std::string_view, 10> kSoundAnalysisMidiInputChannels = {{
|
|
"audio_pitch",
|
|
"audio_aperiodicity",
|
|
"audio_energy",
|
|
"audio_attack",
|
|
"audio_brightness",
|
|
"audio_energy_crude",
|
|
"joy_x",
|
|
"joy_y",
|
|
"joy_z",
|
|
"joy_w",
|
|
}};
|
|
|
|
inline constexpr std::array<std::size_t, 3> kSoundAnalysisMidiHiddenLayers = {{
|
|
10u,
|
|
10u,
|
|
14u,
|
|
}};
|
|
|
|
inline constexpr MLConfig kSoundAnalysisMidiMLConfig = {
|
|
10u,
|
|
8u,
|
|
0.6f,
|
|
1.0f,
|
|
1000u,
|
|
};
|
|
|
|
inline constexpr std::size_t kSoundAnalysisMidiParamCount = 8u;
|
|
inline constexpr std::array<Param, kSoundAnalysisMidiParamCount> kSoundAnalysisMidiParams = {{
|
|
Param{
|
|
"midi_cc0",
|
|
"MIDI CC 0",
|
|
0.0f,
|
|
1.0f,
|
|
0.5f,
|
|
Curve::Linear,
|
|
"midi",
|
|
},
|
|
Param{
|
|
"midi_cc1",
|
|
"MIDI CC 1",
|
|
0.0f,
|
|
1.0f,
|
|
0.5f,
|
|
Curve::Linear,
|
|
"midi",
|
|
},
|
|
Param{
|
|
"midi_cc2",
|
|
"MIDI CC 2",
|
|
0.0f,
|
|
1.0f,
|
|
0.5f,
|
|
Curve::Linear,
|
|
"midi",
|
|
},
|
|
Param{
|
|
"midi_cc3",
|
|
"MIDI CC 3",
|
|
0.0f,
|
|
1.0f,
|
|
0.5f,
|
|
Curve::Linear,
|
|
"midi",
|
|
},
|
|
Param{
|
|
"midi_cc4",
|
|
"MIDI CC 4",
|
|
0.0f,
|
|
1.0f,
|
|
0.5f,
|
|
Curve::Linear,
|
|
"midi",
|
|
},
|
|
Param{
|
|
"midi_cc5",
|
|
"MIDI CC 5",
|
|
0.0f,
|
|
1.0f,
|
|
0.5f,
|
|
Curve::Linear,
|
|
"midi",
|
|
},
|
|
Param{
|
|
"midi_cc6",
|
|
"MIDI CC 6",
|
|
0.0f,
|
|
1.0f,
|
|
0.5f,
|
|
Curve::Linear,
|
|
"midi",
|
|
},
|
|
Param{
|
|
"midi_cc7",
|
|
"MIDI CC 7",
|
|
0.0f,
|
|
1.0f,
|
|
0.5f,
|
|
Curve::Linear,
|
|
"midi",
|
|
},
|
|
}};
|
|
|
|
inline constexpr std::size_t kSoundAnalysisMidiVoiceSpaceCount = 0u;
|
|
inline constexpr std::array<std::string_view, 0> kSoundAnalysisMidiVoiceSpaces = {};
|
|
|
|
inline constexpr UIConfig kSoundAnalysisMidiUI = {
|
|
PrimaryInput::AudioIn,
|
|
false,
|
|
false,
|
|
};
|
|
|
|
} // namespace nisps::modes::generated
|
|
|
|
#endif // NISPS_GENERATED_SOUND_ANALYSIS_MIDI_SCHEMA_HPP
|