diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-01-26 20:31:31 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2024-07-22 11:21:48 +0200 |
commit | a095aef4f9d2fe0584eeadca85039dbc838355ed (patch) | |
tree | 976dff233adbb073e2383593825a024d7b956a7b /src/engineevent.h | |
parent | 019d478818950f7880d2c0f80d8fc8f963e9736b (diff) |
Add positional information to drumkit xml and sample class.
Diffstat (limited to 'src/engineevent.h')
-rw-r--r-- | src/engineevent.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/engineevent.h b/src/engineevent.h index 9c60a4a..bf2b712 100644 --- a/src/engineevent.h +++ b/src/engineevent.h @@ -39,8 +39,9 @@ enum class EventType //! POD datatype for input event transport. struct event_t { - EventType type; //!< The type of the event. - std::size_t instrument; //!< The instrument number. - std::size_t offset; //!< The offset position in the input buffer - float velocity; //!< The velocity if the type is a note on [0; 1] + EventType type; //!< The type of the event. + std::size_t instrument; //!< The instrument number. + std::size_t offset; //!< The offset position in the input buffer + float velocity; //!< The velocity if the type is a note on [0; 1] + float position; //!< The position of the note. 0 := center, 1 := rim }; |