MIDI2LR 6.1.0.0
MIDI2LR is an application that interfaces MIDI controllers with Lightroom 6+/CC Classic. It processes MIDI input into develop parameter updates and photo actions, and sends MIDI output when parameters are changed for motorized feedback (on controllers that have motorized faders). A listing of available LightRoom commands is in the Wiki. Assistance on the code and design is welcome.
Loading...
Searching...
No Matches
std::hash< rsj::MidiMessageId > Struct Reference

#include <MidiUtilities.h>

Public Member Functions

size_t operator() (rsj::MidiMessageId k) const noexcept
 

Member Function Documentation

◆ operator()()

size_t std::hash< rsj::MidiMessageId >::operator() ( rsj::MidiMessageId  k) const
inlinenoexcept
193 {
194 /* channel is one byte, messagetype is one byte, controller (data) is two bytes */
195 static std::hash<int_fast32_t> hasher;
196 return hasher(static_cast<int_fast32_t>(k.channel)
197 | static_cast<int_fast32_t>(k.msg_id_type) << 8
198 | static_cast<int_fast32_t>(k.control_number) << 16);
199 }
MessageType msg_id_type
Definition MidiUtilities.h:148
int channel
Definition MidiUtilities.h:146
int control_number
Definition MidiUtilities.h:147

The documentation for this struct was generated from the following file: