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

Method Exit

Source/Push2Control.cpp:139–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139void Push2Control::Exit()
140{
141 for (int i = 0; i < 128; ++i)
142 {
143 SetLed(kMidiMessage_Note, i, 0);
144 SetLed(kMidiMessage_Control, i, 0);
145 }
146
147 if (mPixels != nullptr)
148 {
149 memset(mPixels, 0, sizeof(unsigned char) * GetNumDisplayPixels());
150 ThePushBridge.Flip(mPixels);
151 }
152
153 mDevice.DisconnectInput();
154 mDevice.DisconnectOutput();
155}
156
157void Push2Control::CreateUIControls()
158{

Callers

nothing calls this directly

Calls 3

DisconnectInputMethod · 0.80
DisconnectOutputMethod · 0.80
FlipMethod · 0.45

Tested by

no test coverage detected