summaryrefslogtreecommitdiff
path: root/src/engineevent.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-01-26 20:31:31 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2023-02-19 17:16:47 +0100
commitfa0f4a2af7ef1c900e279ead72122f9d652b6959 (patch)
tree60a225f22dea35501f4ab5b7dd1ae724e359e384 /src/engineevent.h
parent6c9b69b0471fe72c8793d671f267ead3634ef3ac (diff)
Add positional information to drumkit xml and sample class.
Diffstat (limited to 'src/engineevent.h')
-rw-r--r--src/engineevent.h9
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
};