Skip to content

Commit

Permalink
- fix send container FX not processing modulators
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph-hart committed Jan 3, 2024
1 parent b1b2f82 commit 7f8d822
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions hi_core/hi_modules/effects/fx/RouteFX.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,13 @@ struct SendContainer : public ModulatorSynth
{
finaliseModChains();
getMatrix().setAllowResizing(true);

}

auto constrainer = new NoMidiInputConstrainer();

effectChain->getFactoryType()->setConstrainer(constrainer, true);
effectChain->setForceMonophonicProcessingOfPolyphonicEffects(true);
}

void numSourceChannelsChanged() override
{
prepareToPlay(getSampleRate(), getLargestBlockSize());
Expand Down Expand Up @@ -185,11 +189,14 @@ struct SendContainer : public ModulatorSynth
{
numSamplesToProcess = outputAudio.getNumSamples();
AudioSampleBuffer truncatedInternalBuffer(internalBuffer.getArrayOfWritePointers(), internalBuffer.getNumChannels(), numSamplesToProcess);

effectChain->renderNextBlock(truncatedInternalBuffer, 0, numSamplesToProcess);
effectChain->renderMasterEffects(truncatedInternalBuffer);
}
else
{
numSamplesToProcess = internalBuffer.getNumSamples();
effectChain->renderNextBlock(internalBuffer, 0, numSamplesToProcess);
effectChain->renderMasterEffects(internalBuffer);
}

Expand Down

0 comments on commit 7f8d822

Please sign in to comment.