HISE Logo Forum
    • Categories
    • Register
    • Login

    Middle Position is not working on a LAF Slider

    Scheduled Pinned Locked Moved General Questions
    4 Posts 3 Posters 223 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.
    • FortuneF
      Fortune
      last edited by Fortune

      The Middle Position is not working on the LAF Slider.

      You can see that the middle position of this slider is set to 1500Hz but I am getting this point almost on the dip position.

      Is this a bug or ...?

      HiseSnippet 1327.3ocsW0rTabDDdVf0NRIwkcU4AXBmjrEBIAj3pnbEwexgRFPEhPRJJhqQ6NqzDVMylYGAH+SNmKoxw7Zj2k7JjGfbOGH8r+NBD1tTB5vBS28z8W+M8NcucjBGZXnPhrJbz3.Jx5Sr6NlqFr0.Bii1caj0B1NNnMGGPBCotHKq4etViUgEPQ+96uZShOg6PyEgPGKXNzWvFxT4R6zrMy2uEwkdDang0q1bWGAeKguXDfh4sqgBHNmQ5S2mnMaNaj081wkoDxtJhhFBHZSg63tCDWvis+XVHqmOUunNpK3nXwsD9tZDqkh1Z.y2sSZ1Fh.uzIO2mON2+L68XtrL44bvCiTfy2gIeXM2jva9IfWcS3Uy.dSARVFPZgXH8H6tNRVfJWiFOer8tbEU5Q.Z2DJw1hl6A22dKAXAWUcH4LZKIrHaGkVoVsJX3Q40KVb4k+b7yL9getunGwG+Bg3L7FbWbKJ0eBKJBmVgJ74DI1m3geFdGdeFmV0QRg7Od6w3P6CvEZOTRGKv7pRZeVH.jVi3NJlfWZQWI4hCEJhbbWelKUtXErWpx9Uvhd+X4hutHF9oCYaHfooVbD6PTCztO0hf5uWSjDdeJXE3afetDuT7+w3wljYWHfJ0AddgTEXcipqk6Bhz4nALmy3vgBnqV05MlP42xbUC.E0qVCbeC34imXOwFCwJ5uA0q53SIxHZJ0KTtaVrWxDJOIwelxdLtjNGNm3OhlmOkWNJUWGOYdAVA9bwEMBFIgNH.gkmHWLUoRwHnv.HjbQ5TkbxJmllVFAreU.ewudGAwd8iWjbd.oNw0cCoSoSlfSWF2nBdpRho1mLgxaUwoU.1vjnpnOGKmgybRI.JR1.xSHS.L0mp1TmlgkRy+SZbZ5oyGZt0upt3Np5KndkrHTAa3yqUWjFhnGsuyoFSlYInJt1SABJqvq75YUnSilZeqrTdk80YHlhNLdYiaRRs+v3HbBIkCLlWb4+.w4TI9MuIZyN9f8T2xQV75oCGE8RU5QVg+ivA+VyhdoP2NnTFWVAehoKhNwtlfSyXjaGjIF3AsROTy7T2CoNJ3kbeZoqGfj6AxQMb9t5Mh5TrZsIMZp6TKqwJPMTTajhuEdldsMVv2WnnGvKou4tPQfWttJOuopSessT36SkSUsdvA46Zik3iF1iJqfitGLyPna5jsnsu8VzlSP3D2EwvPAeWNScP.keayUfRZ8nammfJvTUTy7GjzLOtQGhA8ruucatnWcTDfyFJ53+nI5a1cahhj5FviPTBnRESm.VaSOGFwJdFgB1aSCOSIBhrcXffqiu0CeuA8x7ov99liyWbTygLWWeZGQHSSvYZB98lPy6ftrWQMm.D5gls7W9ylgi77XfDaa7W+JzE5qdLCz.Jq+.iAC+glFWJ.huG5Wu5ezJRuMUK6mu5uppkEBmEGq4pNhfQA5TYidvK8ngBWpdtnVR5OMhxcFiFZNk5pMcodjQ9pimfma9aMQ2blKXZOg6HehZxQ.0y8lnPyIlycomshCb0XSV4+s4B+Pg3ir6vTNClNFmaJXDJttKvXxzzep8NddvkSleJQqu6tYzYDbYnhw6uGQIiJ81ezvtPoiCEhNmS80uzaMm90y300zq0LPW3F5nEWA+RTVWu1JQY8TkngDGo3kNwuTqmW+ihj.XhG8oJEr2SuFm81rsMbuITH5xdI7MTP5uDbiwz2SiYXOqLC6Y0YXOqMC64Klg87kyvdd56bO5uZaiQJwv3WG.Ac1I5VUKqc3DnxJpJD8uFFgIfC
      
      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @Fortune
        last edited by

        @Fortune

        Is this a bug or ...?

        Yes, in your laf function. Also you probably want to use local look and feel instead of global for this.

        @ustk is our resident trigonometry expert, let's see if he can offer a solution :)

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

        Christoph HartC 1 Reply Last reply Reply Quote 1
        • Christoph HartC
          Christoph Hart @d.healey
          last edited by

          @d-healey The Trigonometry expert can stay at home - just use obj.valueNormalized then you don't need to bother about any range conversion at all:

          var endOffset = -startOffset + 2.0 * startOffset * obj.valueNormalized;
          
          FortuneF 1 Reply Last reply Reply Quote 2
          • FortuneF
            Fortune @Christoph Hart
            last edited by

            @Christoph-Hart That's the cure, Thank you!

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

            17

            Online

            1.8k

            Users

            11.9k

            Topics

            103.9k

            Posts