diff options
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 |