Convolution Reverb - user selecting their own IRs
-
I have a question. Can a user load their own IRs for a convolution reverb thru the user interface while the plugin is running, instead of the developer having load them at build time? I have it working where the user selects the IRs using a combo box, thanks to David H's video. So i thought I would explore this route. I looked in the forum and in the snippets but didn't see anything.
If it can be done, how would I go about it? Thx
-
@pgroslou Yes, there are a few ways to do this. Probably the simplest is to use an AudioWaveForm control, this comes with a drag n drop feature too.
HiseSnippet 910.3ocuV0saSjCE1tsC61r6h.DbetrrBgxPSS6JtXSa9Ah11RDoTVtB4XeRFq5wdjGOoDgVo8x8YXeZ3cfWDdCXsmYRmYnQcai.xEQ47mOe967iyPshBwwJMBW6j4Q.B+ydilKMAcBHbIZPWD91dGQhMftdlpClGQhiAFBiW+YNE3M2.k94S+9ADAQRgBUHzoJNENjGxMEZG19O3BQeBCNgGVx6lsGPUxNJgJwhm08ZfhHzyHSgiIN2VyC8bRb.B+qdTVSZSZqwM8IjI65OtELdO+c8g8n6v9MJkP2YL0e6sIH7s5w3FkdjgXfX6gdfhMeTf5bYVBNkGyGK.mfOZjMyYpQcB3B1vEjSLBg2XXAUsdFUceui3L9E5Knr6jZndQDkIM7ZWEj7uAPBWBRajAo65Mhp4QlBKN77SdCj1J3Dhs1TFJY9hvevqix5fz73PxYPesU3h.1pUiFOpt8qG9zIIRpgqj0UxiUF3ExsdXs2WayZ+Us5eooISVpMWZzJg.zK0rqcPeUAtkLIbLneT8YDQBbgi1qeUN8VWONklcqK4nRNPxMuHBxk6qDLGW498kq.nbZyUKxQnM2lzJwCxqD6mv3pWSlAST5PDm45NpnyGkdYJOzvHFRZ+tlHmB1Kk1Vj7vNSoZ5IYKjQuZPWm24HvBFK.i.sg63AbWXlc9Kq2XSutP7YFUTpugQJoC53e3Fi22Uf0iaO+Bg+9z1myYl.Gz9WK3B.9zfTf2xJEsf2FvbIyB1YJQRZ48kvLPO1RvWte1NIoXIBho53kawStA6ATom103Ji4l4kWLcCl4ZbkybWWHdWugbCMX4XbskfQaA7aAFy2T8Kd8lLAnlB.tgW++bUWK035uV5dKxeo5cZ9WdGPY.0UOu56Ku4CuFLUUgPGZQqjVgHGDFkHhgCA4TWyXQWPNtFHiRLk0+pX3.6CMS0pDI6j.MPXkOugZfABRkb7bdmRmw+7w1cIgQb4zx9zu+I4Cd4pte69bQwiYgtaR1TbH4cK9oPohpLw6TTZfGu9WomOPuTYIe4ziHFM2k9iSBGYe4kB1tDoDDwtTtlaKWlbiEPXDHYoBe19I2nuSFmazegwuK4HjP0p2Ry1+5Z.+wTM16sLkp2z9GXrx0Wxh1P6yzukRqdTWJvmrpAt8pFXyUMvcV0.aspAt6pF3d++A59WT6mXTgYqPQniF1K80NLtmjX6xSWTf9OGo52QA -
@David-Healey Thanks David! I will try that. Cheers!
-
@David-Healey I tried it and it works great and really easy to implement. I also didn't have to remove the combo box, users can either choose an IR or load their own. Very nice. Thanks again!
-
// CREATE A COMBO BOX NAMED : cmbIr
// Also add your convolution reverbs into the AudioFile folder, this combo box will show a dropdown //menu
//with all your convolution reverb files instead of sending you to your folders.const var ConvolutionReverb1 = Synth.getAudioSampleProcessor("Convolution Reverb1");
const irs = Engine.loadAudioFilesIntoPool();const cmbIr = Content.getComponent("cmbIr");
inline function oncmbIrControl(component, value)
{
if (value > 0)
ConvolutionReverb1.setFile(irs[value - 1]);
};Content.getComponent("cmbIr").setControlCallback(oncmbIrControl);
cmbIr.set("items","") ;
for (x in irs)
cmbIr.addItem(x.replace("{PROJECT_FOLDER}").replace(".wav")); -
@pgroslou you can add a second AUDIO WAVE FORM like the one Dave gave you and add it on top of the one in the code I gave you , just disable the opaque settings and alpha the background so you can see both screens, and select the convolution reverb on the processor settings, now you can give the user both options, your convolutions ir or the option of user ir