Skip to content

Commit 6653ea7

Browse files
committed
Clean up.
1 parent a91e90b commit 6653ea7

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Source/aeolus/division.cpp

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -412,22 +412,14 @@ void Division::handleControlMessage(const juce::MidiMessage& msg)
412412
if (_hasSwell && cc == aeolus::CC_VOLUME) {
413413
*_paramGain = value;
414414
}
415-
416415
}
417416

418417
// Hange manual channel specific controls
419418
if (!isForMIDIChannel(msg.getChannel()))
420419
return;
421420

422-
switch (cc) {
423-
case aeolus::CC_MODULATION:
424-
if (hasTremulant())
425-
setTremulantEnabled(value > 0.5f);
426-
break;
427-
default:
428-
break;
429-
}
430-
421+
if (cc == aeolus::CC_MODULATION && hasTremulant())
422+
setTremulantEnabled(value > 0.5f);
431423
}
432424

433425
bool Division::process(AudioBuffer<float>& targetBuffer, AudioBuffer<float>& voiceBuffer)

0 commit comments

Comments
 (0)