PhysicalModels.h 770 B

12345678910111213141516171819
  1. #pragma once
  2. // Physical-model instruments rebuilt from FL Studio's Sakura (strings) and Drumpad (drum) engines, following the
  3. // behaviour decoded in docs/analise/REA_rodada28.md (clean-room; checked against the installation's DLL renders).
  4. // Both run at their engine's internal rate (Sakura 48 kHz, Drumpad 38 kHz) and are resampled linearly to the
  5. // host rate, as the originals do. Parameters are FL's raw state values (ChannelDef::modelParams).
  6. #include <memory>
  7. #include "core/Instruments.h"
  8. namespace lynx
  9. {
  10. constexpr int sakuraParamCount = 146; // "Skr1" state floats (0…113 are parameters)
  11. constexpr int drumpadParamCount = 38;
  12. std::unique_ptr<Instrument> makeSakuraInstrument();
  13. std::unique_ptr<Instrument> makeDrumpadInstrument();
  14. } // namespace lynx