diff --git a/Examples/FoleysSynth/Source/PluginProcessor.cpp b/Examples/FoleysSynth/Source/PluginProcessor.cpp index 70e1c355..04d671ff 100644 --- a/Examples/FoleysSynth/Source/PluginProcessor.cpp +++ b/Examples/FoleysSynth/Source/PluginProcessor.cpp @@ -101,6 +101,8 @@ void FoleysSynthAudioProcessor::processBlock (juce::AudioBuffer& buffer, { juce::ScopedNoDenormals noDenormals; + buffer.clear(); + // MAGIC GUI: send midi messages to the keyboard state and MidiLearn magicState.processMidiBuffer (midiMessages, buffer.getNumSamples(), true);