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.
|
- #include "app.hpp"
- #include "engine.hpp"
-
-
- namespace rack {
-
- json_t *ParamWidget::toJson() {
- json_t *paramJ = json_real(value);
- return paramJ;
- }
-
- void ParamWidget::fromJson(json_t *rootJ) {
- setValue(json_number_value(rootJ));
- }
-
- void ParamWidget::onMouseDownOpaque(int button) {
- if (button == 1) {
- setValue(defaultValue);
- }
- }
-
- void ParamWidget::onChange() {
- if (!module)
- return;
-
- module->params[paramId] = value;
- }
-
-
- } // namespace rack
|