Merge branch 'mem_util_dev' of https://github.com/Blackaddr/BAGuitar into mem_util_dev

pull/1/head
Steve Lascos 7 years ago
commit 874903b51c
  1. 5
      src/AudioEffectAnalogDelay.cpp

@ -171,8 +171,9 @@ void AudioEffectAnalogDelay::processMidi(int channel, int control, int value)
if ((m_midiConfig[MIDI_DELAY][MIDI_CHANNEL] == channel) &&
(m_midiConfig[MIDI_DELAY][MIDI_CONTROL] == control)) {
// Delay
Serial.println(String("AudioEffectAnalogDelay::delay: ") + val);
delay((size_t)(val * m_maxDelaySamples));
m_maxDelaySamples = m_memory->getSlot()->size();
Serial.println(String("AudioEffectAnalogDelay::delay: ") + val + String(" out of ") + m_maxDelaySamples);
delay((size_t)(val * (float)m_maxDelaySamples));
return;
}

Loading…
Cancel
Save