18#include "gui/menu_item/toggle.h"
19#include "model/instrument/midi_instrument.h"
20#include "model/song/song.h"
22extern Output* getCurrentOutput();
25namespace deluge::gui::menu_item::midi {
32 this->setValue(((
MIDIInstrument*)getCurrentOutput())->outputMPEY == CC_EXTERNAL_MOD_WHEEL);
34 void writeCurrentValue()
override {
36 this->getValue() ? CC_EXTERNAL_MOD_WHEEL : CC_EXTERNAL_MPE_Y;
37 getCurrentInstrument()->editedByUser =
true;
41 const auto type = getCurrentOutputType();
42 return (type == OutputType::MIDI_OUT);
Definition instrument.h:45
Definition midi_instrument.h:37
Definition mod_controllable_audio.h:47