mirror of
https://codeberg.org/armin/wavetable.git
synced 2026-09-01 14:00:47 +02:00
Fixed crash with midi cc > 119
This commit is contained in:
parent
cc3a0bcde0
commit
138c2ab433
1 changed files with 2 additions and 1 deletions
|
|
@ -1002,7 +1002,8 @@ void WavetableAudioProcessor::handleMidiEvent (const juce::MidiMessage& m)
|
|||
|
||||
void WavetableAudioProcessor::handleController ([[maybe_unused]] int ch, int num, int val)
|
||||
{
|
||||
modMatrix.setMonoValue (modSrcCC[num], val / 127.0f);
|
||||
if (num >= 0 && num <= 119)
|
||||
modMatrix.setMonoValue (modSrcCC[num], val / 127.0f);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue