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.

Param.hpp 356B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include <common.hpp>
  3. #include <math.hpp>
  4. #include <jansson.h>
  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. };
  17. } // namespace engine
  18. } // namespace rack