commit
014518486c
1 changed files with 14 additions and 3 deletions
|
|
@ -590,6 +590,17 @@ bool sfz::Region::parseOpcode(const Opcode& rawOpcode, bool cleanOpcode)
|
||||||
getOrCreateConnection(source, target).sourceDepth = opcode.read(Default::filterCutoffMod);
|
getOrCreateConnection(source, target).sourceDepth = opcode.read(Default::filterCutoffMod);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case hash("cutoff&_polyaft"):
|
||||||
|
{
|
||||||
|
const auto filterIndex = opcode.parameters.front() - 1;
|
||||||
|
if (!extendIfNecessary(filters, filterIndex + 1, Default::numFilters))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
const ModKey source = ModKey::createNXYZ(ModId::PolyAftertouch, id);
|
||||||
|
const ModKey target = ModKey::createNXYZ(ModId::FilCutoff, id, filterIndex);
|
||||||
|
getOrCreateConnection(source, target).sourceDepth = opcode.read(Default::filterCutoffMod);
|
||||||
|
}
|
||||||
|
break;
|
||||||
case hash("fil&_keytrack"): // also fil_keytrack
|
case hash("fil&_keytrack"): // also fil_keytrack
|
||||||
{
|
{
|
||||||
const auto filterIndex = opcode.parameters.front() - 1;
|
const auto filterIndex = opcode.parameters.front() - 1;
|
||||||
|
|
@ -931,7 +942,7 @@ bool sfz::Region::parseLFOOpcode(const Opcode& opcode, LFODescription& lfo)
|
||||||
getOrCreateConnection(ModKey::createNXYZ(ModId::ChannelAftertouch), sourceDepthKey).sourceDepth
|
getOrCreateConnection(ModKey::createNXYZ(ModId::ChannelAftertouch), sourceDepthKey).sourceDepth
|
||||||
= opcode.read(depthModSpec);
|
= opcode.read(depthModSpec);
|
||||||
break;
|
break;
|
||||||
case_any_lfo("depthpolyaft"): // NOLINT bugprone-branch-clone
|
case_any_lfo("depthpolyaft"):
|
||||||
getOrCreateConnection(sourceKey, targetKey).sourceDepthMod = sourceDepthKey;
|
getOrCreateConnection(sourceKey, targetKey).sourceDepthMod = sourceDepthKey;
|
||||||
getOrCreateConnection(ModKey::createNXYZ(ModId::PolyAftertouch, id), sourceDepthKey).sourceDepth
|
getOrCreateConnection(ModKey::createNXYZ(ModId::PolyAftertouch, id), sourceDepthKey).sourceDepth
|
||||||
= opcode.read(depthModSpec);
|
= opcode.read(depthModSpec);
|
||||||
|
|
@ -945,11 +956,11 @@ bool sfz::Region::parseLFOOpcode(const Opcode& opcode, LFODescription& lfo)
|
||||||
case_any_lfo_any_ccN("freq"): // also freqcc&
|
case_any_lfo_any_ccN("freq"): // also freqcc&
|
||||||
processGenericCc(opcode, Default::lfoFreqMod, lfo.freqKey);
|
processGenericCc(opcode, Default::lfoFreqMod, lfo.freqKey);
|
||||||
break;
|
break;
|
||||||
case_any_lfo("freqchanaft"): // NOLINT bugprone-branch-clone
|
case_any_lfo("freqchanaft"):
|
||||||
getOrCreateConnection(ModKey::createNXYZ(ModId::ChannelAftertouch), lfo.freqKey).sourceDepth
|
getOrCreateConnection(ModKey::createNXYZ(ModId::ChannelAftertouch), lfo.freqKey).sourceDepth
|
||||||
= opcode.read(Default::lfoFreqMod);
|
= opcode.read(Default::lfoFreqMod);
|
||||||
break;
|
break;
|
||||||
case_any_lfo("freqpolyaft"): // NOLINT bugprone-branch-clone
|
case_any_lfo("freqpolyaft"):
|
||||||
getOrCreateConnection(ModKey::createNXYZ(ModId::PolyAftertouch, id), lfo.freqKey).sourceDepth
|
getOrCreateConnection(ModKey::createNXYZ(ModId::PolyAftertouch, id), lfo.freqKey).sourceDepth
|
||||||
= opcode.read(Default::lfoFreqMod);
|
= opcode.read(Default::lfoFreqMod);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue