MCPcopy Create free account
hub / github.com/VCVRack/Rack / commitLearn

Method commitLearn

src/core/MIDIMap.cpp:201–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199 }
200
201 void commitLearn() {
202 if (learningId < 0)
203 return;
204 if (!learnedCc)
205 return;
206 if (!learnedParam)
207 return;
208 // Reset learned state
209 learnedCc = false;
210 learnedParam = false;
211 // Find next incomplete map
212 while (++learningId < MAX_CHANNELS) {
213 if (ccs[learningId] < 0 || paramHandles[learningId].moduleId < 0)
214 return;
215 }
216 learningId = -1;
217 }
218
219 void enableLearn(int id) {
220 if (learningId != id) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected