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

Method SetMidiController

Source/NoteStepSequencer.cpp:164–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void NoteStepSequencer::SetMidiController(std::string name)
165{
166 if (mController)
167 mController->RemoveListener(this);
168
169 mController = TheSynth->FindMidiController(name);
170 if (mController)
171 mController->AddListener(this, 0);
172
173 UpdateLights();
174}
175
176void NoteStepSequencer::Init()
177{

Callers

nothing calls this directly

Calls 3

FindMidiControllerMethod · 0.80
RemoveListenerMethod · 0.45
AddListenerMethod · 0.45

Tested by

no test coverage detected