VU Meter's not working in exported plugin



  • I'm just having a look at a VU meter and trying to connect it to a simple gain as the master output doesn't work on my exported plugins either.

    The name of my simple gain module is 'MasterGain'. I tried replacing the line below with 'getMasterGainLevel' but it just threw me a code error.

    What would I need to replace the line below with to make it work?

    var newValue = Engine.getMasterPeakLevel(this.data.isLeft ? 0 : 1);
    


  • @SteveRiggs have you tried:.

    var newValue = Engine.getDecibelsForGainFactor(MasterGain.getCurrentLevel(0)))
    


  • @Lindon said in VU Meter's not working in exported plugin:

    var newValue = Engine.getDecibelsForGainFactor(MasterGain.getCurrentLevel(0)))

    Yes but that's totally broke it now. The console is going mental repeating the same line even when you clear it until you change it back ☹

    I've tried the exact line you sent, and also without the extra ) on the end, and added the ;

    Screen Shot 2019-09-24 at 10.13.44.png



  • @Lindon Are you sure thats right? It's not working for me.



  • @SteveRiggs could it be the "zero" inside the brackets? I think you should have it like this

    MasterGain.getCurrentLevel()
    


  • @ulrik Still the same error dude 😞

    var newValue = Engine.getDecibelsForGainFactor(MasterGain.getCurrentLevel());
    

    Screen Shot 2019-09-24 at 10.54.23.png



  • @SteveRiggs and MasterGain is declared?

    const var MasteGain = Content.getComponent("MasterGain");
    


  • @ulrik Ah, it wasn't but is now. Still the same error though

    Screen Shot 2019-09-24 at 11.18.23.png



  • @SteveRiggs can you post a snippet?



  • @ulrik Here you go. I changed it back to getMasterPeakLevel as it wouldn't compile with anything else.

    HiseSnippet 5244.3oc67jDabbkcUKpRRjRbLsrCxDjAA+gvAtoBMYuvUq3QEWZR0RboS2MkkxLCZUrqeSVCqtp10BWrFYH3YLFmLNA4RNnLH.5PPVtjjiIWRHxk.D3CIXxg.jKNWBb.xAAjK4Vx6++U00+WU0jcSQKMRlDvVc8We6K+sR1V0wNNV1Ro5u5AsvRothbkCLc2dgsU0MkJtnTp7xyYpZWe6CPK6o6pZilqYKTE8lnpXGWTVT5V1XGr671V64fsIENhz7GzR0wAqIkJUeKSFnT8edI5eO8FyqZnZVGGVjjzcrzqiWQuotaXok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WOhbqPviqGU3e7CuDWCiq7G7iNGZOlbmYvCsBBe9O+RnMLzxsqs6Bjkbghvirn+5+hiBgrPJv+hu9frdNb6u0IU1SqM3fKG9d10A2hqC.mvGlYNGvjWLqiC3rzG9+M+n+CZ0WCqStY87w7+yu+e1cIq5fEkrhMDrEtl8xDFH9WuFIbIdhK3UgnD5GrkqYgnGBwKSurfwIQLduIQJw6cQGqmeWuWDaf3ohkU1AS1rFw5t3u3kVMtdacGPS2G5K5G3an09q8WtyBB4iFb0CCuHQOVNgq+4hFj6JwRl5JVQW0jKrP7uZGuzNAWLnuLrTT2TjB4uLQvTUhWdH3AEKo70vr8dS+r8nWaPKYRtYmn3wawJAQJBUBz8vVYZmMgOK8+7+Pmdgu2riuv2KefQskYergf7AIKHaEKvtdjL2VhlxUL2hqYZ5P1UU7mYJ12AilvFz87cBMmV6vNZ9BH+uKlUh8pek4lp+7Ms679IA5oyH2SY8f5ymFYtDK.9pzg4BsL9VWwU2wuzvSDV1zvr41lFZ0BqKASf2ZKrEOsmHCEMNk2RNg.TVRyf7UciLcnKvhKn0F6aJxHWDY1K5UiOkSOuB8ob9JlmluLFiFJ0rLq5e8HCBtdok.7sA0tcePTsvynVWwhhhjiZQCvhX0Z0Hv86lQPH41j8Lzlbmg1L9YnMSbFZyjmg1L0YnMSehsg3LZVWGyFrohPAkJv1E0o3RnW3+GCZsx1B
    

    It was like @Lindon said, the "zero" inside the brackets means left-channel 🙂
    and the declaration should be

    const var MasterGain = Synth.getEffect("MasterGain");
    

    because you're getting the current level from the module "MasterGain" not from the component "MasterGain", sorry 'bout that.



  • @ulrik That seems to work now!! I'll export in a second and try it in Ableton. That's been bugging me for ages. Much appreciated dude. Thanks! 🙂



  • @ulrik @Lindon All working in the exported plugin now. Thanks for your help fellas 🤘




Log in to reply
 

14
Online

615
Users

2.5k
Topics

19.4k
Posts