MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / OnDeviceChanged

Method OnDeviceChanged

Source/MidiController.cpp:1939–1954  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1937}
1938
1939void MidiController::OnDeviceChanged()
1940{
1941 if (!mDeviceIn.empty())
1942 {
1943 std::string filename = mDeviceIn + ".json";
1944 ofStringReplace(filename, "/", "");
1945 LoadControllerLayout(filename);
1946 }
1947 else
1948 {
1949 LoadControllerLayout(kDefaultLayout);
1950 }
1951
1952 mModulation.GetModWheel(-1)->SetValue(mModWheelOffset);
1953 mModulation.GetPressure(-1)->SetValue(mPressureOffset);
1954}
1955
1956void MidiController::CheckboxUpdated(Checkbox* checkbox, double time)
1957{

Callers

nothing calls this directly

Calls 5

ofStringReplaceFunction · 0.85
emptyMethod · 0.80
SetValueMethod · 0.45
GetModWheelMethod · 0.45
GetPressureMethod · 0.45

Tested by

no test coverage detected