From aae89e186c77c98a52d128673b0ed086794f9825 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 11 Nov 2012 19:38:32 +0100 Subject: [PATCH] MidiEvent: added controllerNumber() and controllerValue() --- include/midi.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/include/midi.h b/include/midi.h index c19eeb919..61a9e8ebf 100644 --- a/include/midi.h +++ b/include/midi.h @@ -1,7 +1,7 @@ /* * midi.h - constants, structs etc. concerning MIDI * - * Copyright (c) 2005-2010 Tobias Doerffel + * Copyright (c) 2005-2012 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -169,6 +169,16 @@ struct midiEvent return m_data.m_param[0]; } + inline uint8_t controllerNumber() const + { + return m_data.m_param[0]; + } + + inline uint8_t controllerValue() const + { + return m_data.m_param[1]; + } + inline Sint16 velocity() const { return m_data.m_param[1];