You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
408B

  1. #pragma once
  2. #include <jansson.h>
  3. #include <common.hpp>
  4. #include <math.hpp>
  5. namespace rack {
  6. namespace engine {
  7. struct Param {
  8. /** Unstable API. Use setValue() and getValue() instead. */
  9. float value = 0.f;
  10. float getValue() {
  11. return value;
  12. }
  13. void setValue(float value) {
  14. this->value = value;
  15. }
  16. json_t* toJson();
  17. void fromJson(json_t* rootJ);
  18. };
  19. } // namespace engine
  20. } // namespace rack