MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / SetVariableValues

Method SetVariableValues

plugins/midi/macro-condition-midi.cpp:95–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void MacroConditionMidi::SetVariableValues(const MidiMessage &m)
96{
97 SetVariableValue(std::to_string(m.Note()) + " " +
98 std::to_string(m.Value()));
99 SetTempVarValue("type", m.MidiTypeToString(m.Type()));
100 SetTempVarValue("channel", std::to_string(m.Channel()));
101 try {
102 SetTempVarValue("note",
103 GetAllNotes().at(m.Note()).toStdString());
104 } catch (...) {
105 }
106 SetTempVarValue("value1", std::to_string(m.Note()));
107 SetTempVarValue("value2", std::to_string(m.Value()));
108}
109
110MacroConditionMidiEdit::MacroConditionMidiEdit(
111 QWidget *parent, std::shared_ptr<MacroConditionMidi> entryData)

Callers

nothing calls this directly

Calls 8

to_stringFunction · 0.85
SetTempVarValueFunction · 0.85
GetAllNotesFunction · 0.85
NoteMethod · 0.80
MidiTypeToStringMethod · 0.80
TypeMethod · 0.80
ChannelMethod · 0.80
ValueMethod · 0.45

Tested by

no test coverage detected