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.

12 lines
257B

  1. #if!defined SIMPLEHELPERS_HPP
  2. #define SIMPLEHELPERS_HPP
  3. #include <rack.hpp>
  4. #include <type_traits>
  5. static inline float getInputValue(rack::Input const& input, float const inactiveValue = 0.f)
  6. {
  7. return input.active ? input.value : inactiveValue;
  8. }
  9. #endif