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

Method irSelectChanged

Source/PluginEditor.cpp:663–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

661}
662
663void NeuralPiAudioProcessorEditor::irSelectChanged()
664{
665 const int selectedFileIndex = irSelect.getSelectedItemIndex();
666 File selectedFile = processor.userAppDataDirectory_irs.getFullPathName() + "/" + irSelect.getText() + ".wav";
667 if (selectedFileIndex >= 0 && selectedFileIndex < processor.irFiles.size()) {
668 //processor.loadIR(processor.irFiles[selectedFileIndex]);
669 processor.loadIR(selectedFile);
670 processor.current_ir_index = selectedFileIndex;
671 }
672 auto newValue = static_cast<float>(processor.current_ir_index / (processor.num_irs - 1.0));
673 irKnob.setValue(newValue);
674}
675
676void NeuralPiAudioProcessorEditor::updateToggleState(juce::Button* button, juce::String name)
677{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
loadIRMethod · 0.80

Tested by

no test coverage detected