|
1234567891011121314151617 |
- #pragma once
- #include "common.hpp"
- #include "engine/Port.hpp"
-
-
- namespace rack {
-
-
- struct Input : Port {
- /** Returns the value if a wire is plugged in, otherwise returns the given default value */
- float normalize(float normalValue, int index = 0) {
- return active ? getValue(index) : normalValue;
- }
- };
-
-
- } // namespace rack
|