| 93 | } |
| 94 | |
| 95 | void 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 | |
| 110 | MacroConditionMidiEdit::MacroConditionMidiEdit( |
| 111 | QWidget *parent, std::shared_ptr<MacroConditionMidi> entryData) |
nothing calls this directly
no test coverage detected