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

Method getIrIndex

Source/PluginProcessor.cpp:318–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318int NeuralPiAudioProcessor::getIrIndex(float ir_param)
319{
320 int a = static_cast<int>(round(ir_param * (num_irs - 1.0)));
321 if (a > num_irs - 1) {
322 a = num_irs - 1;
323 }
324 else if (a < 0) {
325 a = 0;
326 }
327 return a;
328}
329
330void NeuralPiAudioProcessor::loadConfig(File configFile)
331{

Callers 1

sliderValueChangedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected