diff options
author | Sander Vocke <sandervocke@gmail.com> | 2024-07-23 12:22:30 +0200 |
---|---|---|
committer | Sander Vocke <sandervocke@gmail.com> | 2024-07-23 12:22:30 +0200 |
commit | 23f625be77c925569dfea8700103aff89d513b50 (patch) | |
tree | e9e794b31b3314bafc856c8da9c6eb0733e10eb7 /src/instrumentstate.h | |
parent | ddd12cae8a21eba52a4d8fae9dced18878e0e055 (diff) |
Add openness CC control for hi-hats.distance_openness
Diffstat (limited to 'src/instrumentstate.h')
-rw-r--r-- | src/instrumentstate.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/instrumentstate.h b/src/instrumentstate.h new file mode 100644 index 0000000..8be4581 --- /dev/null +++ b/src/instrumentstate.h @@ -0,0 +1,13 @@ +#pragma once + +//! Tracks the MIDI state of an instrument during play. +struct InstrumentState { + + // Physical position applied to the next hit. + // 0.0-1.0, where 0.0 is the middle and 1.0 is closest to the rim. + float position = 0.0; + + // Openness (typically for a hi-hat). + // 0.0-1.0, where 0.0 is closed and 1.0 is fully open. + float openness = 0.0; +};
\ No newline at end of file |