MCPcopy Create free account
hub / github.com/GuitarML/NeuralPi / modelSelectChanged

Method modelSelectChanged

Source/PluginEditor.cpp:649–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

647}
648
649void NeuralPiAudioProcessorEditor::modelSelectChanged()
650{
651 const int selectedFileIndex = modelSelect.getSelectedItemIndex();
652 File selectedFile = processor.userAppDataDirectory_tones.getFullPathName() + "/" + modelSelect.getText() + ".json";
653 if (selectedFileIndex >= 0 && selectedFileIndex < processor.jsonFiles.size()) {
654 //processor.loadConfig(processor.jsonFiles[selectedFileIndex]);
655 processor.loadConfig(selectedFile);
656 processor.current_model_index = selectedFileIndex;
657 }
658 auto newValue = static_cast<float>(processor.current_model_index / (processor.num_models - 1.0));
659 modelKnob.setValue(newValue);
660 setGainKnobColor();
661}
662
663void NeuralPiAudioProcessorEditor::irSelectChanged()
664{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
loadConfigMethod · 0.80

Tested by

no test coverage detected