summaryrefslogtreecommitdiff
path: root/src/event.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>2021-08-09 19:24:06 +0200
commit3329f636502bb4000c7a0da208bea42545564052 (patch)
treefc3cfd2f72d30d6a767b01cbfe064e0ca423b354 /src/event.h
parent380213d0a092a874182f1cf9c8d0cf828a624511 (diff)
Add positional information to drumkit xml and sample class.
Diffstat (limited to 'src/event.h')
-rw-r--r--src/event.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/event.h b/src/event.h
index 737fb18..5780cc9 100644
--- a/src/event.h
+++ b/src/event.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
};