| 1937 | } |
| 1938 | |
| 1939 | void 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 | |
| 1956 | void MidiController::CheckboxUpdated(Checkbox* checkbox, double time) |
| 1957 | { |
nothing calls this directly
no test coverage detected