Issues with applying compression to multiple bands simultaneously in HISE
-
Hello HISE Community!
I'm encountering an issue while developing an audio plugin, specifically related to applying compression to multiple bands simultaneously. I'm trying to implement a dynamic EQ compressor (similar to TDR Nova), and I want to be able to apply compression to multiple active bands at the same time, with customized settings for each band. However, I'm running into an error when trying to apply the compression settings to each selected band.
Here’s what I’ve tried:
I've created a global array to store buttons for each band (BandToggle).
I’ve used a loop to create buttons that allow the user to toggle bands on or off.
The compressor settings are customized for each band, but when I switch between bands, the compression doesn't apply to all bands simultaneously.
Below is a relevant code snippet for what I’m trying to achieve:HiseSnippet 4729.3oc6b0DibbbctGtro3NTTVzVPIA4GzYffwtlKomd9eoBAm8mYkVIt+vcVRYAsFi6clZ1sy1S2i5eVxgzDPHLG74H.qX6.DZe0.B1WBPxg.BXk.eI.FPH4XLc.R.BBPfuD.eiodUUc2UUcOy16RJH5DMGH2t94Uu589du58pp5dSWmtHOOGWkbSu8ngHkbunZ6Q196uz9Fl1JqtrRtWUsmosw.ytZ6ZX2Sqefkk1gkTVbzPCOOTOkb4l5Mf1la5SqP98qu1hFVF1cQwEonbKGytnqaNvzOtzMa91lVVqXzCss4.tVWo4pccrWxwxI.yWSoVTYnQ2CL1CstAzrSopj6Ls5Y563112vG4oj6zK5zaT68ctsMs82xzybWKD7ftRaLgnEuhiUOfigRUVZeSqdaFN+8TTxotYrzXJpz3UTWyrmYT4wRkWlTgVbO3kG4NkH6Mk.6oyydE4XuTXobbrzoorzETa200bnebM.+bN0Us8Qt8MvhcdVg1VkS8UeM0kbvsv1+xCLN.shK9gndLSshEmSC+Oy954y+0S7SawVuwpqu55ug1Fqns8a1RaoMVaysZ0t8Faocy0Wcasu93+kOOVU54qcngq1xu65KncUMB95x6g7a0uOpq+LEfxKfG53VtogKVU66Z99stQmuQZ8QrEPug94grv0h5sHfTupVwWWC3d7CFZlCFZY10z+Sd.ok.VtMx22zdOObKeuuIooK35ZLRaHVJ4FnYn446zE+uHbmbMsPZ8MQcw+IxTaWj8cMAYk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ANbOKoDL52lDA9zpqAOqom7FSN.GkYmtcEIUhNV5j1wxmzNV4j1wpmzNV6j1w5mzN13n6HjDvBA9NCndHUTVayVzyeLG29bn7+Buf.pnC
I want to apply compression to multiple bands simultaneously, each with its own specific settings.
Thank you in advance for your help!
-
@filipalex96 So you need to look at doing the multiband part in scriptnode, theres even a set of templates that use linkwitz riley filters to get you to a multiband solution....