Simple gain vst3: interface does not work
-
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:
And when i use a wavegenerator in the master chain:
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. -
@Aueh read the forum. Thus very problem was posted and solved this week.
Hint you will need to use a hardcoded fx
-
@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.
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.
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? -
@Aueh post a snippet of your project
-
@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.FI5XBSQJHR2X2hc2tX6AXWzaF1SvteWsArWjs2f9FrcHoTrbhgaqw5TPrE44PxOd324iGSFnH7HRzYRNMIgnPHm4ZmJBIRoHE4T9jgIDjyscCFxUc2qKlxQs1G4bG2ivREI0y10tCSvRIIB43L2g5NbVZdj44cauKlg4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UhtFfXpA05zrYCO3U8CBRULqTq7zpy0VwyU0pW8mqtY02V06eJJHXoxbtwnCCElkJ1UNXVkg0ToQCElFdulFlJlpHb8WLltwsKlxxu0yonV0SIsOOVTP2UGxcwJ222LCfJBatbQABAUsYYh6VjI5GJ4BCRBGxcHOSoG5ix.eQYu269ie6PzO16DpkN4XfSD7RrvXktKC9Dwqgln7D7ljSDIWY0wY5FEqUN+iuyG0oWivD76AON18wu.eXEWCVtAIqKNdx0pG2UX+TpgyzvUOu2u6q7gdQCzFBDNMJrBcyJPn1WySCo1EaHbpWH.xnKTE5J0TIR634Gk7IzkzbkcI2VHdexERKazxwXokfQHa8eAFKls7kjSCBDL6L.Vgz8UqbPRkam6WcI8BCUH4X4AyJG7J1E.PwgokVnLOFOWXei1bkqf4R2E4xYaL9offe+Pb4+kFFh9AcpUpt7Lp0Hc05mmF0G1ivDPDToDgItx9Rtd1b5lNZWVrOrTLi3ufmBg9NZbgP+IB+ewGQTlQOfkOMwkP9rLNv8VksEbSXcLP6s3XjrmHXoy.Fawi5FF1ZcMr85Z3NqqgOZcMry5Z3tqqg68wMz8eB91TqNJe7BBc1EmlM1GiOUQgp7rNFj.1vwgFp7I4tR6obThq6JCEYsoARWaQI2O4H4dj.ZZh8qcsXayShmrcCg+UBWvBoFg2Ds81ZhVacP0IBmI.XJgUKFassRr7ric6P4vspePUmXuuwaTR1FlZ4p2vyugWy72a6CZUrMATbPiAdO1q1Cq4TrdCuhOpe.B82.ESG71C -
@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+QRcTqHJW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gAmagdluvQC0pXfoLdZg+cXGw9zzqY57tT+sXyDD5GwxuO0+PjNisyCm4Snjr7l.YjYDIlJTHSLIyNAm3hkh.jYRoVePNZC6NYWfZCnhwHBXHGqT2DSyolK1.y+OZjDSCRUWFX5MhGtOKeEHqJK3dcQYGOxslC1zQZwvs9tLHX1O0Cbrwh5XyE0wcVTG2cQcbuE0w8WTGO3i6Hdo7BVJVrSHc6cZdQnk0oRJLJKeNLgASCCgg7lAxXs5jUjr6aC8jxK4yaNYsD9OCR9ZCkY6RMupGlkL9VlDqeyd6scZi13XpZcvO1qbJ4PEvhVoLrMhCz+Hx4sc7OEFU6zvswtuzs4K8bqviSTo5paloCy2v5B9Uat0qqTAHm3Wx4abhxD7P3pzaNlutYMGuZNtleq6AVWbKAv3Kqcoyqbp9hpE9uUMmouCVRH+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.....