Changing Impulses in Scriptnode.
-
I have a plugin in the works where I changed/switched Impulses in the scriptnode Convolution but in the latest version I can see that the convolution loader has been changed and my loading has stopped working.
Couple of questions.
-
I can now see that the convolution has a sample map option , does that mean I should make a sample map of the Impulses used - in a sampler? , then load that sample map into the convolution and switch the impulses that way ? Would that mean I can no longer embed the impulses , which I would prefer ?
-
Does anyone know what exactly changed to make it so that I can no longer load/switch impulses in the scriptnode convolution? Or can tell me how to change impulses in the scriptnode convolution on the fly ?
I just picked up HISE again after a lengthy pause , trying to catch up here .
-
-
Well, actually the SampleMap option will be removed from the convolution node - it allows multiple samples to be loaded in a sampler-type node but makes no sense for a convolution node. But since it uses the same data type under the hood it's still available as a (pointless) option.
Now is probably a weird time to come back to HISE since so much has changed for HISE 3.0 and I'm currently tying up loose ends (like this), so you will have to expect a few weird hiccups like this during the next weeks - however reporting these things are very helpful at the moment because I tend to have a blind spot for the most obvious issues at the moment...
-
@Christoph-Hart said in Changing Impulses in Scriptnode.:
is probably a weird time to come back to HISE since so much has changed for HISE 3.0 and I'm currently tying up loose ends (like this), so you will have to expect a few weird hiccups like this during the next week
Ok, thanks !
So I should consider this a temporary bug and the loading should work again with my current code once fixed ?P.s one of my synth projects crashes when trying to open in the new version , wonder if you want to see the project or should I just wait until bugs have been ironed out ?
-
@lalalandsynth said in Changing Impulses in Scriptnode.:
So I should consider this a temporary bug and the loading should work again with my current code once fixed ?
Yes. If you can create a minimal example that reproduces the issue, it will be easier for me to track down the issue.
wonder if you want to see the project or should I just wait until bugs have been ironed out ?
Same here, the most efficient way would be a minimal example - the list of issues is long, but the faster I can reproduce stuff the higher the chances are to land at the top of the queue.
-
@christoph-hart Do you still need these examples from me or has the impulse loading been fixed in the latest develop ?
EDIT: Will build the latest develop and try later today. -
@christoph-hart After testing the latest develop it still does not work.
It does not load or change any impulses.
LEt me know if you need a better example or more code ?Actually there was always a bit of a problem with this method as sometimes it would not load impulses and I have no idea why.
IF someone could show me a working way to load impulses into scriptnode, that would be appreciated.
This is the code I was using and used to work.
include("ImpulseDefinitions.js"); global irSLot = Engine.createAndRegisterAudioFile(0); // if you want to load an IR from a combobox, use this call: //irSLot.loadFile(getFilePath(0)); const var dsp = Engine.createDspNetwork("dsp"); const var path = "{PROJECT_FOLDER}"; inline function getFilePath(index) { var impulse = path + irs[index]; return impulse; } Console.print('123456');
This snippet seems to work on its own if you just manually change the impulse names.
HiseSnippet 2660.3ocsY8+aabaE+jStrY25gVfh8CCX.rBXCmRjkkbrSZrgQhsrcpaiiEh8x5PPPF0cTRb4zQg63Ya0.Cr+j1eC8ehs+L1ured68H4oi2oStotcxMphOxG4m2iuuQxdwBeVRhH1o1xmOcByo1m5d1zH4ntin7HmiOvolqKM12Y+oSnIIr.mZ0tyywtps7ccTe92OceZHMxmkSxw40BtO6E7wbYN0dO6a4ggGQCXmyGaM5Me1w9hnthPQJ.i6311YB0+8zgrWRwgsjqSs6cX.WJhOSRkrDmZ2ceQvzyFItLRO9WyS38CYXiNNmASjl7Qhv.DwHUmti3gA8xD2DGXV5kK72QK7eg6I7.9L54JgOS0AImCa8QsktI30wFdsqDdsqBd0rf2c0v6ycOyOlOQl2ChsOw83HIKd.E1BrgkdrNK8O+stcEvHhjsFSeO6nXnwLN71nc6lD3qF6r5J5+VecR2XFHJjuMRze0U3Qg7HFYPZjujKhHuGn1iFwB8hfMnljqZRl1jH5+2Zr5JeX0UHvmPgOMj.6pxXQ3NZZlVjcIYngFDTddZXFr96rAlvPQdBKVxYI.9G+Mmc5K8HZ1LKI9o9k7.4n5aifok52Ms5bDiObjzzqtgc2zvPwkcgu6CVeIvvp2MjC+pI4qEWvhI+QxAwzgC4QCqayVB8B1wQ8hY.HAljwoL6tGyiLqH7qBcPuJqC5UZ5WWT5MJrVATIsU.a.MMT9ZZXJCTgHe1j1oBVlXop8Uan8nxQd5M57kQ+85q2Cr0kjXQpD1sKNcn9G68U5N8xLE7F1POPq8fp9EXQsWrOYePwlSbHNsZudu1WczQazF+qwNV7cAMljHowxSGL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vxME+gG7CUv.X5t2FlW0QGS.ozyPw91uQ1pAzJdQ5N09ctK5hzcz2tB9zJu.NyMn8qsDO4Dlj1iFSgXofRAHMILEF8LR5mEZEkhhb1qeNt4LSH+zeTM6U4u7zVOaZditOa.ObbBD5dxwioCgI4269gdu5zu4vtm+tiN8EGb3qtd+PZDTZeqI.1MZG2Z9VZF2ZaCs.6UrDhII4y9e8Y7jdEkiEJZ2SgTmJzDIfM64PwE6KtBegGm4ehnOy8DQ.VUVwWuBexNSGfqUgmIBeJHrNuo1Oo2O6mzpRmnOR394t83R+QUi2kp.unW4+mwq4ABW08vACfyNlC165dz28K6qAVITzO8xPnB4XN5o9RvDCNSqOCqfCbjwve0VBMi0saisQMCTDefpw+E9X5rSlqJ1YmrNcFS8iEuyTCA9Dj+ZEE.SQJ6xkcOAaSlEcx0scq1NiA22246iph0.rWMOabK34g2Bd17VvyV2BddzsfmGeK34qtQdvHm6kJEi0tI.gdGpxRTq1g5KtVEl3+ALoVZyL
-
@lalalandsynth yes, calling
irSlot.loadFile()
works when you hit compile but doesn't work within a comboBox callback... More precisely the callback doesn't seem to be triggered when using the comboBox.Here's the snippet :
HiseSnippet 2169.3oc2YEzaabbEdWRspgqKKhKhKB5g1AB4.MfBMosRZQSCDknHcYqkDAorhCBBrFs6PxoZ2c1t6rRjMv.AnW5sdN2JP+Czq8V9CTfBzC8uPO5eAs8MyrK2YIocjncLZKALrmYdy79duYdeu2ac+HlCINlEYXV4jYgDCyuq0vYA7IsmfoAF8NPLw.xkjnyOgDyM1eVHNNl3ZXZV9gBILqrgg72y2cerGNvgjOkgwoLpC4QTeJOe19s9UTOutXWxITeMo2oUOGVPalGKAPSYqFFgXmKviIGgEhUxxvbyNtTNKZHGyIwFlarOyc1vIrqBTxeJMldtGQLnowP3fTS2k44JPr3eazdB0yselUGaXXZ0O2GTV4CdGqCotz4ym6Kda4Bn7cn6OLKUDdkK.ul5vqgF7VAjL0fzFJHcaqgNQzPd9JB7bKqdAbRzHL310ghR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8JfJ1dpl7qnqnM915ys9FsG2W8Vxe8zWYkLLNjJHK5DbIwChIMTUsb.YDFnXxls3i7CYArrB2xecLfj1JPA1pUYP6w4P874y7NsFP7HX8WyuWqGAuBwQGJKEYs7EMuweo7Ude8tVJ3hDQln++3SoT9+09TJudfxahdqdSnCerSD6oNpV2DukeK4LfcGH+O7ph0ghwn4cqYY0ndCCefQ7oNNB286C9mUum6uF64Aqwd1YM1yGrF64CWi87SVi87Seo6QjLZuDNyWEJBSzuipLKyNAX3kr7Uuw+APvhLg.
I tested this in an empty scriptFx, using just a knob callback to print something on the console : the callback is not triggered.
-
@matt_sf That's because the parameter callbacks are forwarded to the active DSP network by default and thus the callbacks of the interface controls are not executed anymore, but I should probably add a warning somewhere that catches this problem since it's super unintuitive.
@lalalandsynth You need to change the convolution node to use an external slot (click on the icon next to the waveform and choose a external slot, then you can access it from outside. Oh and the convolution reverb must not load sample maps, that was just a glitch.
-
@christoph-hart said in Changing Impulses in Scriptnode.:
Oh and the convolution reverb must not load sample maps, that was just a glitch.
but it would be super cool if it did, even cooler (for the win) is if the granular in script node used sample maps....
-
@christoph-hart said in Changing Impulses in Scriptnode.:
You need to change the convolution node to use an external slot (click on the icon next to the waveform and choose a external slot, then you can access it from outside.
Yep, did that , still does not work.
-
@lalalandsynth @Christoph-Hart @UrsBollhalder loading IRs into scriptnode actually works but only if you have AudioWaveforms tiles into your GUI. Like this :
Add External AudioFile Slots to the
filters.convolution
node :
Link the AudioWaveform tiles to the nodeConvolution FX + set the correct sampleIndexes :
So the user can load custom IRs into a scriptFx, but it only works this way (or am I really missing something ?).
I couldn't find any way to load them with a comboBox.
The thing is, when one is using the Convolution Reverb Module, we must declare a reference like this :const var ConvolutionReverb1 = Synth.getAudioSampleProcessor("Convolution Reverb1");
But this doesn't work (obviously) with a convolution node, so we can't use the
AudioSampleProcessor.setFile()
function. -
@Matt_SF Have you figure out how to change impulses via script?
I found some scripts that work in the scriptFX script, but having roadblock changing them from the Interface script because the FX has an actie DSP network.const var irSLot = Engine.createAndRegisterAudioFile(0); // if you want to load an IR from a combobox, use this call: irSLot.loadFile("{PROJECT_FOLDER}MyFile.wav");
-
@dustbro errr it's been quite some time and I think I hit the same roadblock you're facing, aka how to access the scriptnode convo slot from the outside... At that time I think I used HISE's convoFx for my project
I won't be home before this evening, but I'll still take a look, see if I can help -
@dustbro got home and found a solution, but it's not perfect yet : it only works if you have only one convolution node in the graph :
HiseSnippet 1684.3oc2X80aSbDDeO6bAhoffJnpOUcJpOXjfnXfRqDpBm3XCtEmXEGRoBgh1b2Z6Uducud25j3RQBo9Bu0m4s9Qnu123KPkpT+hv2f1Y28Ne2gc9mUgBMQJJ6ryNyuc1Y9M6dsCEtjnHQHxZgsFEPPVejcmQbY+Z8wTNp4ZHqKX2BGIIgNFQqNJ.GEQ7PVVEumRf0Bygz+756tJlg4tjTQHz1BpK4ATepLUZ6peKkwZf8HaQ8yn8sp1zUvqIXhg.dJZuLJ.6N.2irNVoVAaj0708nRQXGIVRhPVyspvaTm9h84F82lFQ2kQTCpf5.FxHtgf4oPrRJpVeJyqcx9NBgrramFEJZhBW1tE0iNVdZz3h5IbRWQ13gUg7vqXN3UIK7VNC7lBjrx.o4LP5R1cbCoAxzYT34b1M4vgSWLD1yBEitnB+TA6ZBPCtbIe7.RiPXv3UT91Ku70bf+b06TpTcdOJmrDSf8VYnGUzfxHQfph1BAqrRC3vIR5rGNzwX8FOphyW6nSWVpGQpWUGre.iLFikWznpCn6hfMRMQMg+thUEGnLQBBAi.hCDbXP4EGqwhoNORadXIOdwm1dyM9l501ZmFa7f0pu4yngJeSprz938V7ZNG1723Xl+l54eB3QJmAADmtC4tRpf6nRMiQjBvgPTwMAsWC1SrgjqV5okVXbvYoHhTEEKaP8i0pb8JOA1NOCr+wtqUqO1S0vL1tPwP4IAwUuSFDttPR1fWViiROqjyaNU2tSctXSwHgScZUYZ3Qsvx7g96RByFETJB4t4KHrO7Bhr0qtlHSFEE7lbpbi.B+vphQwgSn3oPLp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E9vH3A7jeXSUa0rxqIvgScpWe2FvlbpqoCVNLT2eNo0alqRV7n9LKUlwOyxbu28YV9.3AC4tM7BIXrCU0cqNeOBCpEzX7igj+tXfjHQZ9b4VBtH4tWoGzaRfKN1qGIOeyz1PqHkX2AoRtb0MILBNaR6mW8APxFNrkl9YlhEUN0eUrodd8o1F35nJ.c9v8gdE+e8C8dm75k2E9vG6FJ1w07nOUd5Y0Rf8MW+gqWvtkZry3OMjs5oLHefgaGWWUH95.g4zWyMlg0byYXM2ZFVyWLCq41yvZ9xYXMe0QtFUykUFJE9lRNPP65l67aUmigrWclN5e.OSrvS.
The trick seems to declare the scriptFx as an "AudioSampleProcessor".
I'll take more time later to see how to adress different convo nodesEdit : odd. When I load the snippet on my mac it doesn't recognize the ScriptFx as an audio processor, but i worked on my PC... I'll take a look at it again tomorrow
-
@Matt_SF Make sure you use the latest build, I think I've recently fixed stuff around this topic.
Oh, and there was indeed an issue with it only detecting the first slot, but this should be fixed now, so you can do
const var s = Synth.getAudioSampleProcessor("Script FX1"); const var first = s.getAudioFile(0); const var second = s.getAudioFile(1); second.loadFile("something");
-
@Christoph-Hart I do have the latest build on my PC but I may be a only few commits late on my mac. I'll try this tomorrow, thanks Christoph !
-
@Matt_SF You're guaranteed to be one commit behind the fix for multiple files, because I've just pushed it a few minutes ago :)
-
@Matt_SF @Christoph-Hart Thank you so much! This is exactly what I needed. :couple_with_heart_man_man:
-
@dustbro have you tried using the hardcoded master fx? For a static effect like this itโs recommended for final product as it removes the scripting overhead.
-
@Christoph-Hart I have no idea what that even means
Is there a link to docs so I can read up on it?