DisplayBuffer not working after DLL compilation
-
Hello. I created external DisplayBuffer in a scriptnode but after compilation is just looks like a transparent hole. Is it working or i did something wrong?
-
@ForeverLive I think is not working in the Components viewer but it works when you connect it to a component in your Interface.
-
@Soundavid it is not really working. I using this code.
// -- Compressor Visual const var dp = Synth.getDisplayBufferSource("CompFX"); const var bf = dp.getDisplayBuffer(0); const var Panel1 = Content.getComponent("CompressorVisual"); Panel1.setTimerCallback(function() { this.data.path = bf.createPath( this.getLocalBounds(0), // target area [0.0, 1.0, 0, 44100], // source range [ymin, ymax, sampleStart, sampleEnd] 0); // start value this.repaint(); }); Panel1.startTimer(30); Panel1.setPaintRoutine(function(g) { g.setColour(Colours.white); g.fillPath(this.data.path, this.getLocalBounds(0)); })
-
@ForeverLive Do you mean in your main interface script? Because it's normal you can't access the module from within itself. But it should work with a panel on your main interface
-
@ustk but it is connected to a panel in main interface and shows nothing. May be script is wrong? Sorry for asking.
-
@ForeverLive have you tried
-1
instead of44100
https://docs.hise.audio/scripting/scripting-api/displaybuffer/
-
@ustk still no result. :( it is kind of hard.
-
@ForeverLive Can you provide a snippet that reproduces the issue?
-
@ForeverLive What happens if you print the Value from bf.getReadBuffer()?
-
HiseSnippet 1672.3oc2X07aaTDEeVaus0tePaoE33pJN3Jk3Z2VJHgPwMNIkHpSshcCspppZ7tismlc2YY2wIwf5cj3eDjPHwAjfiQbBwE3HWP7m.8.2g2alcs2MwM00P6gZE4ry6i48ady6q0sBE1rnHQHwnXmQALhwoLaOxWNnw.J2mr9JDiyX1jFIYgVZRKOJfFEwbHFF4uERvnXAh5ySWZYpK02lMgDgrkfaytM2iKmPsU8Og65tF0g0g6kR5qWecageCgqXHfm7lUIAT6so8YaPQwxYRLN1pNboHrsjJYQDiBKKbF0dfXWes7awi3ccY3hZj1vFoIulv0AQL9Low.tqSqjycDgXX1ZhWHu1KbAylbG9X5S7FmUwvZhFo8GF4xBu7YfWsmE7lBjLRAoBZHcNy11g7.4DNHdNo459vkSOJ31SCEsrjb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QagbgtLjsvaZDuDbO0dJMLQQOs4isGOdBICvOu4ichBpjl+K.BKjFgjIUT5n58qqtig36kTX+.YJGjBdz7cX6kXrUg3XGHuUodRfQKZHLVqTqegwqfPhlb+XGQRoq6ueS5dGfFDnIYAXpVFZay1U6Yhote+u6h0QuWIyNfmY.T.gLdm9wt+vet9ab08IGs4e5RG170qOSlu929q+wRn4Ot4lnOchsO627yu84+5KV+4Xa393f1d+vYz1W8m9cksOg4MkRXzPxgNWu7L99+8E+EkwKZtIykQiXGz52udlX.xxBw1dTUAh4ZFhzMhNil4IMaC4xpI1UYxukZs0mR2gYcKFjkisTqcDuS2uMquSWvL+Nc2wVBluCLqbTfHJqSj4w6.CAEkl3cif2Zg8Y5nmTzaHngSk0SWZM3PNUcZSkCCUo1IUJSMbP94pib1YlRI+TZOW3k0KZ9Jcvq+6yIle1f6yY.mhIXrMW+ZU6vbgjDEFOOjUziNzUlPMaPdSguHoG5jHfMYvb.86yBSi8odfhKmLlxEpmjiOlz6V+1PTHMrop+0b4Kdw+MBl5806DW8yByLsd8X997uFMe+K.TdULv5qBa3QsCEOxVOmOFKeBEE3b6q9o9JZ1DWaUiritmoIN1JwCpH9HaazcuH3eltNWcNz4ZygNWeNz48lCctwbny6OG57AGoNXynaNTJ7zoh.gVqpGm0XUeJDIqh5I+KI53CsB
-
@ustk It is working until i precompile the DLL from scriptnode.
-
@Soundavid i'm not sure how to do it. Posted snipped. So it's working but stop when i compile the dll.
-
@ForeverLive Your Code is working for me with a compiled dll, im using the latest HISE develop branch, check the parameters on your DSP network or your HISE version.
-
@Soundavid I using latest develop version on mac but it's stops showing the signs of life after dll compilation and changing variable in a script.
-
@ForeverLive Did you tried with the normal compressor node? not the jcompressor?
-
@Soundavid Yes, exact same behavior. Working before compilation, then i replace scriptFX with Hardcoded dll and change variable in script and it's not showing anything at all.
-
@ForeverLive Maybe something is wrong with the dll, the effect is working fine in the hardcode fx? or is just the Display Buffer that doesn't work? Its hard to tell without your dll and network...
-
@Soundavid the network is just single compressor with buffer enabled. The effect itself is working, only buffer is not showing anything. But it's showing the buffer content when it's uncompiled. I just using tool located in Export. Compile DSP networks as dll.
-
@ForeverLive I think something could be weird with your compilation process of the library, like I said is working fine in my system so If You can Share the snippet with the .xml network and the .dylib I can test it.
-
@ForeverLive Are you able to compile another type of display buffer like fft and consort and make it working?