HISE Logo Forum
    • Categories
    • Register
    • Login

    DisplayBuffer not working after DLL compilation

    Scheduled Pinned Locked Moved Bug Reports
    22 Posts 3 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Soundavid @ForeverLive
      last edited by

      @ForeverLive I think is not working in the Components viewer but it works when you connect it to a component in your Interface.

      ForeverLiveF 1 Reply Last reply Reply Quote 1
      • ForeverLiveF
        ForeverLive @Soundavid
        last edited by ForeverLive

        @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));
        })
        
        ustkU S 2 Replies Last reply Reply Quote 0
        • ustkU
          ustk @ForeverLive
          last edited by

          @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

          Can't help pressing F5 in the forum...

          ForeverLiveF 1 Reply Last reply Reply Quote 0
          • ForeverLiveF
            ForeverLive @ustk
            last edited by

            @ustk but it is connected to a panel in main interface and shows nothing. May be script is wrong? Sorry for asking.

            ustkU 1 Reply Last reply Reply Quote 0
            • ustkU
              ustk @ForeverLive
              last edited by ustk

              @ForeverLive have you tried -1 instead of 44100

              Link Preview Image
              HISE | Docs

              favicon

              (docs.hise.audio)

              Can't help pressing F5 in the forum...

              ForeverLiveF 1 Reply Last reply Reply Quote 0
              • ForeverLiveF
                ForeverLive @ustk
                last edited by

                @ustk still no result. :( it is kind of hard.

                ustkU 1 Reply Last reply Reply Quote 0
                • ustkU
                  ustk @ForeverLive
                  last edited by

                  @ForeverLive Can you provide a snippet that reproduces the issue?

                  Can't help pressing F5 in the forum...

                  ForeverLiveF 2 Replies Last reply Reply Quote 1
                  • S
                    Soundavid @ForeverLive
                    last edited by

                    @ForeverLive What happens if you print the Value from bf.getReadBuffer()?

                    ForeverLiveF 1 Reply Last reply Reply Quote 1
                    • ForeverLiveF
                      ForeverLive @ustk
                      last edited by ForeverLive

                      @ustk

                      HiseSnippet 1672.3oc2X07aaTDEeVaus0tePaoE33pJN3Jk3Z2VJHgPwMNIkHpSshcCspppZ7tismlc2YY2wIwf5cj3eDjPHwAjfiQbBwE3HWP7m.8.2g2alcs2MwM00P6gZE4ry6i48ady6q0sBE1rnHQHwnXmQALhwoLaOxWNnw.J2mr9JDiyX1jFIYgVZRKOJfFEwbHFF4uERvnXAh5ySWZYpK02lMgDgrkfaytM2iKmPsU8Og65tF0g0g6kR5qWecageCgqXHfm7lUIAT6so8YaPQwxYRLN1pNboHrsjJYQDiBKKbF0dfXWes7awi3ccY3hZj1vFoIulv0AQL9Low.tqSqjycDgXX1ZhWHu1KbAylbG9X5S7FmUwvZhFo8GF4xBu7YfWsmE7lBjLRAoBZHcNy11g7.4DNHdNo459vkSOJ31SCEsrjb+UNyFBPBeYEO51r0BgEi0n7MpVcAK3qK+gkJckqXs3hVMDdAgps2BP6PpaoRvcRjzZGZnkSf0GYoBOpzmIWgGE3RGs7vd8Xgsg6LXCuj1tVqcuZWB2zI51sGnqSvgTrb0rx0h5ybqAxl.aPADTBeXQ4KoYq1a8iUhXRLLJrA00sKDuTt2PeaIW3W9xk9hREKUTNfGUwgJoUBnxAvN2sWE6PFbE0BVWtTQKKkHfgtsvl5trXnuSDfqEr.ehjFBLrnfBnjOnZEvkUC+B9awZOTITj5zaER86yrdvHOt+BVi7n6sfUD0KvkAADgxjEq567PbqfCtRWjGbzcGxhwZHK.B2jk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WvL+Nc2wVBluCLqbTfHJqSj4w6.CAEkl3cif2Zg8Y5nmTzaHngSk0SWZM3PNUcZSkCCUo1IUJSMbP94pib1YlRI+TZOW3k0KZ9Jcvq+6yIle1f6yY.mhIXrMW+ZU6vbgjDEFOOjUziNzUlPMaPdSguHoG5jHfMYvb.86yBSi8odfhKmLlxEpmjiOlz6V+1PTHMrop+0b4Kdw+MBl5806DW8yByLsd8X997uFMe+K.TdULv5qBa3QsCEOxVOmOFKeBEE3b6q9o9JZ1DWaUiritmoIN1JwCpH9HaazcuH3eltNWcNz4ZygNWeNz48lCctwbny6OG57AGoNXynaNTJ7zoh.gVqpGm0XUeJDIqh5I+KI53CsB
                      
                      1 Reply Last reply Reply Quote 0
                      • ForeverLiveF
                        ForeverLive @ustk
                        last edited by

                        @ustk It is working until i precompile the DLL from scriptnode.

                        1 Reply Last reply Reply Quote 0
                        • ForeverLiveF
                          ForeverLive @Soundavid
                          last edited by

                          @Soundavid i'm not sure how to do it. Posted snipped. So it's working but stop when i compile the dll.

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            Soundavid @ForeverLive
                            last edited by

                            @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.

                            ForeverLiveF 1 Reply Last reply Reply Quote 1
                            • ForeverLiveF
                              ForeverLive @Soundavid
                              last edited by

                              @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.

                              S 1 Reply Last reply Reply Quote 0
                              • S
                                Soundavid @ForeverLive
                                last edited by

                                @ForeverLive Did you tried with the normal compressor node? not the jcompressor?

                                ForeverLiveF 1 Reply Last reply Reply Quote 1
                                • ForeverLiveF
                                  ForeverLive @Soundavid
                                  last edited by

                                  @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.

                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    Soundavid @ForeverLive
                                    last edited by

                                    @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...

                                    ForeverLiveF 1 Reply Last reply Reply Quote 1
                                    • ForeverLiveF
                                      ForeverLive @Soundavid
                                      last edited by

                                      @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.

                                      S ustkU 2 Replies Last reply Reply Quote 0
                                      • S
                                        Soundavid @ForeverLive
                                        last edited by

                                        @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.

                                        1 Reply Last reply Reply Quote 1
                                        • ustkU
                                          ustk @ForeverLive
                                          last edited by

                                          @ForeverLive Are you able to compile another type of display buffer like fft and consort and make it working?

                                          Can't help pressing F5 in the forum...

                                          ForeverLiveF 1 Reply Last reply Reply Quote 1
                                          • ForeverLiveF
                                            ForeverLive @ustk
                                            last edited by

                                            @ustk Can i please ask you to point me on a guide? I used Analyser and it working with floating panel. But i want to see the compressor actions in the UI instead of blind-guessing.

                                            ustkU 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            24

                                            Online

                                            1.7k

                                            Users

                                            11.9k

                                            Topics

                                            103.5k

                                            Posts