summaryrefslogtreecommitdiff
path: root/src/event.h
diff options
context:
space:
mode:
authorVolker Fischer <corrados@users.noreply.github.com>2021-04-30 17:07:36 +0200
committerVolker Fischer <corrados@users.noreply.github.com>2021-04-30 17:07:36 +0200
commit5be222dee61dc8b28a429d93c39a2500a28de759 (patch)
tree5ba775dbb76aadbb117c7673ebed3f28fb9bda9c /src/event.h
parentd605a7a9166dce74aa17d33da92e11ca9b467e55 (diff)
parenta15a662bcf6de70cb379bfc582c349f7ff87ee27 (diff)
Merge branch 'distance' into edrumulus
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
};