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.

26 lines
335B

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