Loading IR sample with a Button
-
Can anyone help with loading IR into Convolution reverb with a button?
After clicking the button, the file will be selected and the sample will be loaded into the Convolution module.
I used button because I don't like AudioWaveform's right click event.
HiseSnippet 1090.3ocuV0saaaCElxIZX1aqXcHO.B8Jmgf.KmrjFDTTuXGuXrjTi3zt0qBnkN1lHTjBTTowXH.6x8Xs8LrWj8FrcnjbDUiaWfwVkgMLO+9wCOmOwgJY.jjHUDmFWNOFHNeo6n4B8rtynLAYPOhySbOURCGbwHZTLGHGMOllj.gDGm09AiMN0Wmj87Wu7HJmJBfRQDxajr.3TVDSWJcXmejw48ogvkrHKq2syf.onqjKSQ7rlaKRLM3Z5T3bpwrZtjSnIyHNeqa68Oveuwsa09fw6C6Bsm3C6Ldx9g9s1o0tz1Oem8lP2ymd.w4yNNjokpQZpFRHNqejLb9nYx2IxSvaXIrw3tBW3SFgYNWbeIOzrEMRIcmw3gCWTnRHXTFVV1VKursg6YrP18xKKeeclBuROrKfN0pBu0p.Oea30xBdKARNVPZ8bH8T2QAJVrtTiAOeg6.gFTSnAUOKyskT6Op41UhVHzaGQuF5qvE26Qyca0ZKucZ0ZyCafO3oUh16FpxytEw6EdKhvTP2UFEKE3hlOy1nmgQfI3LA3MIUDnYRgmTXagIFJIuYvh.rElIdJrYieoQc1jlEKpiqpykATtWhlpzYGcJDC8YbXz7DMDYfQt3lVBecBnNQFAaZTOjpvLziof.73XdykK7PLU0wuVQYrR9tDnuTUZlEL159MWSEjjx0Hdy.rIJ0GbwUlMLBqBkl3eWC7Gy+tqwcG13wTH2NwnLqX0kx4iwYllKsTlen89U8GfBS8sQczmDIG1NVwvTVBP7yclvzv5X6boFdknYtm20v68UMYxR0U.KNl5ko1PNn9XN1TjFM1TjK6KLFhC.Umpb+vSU1C8A40ZKCkhABl9Uwf3CQEPJNfLSfEnBMUmM+8jh4uiR0ZofvBe.WZFtsYKIudPOpltHZXfwjECJMyrOb5A2fro4S20c6AIWqkwY1VzZf7cO1be6848WoclWBh21gkbFNVHvtXTrSMMbq1PiY7FaV7J7m7PBGjpSFlxo5p7el2RTn.O9pP5XHVDIL8b62h7eFo3iEhO0cHSGLa4Xr1RvHd97+AFKdUxW4d7jIHWRI.W2s+O+I38Feyh7i8d2H4oYkBS92vVxEvMfZreE7zSMu5cAd6u+SftpHB4TDrhfJ0wAQwo7D3TPLUOytIn.VCDwoZa4Hq8QHA2TkLUDd4LEPCsi2PEDBbZkbbBqqUL9s+rSOrClIlZaS+9WVLVUHZiNFR96u3QjYm35XzDQucwe4RY7HCausfiEgKV5r1i9Xx+i2kbgDq8homQ0JlI8mmFMBukT.fMIBAvMrbN0L7Q4qas.Bi.QX1h+FeJT5aV6TnzegxOI4HhFnjWEjyTZ5+97LI39VjUpq6dlYsm+C4FivqQcUPP0P8.GaupNtyp53tqpie2p53dqpi6upN97+cGM2x86S0xnbFTB4rgGm8tLGmiETrKOinf7OJvsb.A
-
@JulesV Here you go
I changed this function
instead ofFileSystem.browseForDirectory(var startFolder, var callback)
which looks for a directory, to
FileSystem.browse(var startFolder, bool forSaving, String wildcard, var callback)
which open and read the selected file
inline function onLoadIRSampleControl(component, value) { if(value) { local startFolder = FileSystem.getFolder(FileSystem.UserHome).getParentDirectory().getParentDirectory(); FileSystem.browse(startFolder, false, "*", function(result) { Console.print(trace(result.toString(0))); IR_Loader(result.toString(0)); }); } };
HiseSnippet 1455.3oc2W0saaaCElJNZa1cqXsnXXWJDrKbJBhsaRSZPwPch+owawIFVYsq.CHfQh1lHRjZjTo0XH.6x8XsGgArWj9FrcnjbLUrWmmWa.17EFhmeH+z4muCUOA2iHkbAxpzoiiHHqO01cLSMpwHLkg5zDYcW6i3X+N8cwgQADzAiivRIwGYYU34ZarJtJJ42ae1A3.LyiLUDB8BN0ibDMjplJsW8ukFDzF6SNkFZX81063wYM3A7X.OErqhhvdWfGRNFqMaEazgX4Hj0Csq93cHjc2ZfuOdqs72Ymc16I6s8d0vCptM97Z6r21OZ6cezS1c.x5iZ4SUbgqBqHRj0pGv8G6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