Skip to content

Commit

Permalink
Fix a bug in mapChannelToOctave mode where channel 3 was being sent t…
Browse files Browse the repository at this point in the history
…o scene B when scene A was active (#4813)
  • Loading branch information
cgibbard authored Aug 8, 2021
1 parent 1aff5b8 commit 78be91c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/common/SurgeSynthesizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ int SurgeSynthesizer::calculateChannelMask(int channel, int key)
int channelmask = channel;

if ((channel == 0) || (channel > 2) || mpeEnabled ||
storage.getPatch().scenemode.val.i == sm_chsplit)
storage.getPatch().scenemode.val.i == sm_chsplit || storage.mapChannelToOctave)
{
switch (storage.getPatch().scenemode.val.i)
{
Expand Down Expand Up @@ -322,8 +322,7 @@ int SurgeSynthesizer::calculateChannelMask(int channel, int key)
break;
}
}
else if (storage.getPatch().scenemode.val.i == sm_single &&
!storage.getPatch().dawExtraState.mapChannelToOctave)
else if (storage.getPatch().scenemode.val.i == sm_single)
{
if (storage.getPatch().scene_active.val.i == 1)
channelmask = 2;
Expand Down

0 comments on commit 78be91c

Please sign in to comment.