HISE Logo Forum
    • Categories
    • Register
    • Login

    Max value for attack is ignored when exported

    Scheduled Pinned Locked Moved General Questions
    6 Posts 3 Posters 616 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 Former User
      last edited by

      Inside of HISE the knob that I connected to Attack works exactly as I configured it, but when I export the plugin the max value is ignored.
      Anything I can do about that?

      orangeO 1 Reply Last reply Reply Quote 0
      • orangeO
        orange @A Former User
        last edited by orange

        @ltearr what is your attack value? Is this attack knob for a adsr envelope or compressor? What do you mean it's ignored? Can you give more info

        develop Branch / XCode 13.1
        macOS Monterey / M1 Max

        ? 2 Replies Last reply Reply Quote 0
        • ?
          A Former User @orange
          last edited by

          @orange sorry, let me be more specific, the project contains just a sampler, and I have a DefaultEnvelope Attack connected to one of the knobs. In HISE I have it configured with a range from 0-25, with 12 as the centre, and it behaves accordingly, but when I export to vst/standalone the range I set is being ignored, and it just goes from 0-1000 or something.

          1 Reply Last reply Reply Quote 0
          • ?
            A Former User @orange
            last edited by

            @orange Ok, I think I get it, the property editor probably doesn't actually make the script, I guess. So I should put the script in myself. As someone with zero experience in coding I'm trying to find an example in the forum but can't find any, not anything as simple as what I need anyway, haha.

            d.healeyD 1 Reply Last reply Reply Quote 1
            • d.healeyD
              d.healey @A Former User
              last edited by

              @ltearr The property editor changes the JSON behind the scenes. Click on a control and then press J to see the code. This sounds like a possible bug to me but I haven't tested it.

              Libre Wave - Freedom respecting instruments and effects
              My Patreon - HISE tutorials
              YouTube Channel - Public HISE tutorials

              ? 1 Reply Last reply Reply Quote 1
              • ?
                A Former User @d.healey
                last edited by

                @d-healey I added this to the script editor and now it works:

                // [JSON Attack]
                Content.setPropertiesFromJSON("Attack", {
                "max": 25,
                "mode": "Time",
                "stepSize": 1,
                "middlePosition": 12,
                "suffix": " ms"
                });

                So I guess there's a bug in the property editor.

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

                54

                Online

                1.7k

                Users

                11.7k

                Topics

                101.9k

                Posts