(Solved) Problem With Convolution Reverb When Using 2 Engines at the Same Time
-
Problem When Trying to Use 2 Convolution Reverbs at The Same Time
One for Microphone Impulses and one for Reverbs or Cabinet Impulses
each engine has it's own ComboBox to select Impulsesif i Use 2 Convolution Engines at the same Time
i Only have ComboBox Control Over the Second Engine
(i am Using 2 Combo Box to Select Impulses 1 Combo Box For Each Engine)
Here is the Full Project
Convolution x2.zipHiseSnippet 2088.3oc2Y0saabbEdVIsIlLlINtI.4hBzABEAzNQxjRIosnnvzjhLgMRVLhJ102Tmg6Njbf2cls6NqrXLLRPtpuB4t7Pza5c5AHWDfBzqyaP6KPgyY1eHmk+okr1EMlWHw4myb9Nm472bXGegEMHP3iLJb5HOJx3plcGwkCaLjv3n1GfLdGyFB9YBmPISvwmi2CWmX8nPOT8Qdjf.pMxvXyOVsaiBagh97uucchCgaQmLEBcOAyhdHykImLamZeJywoEwldJyUa2ePs1VBdCgiHDP1llUPd.OICn2kn11FlHiWooMSJ76JIRZ.xXq5B6QcGJdLOd+2iEv54PUCph5BGT7zsDN1JDqlE0XHywtSpFH.gLL6LQerYr93sLOhYyFO+D8x0hV.OgBc8gwFKCdU0gWk7COCM3sUL7dSytV9LO4jUTX60LaykT+9D3JPGVw6Esw+bK0kpjxk65RdDskOLXLEk+nJUde7GVoxM98kJVp3st0NK3CtNc.iyY7AXQe7Izyn98Bv6rrOpCrTQ3tMPhOi3Oln+.Nxpa2AT4cBsYhtDWOG5Xgp71IabaElZxA1R20QPri1bKlCM.funiP3TNE03FB2dhdhyw3Fjd.Axfr71xsGbp.qSUE.yAZ7DbXP4siWNhgwec2.05bouvoAwwoGXQVVgg1tdgNAzX9x3N.qv8C4VQ9KZanrULwuOvcmP5MJU7IkJlHWpyVIFkwa+jNmb7erYiSeXqiO7flm7zjcbqseObxAn.ZaI08T54xx2.+d3s28wjXjVnTwmFK+2LO2YGwr7EdCAI9Ru2vpOLbHWIQTarbHMC4AB7HQH1hvweBEztp0SucUTy5qnNfhqKjCwDYzFB.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TGeRPBUuarfHDp+tWze2uXtCNnUzzy6fCJHNc5PcCorWXOOxTN+R2tTOgjI9NwLwL5uH4ZIBBZ11WcMyiD1gNDY1Nqohmjrfx0WuEVp1TwgPBizKC9ER61xKbeSyNLo0v4i2MlCdgRceQi2jlWVxrY+9TK4DvtkYq+zK9NUpCkeQJThrJU0TQiaR4bKyZwMU9GxaSk8xcSk6NhacTbVqwlRQ2km5SrTMbRmUJXl56oM8IBgT0pC8lZG21onm.AGelcqRPDj8DZk6miGkQM9ITIw.UOm2AVNyysbhP53WaYrYtugWgVku0+W2p7+2EpYy7A2Koa9ERwXWlxzoI+LpC3nDgwqCUT0mD5HSmMqWxQBdT.VH1aFCMoOav.puN1mq.cGoDL10qC3DpCkDP0emxgLNk3OsuxJnKplecwxtudGyX3F2z3WNRQr4O2RQr9l7anw+qmxesedwH9OoLZ87nG3OJa9.DJ8gGZ866P.gbqLJxj9keHkOP+YPPj9Xrzl6EJ0m+yCnpegyA9hPt8oC8ojLgq63SsoP1J849DVCsy3u9Opc.jAXp7GsZcZRWrlSj+b1tvYS.n553pl.XscSgjcv0DevQDH3hh82MzsKjM0hBVOb3cMpVtargpohwiqjBgtTtczfmAeRVrpZrQxhUSWDkGSjr0UtTyjGbQVyj3b4+L0LYCy4XBjdi+xiIvKK7vk.FoOL42WSE+6JQy.5Vdz0YAyiTiwiahtoYkcqnZ7A6gVVpHw6TEglOM6sFzr+ZPyGrFz7gqAMezZPyuYMn42tTZT0odmPovMNKMLQmlQ+5DFFiq82XSzOQ7GWC6```
-
@LinuxVst said in Problem With Convolution Reverb When Using 2 Engines at the Same Time:
i Only have Control Over the Second Engine
Which control, wet/dry?
-
@d-healey
Hi David
the Problem is when you enable the second Convolution engine
named "Microphones"
you can't load or change the impulses using the Combo Box
of the First Convolution Engine named "Reverb"but if you disable the Microphones in the Script Editor selecting the Reverbs with the Combobox is Working Fine but no Microphones!
if you use a second Convolution Engine only this last engine will be accessible with it's ComboBox
i do not understand why it is not working
i made sure they they had 2 Different id's Reverbs ans Microphones it looks that they are linked together! -
-
@d-healey
Thank You So Much David
i Got It i Changed the Second Function to "getImpulse". instead of "loadImpulse"
and Removed the Second "Engine.loadAudioFilesIntoPool();"
and Everything is Working! -
@LinuxVst said in Problem With Convolution Reverb When Using 2 Engines at the Same Time:
@d-healey
i Got It i Changed the Second Function to "getImpulse". instead of "loadImpulse"Those are callback functions so you should name them clearly so anyone looking at your code (including you) can instantly see that it is a callback function and not another kind of function.
Because it's a callback it starts with
on
then you put the control name e.g.myButton
, then you putControl
because it's a control callback.inline function onMyButtonControl(component, value)
Do this for every control that you write a callback for and your code will be much more readable.
If you want to get fancy you can also have 1 function called
loadImpulse
that is used by both callbacks ;) -
This post is deleted! -
@LinuxVst said in (Solved) Problem With Convolution Reverb When Using 2 Engines at the Same Time:
is this the proper way to Do It ?
There is no "proper" way, if it works it works. But there are more efficient ways - efficiency both in terms of CPU usage and in terms of writing and managing your code.
Rule number 1 is Don't Repeat Yourself.
For example both of your callbacks contain almost identical code, why write it twice when you can write it once...
But you have to start at the beginning, if you name your components and your modules (convolution reverbs in your case) in a programmatically accessible way then you can write much less code. For example you have called your reverbs,
Reverbs
, andMicrophones
, that's nice for humans to read but it's not so great for efficient scripting. If you name themConvolution Reverb0
andConvolution Reverb1
you can now access them in a loop - same goes for your components.Whenever you have two or more things that are basically different versions of the same thing, see if you can interact with them through loops and you will save yourself a lot of time.
HiseSnippet 1950.3oc4Y0saabbEdVIMMlrVINow.4hBzEpEAT0wxjRIoMvsvqkDUJakrXDUbpgQpyncGRNv6NylcmUVrAAMnW0WgbWdM5c5Qn.8EHW0q6af6YlcWtytjTlhQAHNUWPw42y24Lmy2YlC6FIbowwhHjUsiGERQVWG2aDWNbmgDFG0YWj0ag2QvOU3mHYBt8Y1aZuMw8oIgnsGERhiodHKqk+P0rspsBR+2+8daS7IbWZQWHzCELW59r.lrn2tN+Ilu+dDO5wr.iY+tNcbE7cD9hD.YKiahBAYRFPe.QMskvHqeRaOlT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