32#include <QtCore/QMutex>
78 std::multimap<QString, std::shared_ptr<Action>>
getMMCActionMap()
const;
80 std::multimap<int, std::shared_ptr<Action>>
getCCActionMap()
const;
83 std::vector<std::shared_ptr<Action>>
getMMCActions( QString sEventString );
87 std::vector<std::shared_ptr<Action>>
getCCActions(
int nParameter );
89 std::vector<std::shared_ptr<Action>>
getPCActions()
const;
99 std::vector<std::pair<H2Core::MidiMessage::Event,int>>
getRegisteredMidiEvents( std::shared_ptr<Action> pAction )
const;
109 QString
toQString(
const QString& sPrefix =
"",
bool bShort =
true )
const override;
The MidiMap maps MidiActions to MidiEvents.
void registerMMCEvent(QString, std::shared_ptr< Action >)
Sets up the relation between a mmc event and an action.
std::vector< std::shared_ptr< Action > > getCCActions(int nParameter)
Returns the cc action which was linked to the given event.
std::multimap< int, std::shared_ptr< Action > > m_noteActionMap
static MidiMap * __instance
Object holding the current MidiMap singleton.
void registerNoteEvent(int, std::shared_ptr< Action >)
Sets up the relation between a note event and an action.
std::multimap< int, std::shared_ptr< Action > > getCCActionMap() const
void registerPCEvent(std::shared_ptr< Action >)
Sets up the relation between a program change and an action.
std::vector< std::shared_ptr< Action > > getPCActions() const
Returns the pc action which was linked to the given event.
std::multimap< QString, std::shared_ptr< Action > > getMMCActionMap() const
static void create_instance()
If __instance equals 0, a new MidiMap singleton will be created and stored in it.
std::vector< int > findCCValuesByActionParam1(QString sActionType, QString sParam1)
std::multimap< int, std::shared_ptr< Action > > getNoteActionMap() const
static MidiMap * get_instance()
Returns a pointer to the current MidiMap singleton stored in __instance.
std::vector< std::pair< H2Core::MidiMessage::Event, int > > getRegisteredMidiEvents(std::shared_ptr< Action > pAction) const
std::vector< std::shared_ptr< Action > > getNoteActions(int nNote)
Returns all note actions which are linked to the given event.
std::vector< std::shared_ptr< Action > > getMMCActions(QString sEventString)
Returns all MMC actions which are linked to the given event.
std::vector< std::shared_ptr< Action > > m_pcActionVector
std::vector< int > findCCValuesByActionType(QString sActionType)
QString toQString(const QString &sPrefix="", bool bShort=true) const override
Formatted string version for debugging purposes.
std::multimap< QString, std::shared_ptr< Action > > m_mmcActionMap
std::multimap< int, std::shared_ptr< Action > > m_ccActionMap
void reset()
Reinitializes the object.
static void reset_instance()
Convenience function calling reset() on the current MidiMap __instance.
void registerCCEvent(int, std::shared_ptr< Action >)
Sets up the relation between a cc event and an action.