MCPcopy Create free account
hub / github.com/TheWaveWarden/odin2 / setModDestination

Method setModDestination

Source/gui/ModMatrix.cpp:296–1029  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296void ModMatrixRow::setModDestination(int p_destination,
297 float **p_destination_pointers,
298 bool &p_dest_poly,
299 int &p_destination_store) {
300
301 switch (p_destination) {
302 case 2:
303 for (int voice = 0; voice < VOICES; ++voice) {
304 p_destination_pointers[voice] = &(m_destinations->voice[voice].osc[0].pitch_exponential);
305 }
306 p_dest_poly = true;
307 break;
308
309 case 102:
310 for (int voice = 0; voice < VOICES; ++voice) {
311 p_destination_pointers[voice] = &(m_destinations->voice[voice].osc[1].pitch_exponential);
312 }
313 p_dest_poly = true;
314 break;
315
316 case 202:
317 for (int voice = 0; voice < VOICES; ++voice) {
318 p_destination_pointers[voice] = &(m_destinations->voice[voice].osc[2].pitch_exponential);
319 }
320 p_dest_poly = true;
321 break;
322
323 case 3:
324 for (int voice = 0; voice < VOICES; ++voice) {
325 p_destination_pointers[voice] = &(m_destinations->voice[voice].osc[0].pitch_linear);
326 }
327 p_dest_poly = true;
328 break;
329
330 case 103:
331 for (int voice = 0; voice < VOICES; ++voice) {
332 p_destination_pointers[voice] = &(m_destinations->voice[voice].osc[1].pitch_linear);
333 }
334 p_dest_poly = true;
335 break;
336
337 case 203:
338 for (int voice = 0; voice < VOICES; ++voice) {
339 p_destination_pointers[voice] = &(m_destinations->voice[voice].osc[2].pitch_linear);
340 }
341 p_dest_poly = true;
342 break;
343
344 case 4:
345 for (int voice = 0; voice < VOICES; ++voice) {
346 p_destination_pointers[voice] = &(m_destinations->voice[voice].osc[0].vol);
347 }
348 p_dest_poly = true;
349 break;
350
351 case 104:
352 for (int voice = 0; voice < VOICES; ++voice) {
353 p_destination_pointers[voice] = &(m_destinations->voice[voice].osc[1].vol);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected