mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +02:00
Add logging for the IMidiMapping messages
This commit is contained in:
@@ -293,6 +293,18 @@ bool Vst3Logger::log_request(bool is_host_vst,
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Vst3Logger::log_request(
|
||||||
|
bool is_host_vst,
|
||||||
|
const YaMidiMapping::GetMidiControllerAssignment& request) {
|
||||||
|
return log_request_base(is_host_vst, [&](auto& message) {
|
||||||
|
message << request.instance_id
|
||||||
|
<< ": IMidiMapping::getMidiControllerAssignment(busIndex = "
|
||||||
|
<< request.bus_index << ", channel = " << request.channel
|
||||||
|
<< ", midiControllerNumber = " << request.midi_controller_number
|
||||||
|
<< ", &id)";
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
bool Vst3Logger::log_request(
|
bool Vst3Logger::log_request(
|
||||||
bool is_host_vst,
|
bool is_host_vst,
|
||||||
const YaNoteExpressionController::GetNoteExpressionCount& request) {
|
const YaNoteExpressionController::GetNoteExpressionCount& request) {
|
||||||
@@ -1055,6 +1067,17 @@ void Vst3Logger::log_response(
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Vst3Logger::log_response(
|
||||||
|
bool is_host_vst,
|
||||||
|
const YaMidiMapping::GetMidiControllerAssignmentResponse& response) {
|
||||||
|
log_response_base(is_host_vst, [&](auto& message) {
|
||||||
|
message << response.result.string();
|
||||||
|
if (response.result == Steinberg::kResultOk) {
|
||||||
|
message << ", " << response.id;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
void Vst3Logger::log_response(
|
void Vst3Logger::log_response(
|
||||||
bool is_host_vst,
|
bool is_host_vst,
|
||||||
const YaNoteExpressionController::GetNoteExpressionInfoResponse& response) {
|
const YaNoteExpressionController::GetNoteExpressionInfoResponse& response) {
|
||||||
|
|||||||
@@ -93,6 +93,8 @@ class Vst3Logger {
|
|||||||
bool log_request(bool is_host_vst, const YaEditController2::SetKnobMode&);
|
bool log_request(bool is_host_vst, const YaEditController2::SetKnobMode&);
|
||||||
bool log_request(bool is_host_vst, const YaEditController2::OpenHelp&);
|
bool log_request(bool is_host_vst, const YaEditController2::OpenHelp&);
|
||||||
bool log_request(bool is_host_vst, const YaEditController2::OpenAboutBox&);
|
bool log_request(bool is_host_vst, const YaEditController2::OpenAboutBox&);
|
||||||
|
bool log_request(bool is_host_vst,
|
||||||
|
const YaMidiMapping::GetMidiControllerAssignment&);
|
||||||
bool log_request(bool is_host_vst,
|
bool log_request(bool is_host_vst,
|
||||||
const YaNoteExpressionController::GetNoteExpressionCount&);
|
const YaNoteExpressionController::GetNoteExpressionCount&);
|
||||||
bool log_request(bool is_host_vst,
|
bool log_request(bool is_host_vst,
|
||||||
@@ -191,6 +193,9 @@ class Vst3Logger {
|
|||||||
const YaEditController::GetParamValueByStringResponse&);
|
const YaEditController::GetParamValueByStringResponse&);
|
||||||
void log_response(bool is_host_vst,
|
void log_response(bool is_host_vst,
|
||||||
const YaEditController::CreateViewResponse&);
|
const YaEditController::CreateViewResponse&);
|
||||||
|
void log_response(
|
||||||
|
bool is_host_vst,
|
||||||
|
const YaMidiMapping::GetMidiControllerAssignmentResponse&);
|
||||||
void log_response(
|
void log_response(
|
||||||
bool is_host_vst,
|
bool is_host_vst,
|
||||||
const YaNoteExpressionController::GetNoteExpressionInfoResponse&);
|
const YaNoteExpressionController::GetNoteExpressionInfoResponse&);
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
#include "plugin/connection-point.h"
|
#include "plugin/connection-point.h"
|
||||||
#include "plugin/edit-controller-2.h"
|
#include "plugin/edit-controller-2.h"
|
||||||
#include "plugin/edit-controller.h"
|
#include "plugin/edit-controller.h"
|
||||||
|
#include "plugin/midi-mapping.h"
|
||||||
#include "plugin/note-expression-controller.h"
|
#include "plugin/note-expression-controller.h"
|
||||||
#include "plugin/plugin-base.h"
|
#include "plugin/plugin-base.h"
|
||||||
#include "plugin/program-list-data.h"
|
#include "plugin/program-list-data.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user