Skip to content

Commit

Permalink
Merge pull request #1066 from paulfd/veltrack-cc-ui
Browse files Browse the repository at this point in the history
Propagate veltracks to the used CCs
  • Loading branch information
paulfd authored Jan 13, 2022
2 parents a3cfbd4 + b16a8f2 commit 71345b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sfizz/Synth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2213,6 +2213,11 @@ void Synth::Impl::collectUsedCCsFromRegion(BitArray<config::numCCs>& usedCCs, co
collectUsedCCsFromCCMap(usedCCs, region.amplitudeEG.ccStart);
collectUsedCCsFromCCMap(usedCCs, region.amplitudeEG.ccSustain);

collectUsedCCsFromCCMap(usedCCs, region.ampVeltrackCC);
collectUsedCCsFromCCMap(usedCCs, region.pitchVeltrackCC);
for (const auto& filter: region.filters)
collectUsedCCsFromCCMap(usedCCs, filter.veltrackCC);

if (region.pitchEG) {
collectUsedCCsFromCCMap(usedCCs, region.pitchEG->ccAttack);
collectUsedCCsFromCCMap(usedCCs, region.pitchEG->ccRelease);
Expand Down

0 comments on commit 71345b4

Please sign in to comment.