HISE Logo Forum
    • Categories
    • Register
    • Login

    Simple gain vst3: interface does not work

    Scheduled Pinned Locked Moved Faust Development
    11 Posts 3 Posters 467 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.
    • A
      Aueh
      last edited by Aueh

      I wrapped some simple faust code with HISE.
      Heres the faust code:

      declare filename "NJERG.dsp";
      declare name "NJERG";
      import("stdfaust.lib");
      gain = hslider("gain", 1, 0, 1, 0.1);
      process = _,_ : (*(gain), *(gain));
      

      I added the parameter to the interface and linked it to the faust parameter:
      b1bde424-6d1b-4d98-ae4a-24cebc52fb60-image.png
      And when i use a wavegenerator in the master chain:
      b0f16303-7294-4814-ba11-3fed20febe50-image.png
      The turning the knob in the interface preview changes the gain audibly.
      So i guess all settings are correct.
      So then i remove the wavegenerator from the master chain, so it can take input and work as a FX plugin.
      I enable vst3 support and then i export it as a VST plugin.
      However when i open it in my DAW turning the gain knob does not change the gain audibly. The default value of the gain is 0.5, and i do hear a drop in audio level when opening the plugin so the audio is passing through and multiplied by 0.5. So is there something wrong i did regarding the interface?

      EDIT:
      I actually didnt select export as FX plugin but as intstrument, that would maybe explain that the gain knob didnt do anything. However now that re-exported and this time i did select FX plugin, it doesnt even pass through the gain anymore: no gain reduction by default value 0.5 and also changing the knob doesnt do anything.

      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @Aueh
        last edited by Lindon

        @Aueh read the forum. Thus very problem was posted and solved this week.

        Hint you will need to use a hardcoded fx

        HISE Development for hire.
        www.channelrobot.com

        A 1 Reply Last reply Reply Quote 1
        • A
          Aueh @Lindon
          last edited by

          @Lindon I assume this was the solution?
          https://forum.hise.audio//post/89769
          Im still a beginner so im not sure.
          I did what the post suggested.
          I got this now.
          c066713f-8b10-4135-ac60-49d5545e4b45-image.png
          Chorale is the name of the my dsp network that was previously in the script fx node.
          And i also replace the knob from the interface with a new knob.
          b5e6512b-4430-4a90-8fc0-6da32d809635-image.png
          However the problem remains, in my daw, when i turn the knob theres no change in gain.
          The post also says something about removing something from the interface.js code, im not sure what is meant with that. Im still a beginner and all the example snippets use scriptfx nodes. I can check the forum but half of the answers i do not really understand because i dont understand the program that well. Could you please help me?

          LindonL 1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @Aueh
            last edited by

            @Aueh post a snippet of your project

            HISE Development for hire.
            www.channelrobot.com

            A 1 Reply Last reply Reply Quote 0
            • A
              Aueh @Lindon
              last edited by

              @Lindon Sorry for the late reply. I do this on the side of my main occupation so i mainly work on this on weekends. Thank you for helping me.

              This is the snippet with the scriptFX.

              HiseSnippet 1410.3ocuW0saaaCElxIJowqq+LzG.gbkSggmUbZR5BFRyeNynKoFUoA8t.FI5XBSQJHR2X2hc2tX6AXWzaF1SvteWsArWjs2f9FrcHoTrbhgaqw5TPrE44PxOd324iGSFnH7HRzYRNMIgnPHm4ZmJBIRoHE4T9jgIDjyscCFxUc2qKlxQs1G4bG2ivREI0y10tCSvRIIB43L2g5NbVZdj44cauKlg4gjQcgPmJngjukFSUi5s8SdJkwZhiHmPiK38ZOoUnfumfI5C3YN25nDbXO7EjiwZ2J4h9FrrKx4gtOdc+nMhdb8Fq2X0Gu4pgqE1v+Q0We0U2vOrieC+MCIjU2XyyQNKbPDUIRCTXEQBS5thngAcEWxsKvoTI8bFQ2vGE.qrsazdcornqBNRHTMegP0b1P0CbOhFQup+Qgr6YL3MZDECZNklFj7+HfjSAHMuER22MHLklnFYQimOysEGNA6fgylhPw5Kx4Ob2S.NvU0hw8HMSgFWMfJqWudUO3iU1pSednhJ3dB9wBE4Y7JqT9MkWp72U165l5zYh1zKSpfwHoSzrlNjNsAVg2O9bRZUuWgY8IW4Hr8GOltvGVLMztqK3nf2hSUOKgj0tofEoiU52u4I.JKroOKxPH3pxbRbmrSh.FMhjhnvjrn6S4hy8QFvmQ6eRiF+41nWzZerBmOMvLBqRBIUQ0aFm8IuBRhrGvK4tOQ1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.cRghqSUUVVphLSaMF87kWYqxZydesWWooF6JV2q54W0qt8yZ9fWYUM.NdV0y79JuJOrh1wUp5k8xJagP+q47hjt

              And this is the hardcodedFX version of it.
              HiseSnippet 958.3ocuVsraabCEkTRzoVsMHAnY+.uRJPvUijircLJbpenFgT6XTkFjcpTjbrH7LjC3vIwBEYYVzOftMeK4Wn+DcS2z+f1KmYzqZAEGg1NKFM2W7d38oDWaEJtfOHQIiiEVDBW9BilIRRzFDt5KFGKP3ufzerxN53QToB06DD9tjynIVgwKm0QiioIIBNBiK+cNF3Mqfxd9yCOhFRULwLVHzK0Rl36kQR6LtW7jmICC6R4hWHilS6cdROlVcrNTmB3oLoIJlxthdo3bpSsRDzSoIiP3GR1uiOeW99Ma2ocq82qEaGVa+G0rSqV65yB7a6uGSHZs6dCQ3MNkKsZSeK0JRfC8HMeb+Q52nxcvKkIxggBGgOpO34b1niGIC4SCNIPnpxbgpx4gpuhbljKmxeVH6dYB7lYw7AMboUAI+OAHgmCRUxgz8I8YFYrclDGd9bROEjACnPtYdnjqKB+AxwZPAkc6H5UhtFfXpA05zrYCO3U8CBRULqTq7zpy0VwyU0pW8mqtY02V06eJJHXoxbtwnCCElkJ1UNXVkg0ToQCElFdulFlJlpHb8WLltwsKlxxu0yonV0SIsOOVTP2UGxcwJ222LCfJBatbQABAUsYYh6VjI5GJ4BCRBGxcHOSoG5ix.eQYu269ie6PzO16DpkN4XfSD7RrvXktKC9Dwqgln7D7ljSDIWY0wY5FEqUN+iuyG0oWivD76AON18wu.eXEWCVtAIqKNdx0pG2UX+TpgyzvUOu2u6q7gdQCzFBDNMJrBcyJPn1WySCo1EaHbpWH.xnKTE5J0TIR634Gk7IzkzbkcI2VHdexERKazxwXokfQHa8eAFKls7kjSCBDL6L.Vgz8UqbPRkam6WcI8BCUH4X4AyJG7J1E.PwgokVnLOFOWXei1bkqf4R2E4xYaL9offe+Pb4+kFFh9AcpUpt7Lp0Hc05mmF0G1ivDPDToDgItx9Rtd1b5lNZWVrOrTLi3ufmBg9NZbgP+IB+ewGQTlQOfkOMwkP9rLNv8VksEbSXcLP6s3XjrmHXoy.Fawi5FF1ZcMr85Z3NqqgOZcMry5Z3tqqg68wMz8eB91TqNJe7BBc1EmlM1GiOUQgp7rNFj.1vwgFp7I4tR6obThq6JCEYsoARWaQI2O4H4dj.ZZh8qcsXayShmrcCg+UBWvBoFg2Ds81ZhVacP0IBmI.XJgUKFassRr7ric6P4vspePUmXuuwaTR1FlZ4p2vyugWy72a6CZUrMATbPiAdO1q1Cq4TrdCuhOpe.B82.ESG71C

              LindonL 1 Reply Last reply Reply Quote 0
              • LindonL
                Lindon @Aueh
                last edited by

                @Aueh said in Simple gain vst3: interface does not work:

                Ok, well your snippet crashes HISE when I try to compile it, I suspect this is because of the naming convention. You should never name things like: "gain", as theres more than a good chance that term is used in the source code, so I rebuilt your network like this:

                HiseSnippet 1258.3ocuV80SiaDDeMfgRJU8NoJ0Ws3ovobA6D96cppGDH8hZCDcNEcugVr2fWw5csr2.jV0262n9Z+H0uAsy30Iw4HkiK8OFofmclw6ucl42LK6dMSFxBuLSxSRXZBwZ4dop.VVlJkXUo+nDFwZCa+QRcTqHJWR5bBwZc6itFdmkRNdTBMKiERrrV96P0VquBI+4O91ioBpLfMcIB4BEOf8C7Xtd5p8dy2yEh1zPVedbIq24McBTxVJgZH.kkscIIzfanWyNihlsjM4szrHh0KraL3pfFC1u4AdG5c396bnm2tGb0NtMBB28vlM2qY3fFGP26.voUOMjqUo9ZplkAeziUgi7iT2IMavE7L9UBFJ3Q7gc1rLoUDWDNItjAQoUJEkV1Dk9J6t7P9j0mFsdVtBmodTNnYsziAIuOAHYUBRqXfzys8CR4I5oZP7741cjZV5.JjaJCEisDqe2tkBLPpqGSug0NEDl3P08bcq4.+r0qGLTFn4JoiRdlRyNWVcqJ+bk0q7KUb9PUCFLWc31jpDBV5bUikCoOliUkCiuhkVy4VpXHahgvwe1X5pOsXZf4TWxPkrijqOOgUH2VIBwXE99Cy.jhv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CVRH+EOu37P.
                

                so first see how I've encapsulated the snippet in the "</>" tags to make this post more readable - try that in future when posting snippets...

                Load up the snippet and see how I have (less than subtly) renamed all the elements. This now compiles, start by trying this and make sure it compiles on your system. DONT copy this snippet to your "Gain Test Project" - where the DspNetworks folder will have your old breaks-HISE code, start a new project and test it there. If you want to clean up your old project I can show you how to do that later.....

                HISE Development for hire.
                www.channelrobot.com

                A 1 Reply Last reply Reply Quote 1
                • A
                  Aueh @Lindon
                  last edited by Aueh

                  @Lindon Hi long time ago, i was very busy with university. It compiles for me. Strange that my project was unable to compile for you. For me that was never the problem. For the old project:
                  It showed the editor of the plugin, but changing the knob value didnt do anything. Your project:
                  I had to add the knob to the interface, and then i compiled it. But the same thing happened in the daw: it shows the gui but changing the knob value doesnt do anything. In the solution topic this guy says hardcodedFX and ScriptFX should compile the same:
                  https://forum.hise.audio//post/89792
                  and since my problem is different than the one of this topic i think theres something else going on...
                  I dont have any crash or compile problems. Everything shows up, the knob works in HISE, but in the daw the knob doesnt do anything. This is a screenshot from cakewalk, i also tried it in supercollider but it is the same problem.
                  93c50bd9-b024-45b9-8b1e-b5464edacc95-image.png
                  Are you able to make your project work as a vst plugin?

                  LindonL ustkU 2 Replies Last reply Reply Quote 0
                  • LindonL
                    Lindon @Aueh
                    last edited by

                    @Aueh said in Simple gain vst3: interface does not work:

                    d

                    post a snippet of where you re up to...

                    HISE Development for hire.
                    www.channelrobot.com

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

                      @Aueh Got caught by this one as well, waiting for a fix
                      https://forum.hise.audio/topic/12370/faust-parameter-not-responding-with-compiled-networks

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

                      1 Reply Last reply Reply Quote 0
                      • A
                        Aueh
                        last edited by Aueh

                        Ok i finally got it to work. I redid everything from scratch and now it works somehow. I dont know what exactly made it work this time, but ok i will go through everything step by step (also since theres no tutorial about this, as far as i know).
                        -So i used faust. I created a new faust file and replaced all variables and stringnames of parameters by non-generic names like "gainer1" or "againer".
                        -Then i opened hise. Created a new project. From this point on i didnt close or reopen hise whatsoever. When i close hise and reopen the xml it looks like this.
                        fb0f6b41-a6b5-40ad-b64e-553cadbb5bf4-image.png
                        Instead of this, and i dont know why.
                        bbb191e6-6d13-4297-8db9-ba62a6c2e86e-image.png
                        So thats why i keep hise open.
                        -I created a new scriptFX node add the faust dsp file to the correct folder.
                        -Added the parameter for the gain, and linked it with the cable thingy. And gave all elements and parameter things non-generic names. I did not added a knob to the interface view yet (I think this might be important).
                        -Then i compiled the dll.
                        984f7857-dbc0-4294-9c37-f5cb43950074-image.png
                        -Checked the box "replace scriptFX modules"
                        -Added a hardcodedFX node to the FX node (Your script should pop up here)
                        22271814-5386-490c-b54c-0051d69c5a94-image.png
                        -Then i removed the scriptFX node.
                        -I went to the interface designer and added a new knob to the interface view.
                        be0b8e42-d5c7-4892-824c-50eecd0dfda2-image.png
                        -Make sure to select hardcodedMasterFX1 as processorID in the property editor.
                        -You can add a waveform generator to see if the knob and effect works. (make sure to remove it again).
                        -Then i exported it as FX plugin
                        07ec49ed-f1aa-4f78-995a-ebb3861f7be0-image.png
                        -Now i got the dll in the binaries file and it works.

                        HiseSnippet 778.3ocuV80aZCCD2FvUC1ezpz164w1opIBzBTsGVW4OqnUnnktp9VkqioXQhcjiS6PS66w93rOR6avlcRnIrh5nnskGfb9ty2Oe2u6bFIEDZXnPBfUNcV.E.eBxYFWMo8DLiC52A.KitR+JUZCNbV.NLj5Bfvhu2nFVtDH94Gu8PrGlSnYKA.mIXD5wLelJa0QG7AlmWOrK8TleNq28f9DAusvSDogRQTUP.lLEeEcH1XVAD3Hb3D.7Un8aX61zc+p0aTu19spQ1kT2dupMpUqoMYrcc6VDJsVyVWBfaz0koDRGEVQC0a5gB2YNSD2vSBvYrP1kdTifMvQG4jkAsmv7bGMOuDB.vRixxRESxRu.Mf4xtc8rr0yiUXk4Q9jFrv8AI6G.jf4fToDHsIxgHYApLMF77XTethJGi00l7PIwV.76n1BsAb0q8wSo8jZgacXqFUqtik9msey3HNQwDbKAenPQOgu01U9RkxU9ZEqeW03wKUmILRgmGUtT0F5f79bbKdj+kT4NVWi8hn2Zn93uXNciUKmRRN04LTv6yYpSBnox8Ddtlbk486VA.ooMSsHEgZSUwUhmkVIb7XtTIf4luIJF94aS.epeGrBOeiz6oNNATohYNNvNzq0sQIk3xnNzvoJQPrs9ABtAAvMVgv9Y.DAOFB.yLu7McXCleZ56Z3yGgktDg9DO.Gpq+8N2V2BJ0ceZg9KrUf6x8zrdgajGVsXqfYHQpBcsbA9mgjwCYpY4Gh7.5Opdu8GqJD2DMhoHSVNFKrDLpqR+KvX5Tkmh5NdLknx.XITuyW2QHUW8QHnj3+xLVfUBMvRGdCNVJ+HOtFRU2HjSyySl+e9jWw+RC.AeTDoX7qFfURlgaOLx2Qe2AgpycbN0KzPyKX5SSjqZjMPvgxciE9o9IUosQFlpzdtx+KwvGSjhKHISPLkkGEuh9byiu4qLZfQ1ZICN70WzbAgr3VcGGqstNVeccb200w8VWGartN1bccr0e1Qy2A7tHkvOYvB.LXT23A8PXWNVyxi6a.+BvUgltC
                        
                        A 1 Reply Last reply Reply Quote 0
                        • A
                          Aueh @Aueh
                          last edited by Aueh

                          Additionally, if you had some script code, remember to adjust some elements of the code, which could otherwise be the cause of parameter- or UIcomponent- breakage.
                          5ff88664-9060-43c1-abd5-4db1b42cca56-image.png
                          Replace the scriptFX node name in getEffect by the hardcodedmasterfx node name.
                          And replace the scriptFX parameter name by the name of the parameter you see when clicking on the hardcodedmasterFX node.

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

                          19

                          Online

                          1.7k

                          Users

                          11.8k

                          Topics

                          102.8k

                          Posts