MIDI2LR 6.3.0.1
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
190 {
191 /* channel is one byte, messagetype is one byte, controller (data) is two bytes */
192 constinit static std::hash<uint32_t> hasher;
193 const uint32_t key = (static_cast<uint32_t>(k.channel & 0xFFu))
194 | (static_cast<uint32_t>(static_cast<uint8_t>(k.msg_id_type)) << 8)
195 | (static_cast<uint32_t>(k.control_number & 0xFFFFu) << 16);
196 return hasher(key);
197 }
MessageType msg_id_type
Definition MidiUtilities.h:145
int channel
Definition MidiUtilities.h:143
int control_number
Definition MidiUtilities.h:144

References rsj::MidiMessageId::channel, and rsj::MidiMessageId::control_number.


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