| 1285 | } |
| 1286 | |
| 1287 | void OdinAudioProcessor::treeValueChangedNonParamMod(ValueTree &tree, const Identifier &id) { |
| 1288 | float p_new_value = (float)tree[id]; |
| 1289 | #ifdef DEBUG_VARIABLES |
| 1290 | DBG("nonparam_mod: " + id.toString().toStdString() + ": " + std::to_string(p_new_value)); |
| 1291 | #endif |
| 1292 | if (id == m_source_row_1_identifier) { |
| 1293 | m_mod_matrix.setModSource(0, p_new_value); |
| 1294 | } else if (id == m_dest_1_row_1_identifier) { |
| 1295 | m_mod_matrix.setModDestination1(0, p_new_value); |
| 1296 | } else if (id == m_source_row_2_identifier) { |
| 1297 | m_mod_matrix.setModSource(1, p_new_value); |
| 1298 | } else if (id == m_dest_1_row_2_identifier) { |
| 1299 | m_mod_matrix.setModDestination1(1, p_new_value); |
| 1300 | } else if (id == m_source_row_3_identifier) { |
| 1301 | m_mod_matrix.setModSource(2, p_new_value); |
| 1302 | } else if (id == m_dest_1_row_3_identifier) { |
| 1303 | m_mod_matrix.setModDestination1(2, p_new_value); |
| 1304 | } else if (id == m_source_row_4_identifier) { |
| 1305 | m_mod_matrix.setModSource(3, p_new_value); |
| 1306 | } else if (id == m_dest_1_row_4_identifier) { |
| 1307 | m_mod_matrix.setModDestination1(3, p_new_value); |
| 1308 | } else if (id == m_source_row_5_identifier) { |
| 1309 | m_mod_matrix.setModSource(4, p_new_value); |
| 1310 | } else if (id == m_dest_1_row_5_identifier) { |
| 1311 | m_mod_matrix.setModDestination1(4, p_new_value); |
| 1312 | } else if (id == m_source_row_6_identifier) { |
| 1313 | m_mod_matrix.setModSource(5, p_new_value); |
| 1314 | } else if (id == m_dest_1_row_6_identifier) { |
| 1315 | m_mod_matrix.setModDestination1(5, p_new_value); |
| 1316 | } else if (id == m_source_row_7_identifier) { |
| 1317 | m_mod_matrix.setModSource(6, p_new_value); |
| 1318 | } else if (id == m_dest_1_row_7_identifier) { |
| 1319 | m_mod_matrix.setModDestination1(6, p_new_value); |
| 1320 | } else if (id == m_source_row_8_identifier) { |
| 1321 | m_mod_matrix.setModSource(7, p_new_value); |
| 1322 | } else if (id == m_dest_1_row_8_identifier) { |
| 1323 | m_mod_matrix.setModDestination1(7, p_new_value); |
| 1324 | } else if (id == m_source_row_9_identifier) { |
| 1325 | m_mod_matrix.setModSource(8, p_new_value); |
| 1326 | } else if (id == m_dest_1_row_9_identifier) { |
| 1327 | m_mod_matrix.setModDestination1(8, p_new_value); |
| 1328 | } else if (id == m_dest_2_row_1_identifier) { |
| 1329 | m_mod_matrix.setModDestination2(0, p_new_value); |
| 1330 | } else if (id == m_dest_2_row_2_identifier) { |
| 1331 | m_mod_matrix.setModDestination2(1, p_new_value); |
| 1332 | } else if (id == m_dest_2_row_3_identifier) { |
| 1333 | m_mod_matrix.setModDestination2(2, p_new_value); |
| 1334 | } else if (id == m_dest_2_row_4_identifier) { |
| 1335 | m_mod_matrix.setModDestination2(3, p_new_value); |
| 1336 | } else if (id == m_dest_2_row_5_identifier) { |
| 1337 | m_mod_matrix.setModDestination2(4, p_new_value); |
| 1338 | } else if (id == m_dest_2_row_6_identifier) { |
| 1339 | m_mod_matrix.setModDestination2(5, p_new_value); |
| 1340 | } else if (id == m_dest_2_row_7_identifier) { |
| 1341 | m_mod_matrix.setModDestination2(6, p_new_value); |
| 1342 | } else if (id == m_dest_2_row_8_identifier) { |
| 1343 | m_mod_matrix.setModDestination2(7, p_new_value); |
| 1344 | } else if (id == m_dest_2_row_9_identifier) { |
nothing calls this directly
no test coverage detected