diff options
Diffstat (limited to 'src/control.h')
-rw-r--r-- | src/control.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/control.h b/src/control.h index 45e87ed..8fbcdfd 100644 --- a/src/control.h +++ b/src/control.h @@ -24,7 +24,7 @@ typedef struct cc_t { float step; float def; float value; /* active value (start for interpolation) */ - float mod; /* stores the modified value before it is set as target */ + float mod; /* stores the amount a value needs to change to reach new target */ float target; /* target value (end for interpolation) */ } cc_t; @@ -53,6 +53,12 @@ typedef struct cc_t { int cc_step(cc_t *cc, int steps); /** + Set the cc to the target value, + do so using mod. respects min/max etc + */ +void cc_set(cc_t *cc, float value); + +/** Reset the cc to defaults */ void cc_reset(cc_t *cc); |