PhysicalModels.h 1.1 KB

12345678910111213141516171819202122232425
  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 <string>
  8. #include "core/Instruments.h"
  9. namespace lynx
  10. {
  11. constexpr int sakuraParamCount = 146; // "Skr1" state floats (0…113 are parameters)
  12. constexpr int drumpadParamCount = 38;
  13. std::unique_ptr<Instrument> makeSakuraInstrument();
  14. std::unique_ptr<Instrument> makeDrumpadInstrument();
  15. // BooBass reads its multisample from the user's own BooBass_Eng_x64.dll (ChannelDef::samplePath, SHA-256 checked);
  16. // modelParams = the 3 raw knobs (0…65535: Bass, Mid, Treble)
  17. std::unique_ptr<Instrument> makeBooBassInstrument();
  18. // true if `path` is the decoded BooBass_Eng_x64.dll build (its multisample can be read)
  19. bool booBassDllUsable (const std::string& path);
  20. } // namespace lynx