HISE Logo Forum
    • Categories
    • Register
    • Login

    Image strips with LAF Rotary Sliders

    Scheduled Pinned Locked Moved General Questions
    10 Posts 3 Posters 566 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

      I know this is completely against to the Look and Feel purpose, but is it possible to use the Look and Feel with the image strips? Maybe obj.filmstripimage and obj.numberofstrips can be added? Or any idea?

      Blending a knob image with vectors in one place would be really fast and useful rather than using separate panels.

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

        @harris-rosendahl You can load images in LAF (https://docs.hise.audio/scripting/scripting-api/scriptlookandfeel/index.html#loadimage) and I assume it's possible to just draw a section of the image, if so you can achieve what you want. g.drawImage() has offset parameters so you can draw just part (1 frame for example) of the image at a time.

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

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

          @d-healey Thank you so much for the suggestion.
          It's a shame that partly frames can be used, but I will try to use it.
          By the way, whole filmstrip would be awesome.

          d.healeyD Matt_SFM 2 Replies Last reply Reply Quote 0
          • d.healeyD
            d.healey @A Former User
            last edited by

            @harris-rosendahl

            It's a shame that partly frames can be used, but I will try to use it.
            By the way, whole filmstrip would be awesome.

            I think you misunderstood. You can load the entire filmstrip and use the offset just to show one frame at a time based on the knob's value - to animate it.

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

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

              @d-healey said in Image strips with LAF Rotary Sliders:

              I think you misunderstood. You can load the entire filmstrip and use the offset just to show one frame at a time based on the knob's value - to animate it.

              Oh, my bad :) I will check it out soon, very excited. Thank you so much again.

              1 Reply Last reply Reply Quote 0
              • Matt_SFM
                Matt_SF @A Former User
                last edited by Matt_SF

                HiseSnippet 1199.3ocsW0raaaDDdorYpkRSQCPt0hhE5jTfhhnc9o.FEV1xREpw+nZ4FzhhBiUjKE2ZxcIVtx1pAFnWJPeExs9XzdrnOB8EH26kh9BjNKIkHcrbrrZCOXnYm4a2uY1YlcbOovlFEIjHihGNNjhLdey9i4JuVdDFG0cajwGativl3uylcvQ9LGpDeJS4g8DmPknsFGRhhnNHCik9bMBihKih+96M1h3S31zrkPnmKX1zcXALU1p8Z9LlueGhC8PVPNqeTyt1BdKguXDvtkLafBI1GSFR2inMqfIx3VscXJgruhnnQHik2R3Ltum3Tdh8OmEwF3S0BVn9vFkrbGguilw5UQs7X9N8lDEhPvtzKKlrTRL4dl6xbXSWOK17gwJvYHxGOLJbQ5szEnmUd50HG8lAkLxQokSnzcM6aKYgpLMZ9baytbEU5RfvddpjXKpv+Tvrk.rfqpGPNl1QBBSQT4IMZTCC+o55kJAg9HE9DhDOTF9LtX.9yve6DrCopVhfPAGDpTVq0pb0Zkvy56pwr5BfYsxU+toriE.YC.ulXtsjBQ5jrUg33M4NcnT+Jf6DaYceAwoq9WUJ+hdGr+Wzt0gG0Y+c1t8AmmXPHeX4Z3xrfgk0w.WgDWY.lwmDCphGTOhptzIDiViHYajzgrHHn1YD2VwD7JkcjjSOPnHxw8iKgfSwchxg0vhAee0RunTQc3l.NDHWm.Ny5IKEw9AsaZ0nw53hO7gIxBWrUZD.HX3YIl5Jghin7FyGEL.pYAyS08.qREKUbXcMmRiFZGtFlTCC2+6RTd0khQbmJZZbBweDcOgLf3CmpC99S1l6GSipZu97pqWbh6fE78DJ597JwdToyKgeSUttyTm9VTJ78oxYpV2bP91.VIwSqgio7TCgJlKVFZd0kg46RXmjTkyPAuKmo1OjxupdGnzLQnjcoTVA+REWv9AoErII.HFTW9dlwkNnXBm13C+S+0uuAZtAu5E.m7M2fWaFf+ptaSTDcOmTeA7uPpTwzgNisom.MvS5.UzbaZzwJQHzGdZUJr0Wq6dFbGXzANqwYmrSy.liiOsmHhouVyz7pMNk4n7xV3aZ5QYC8T4WAcCHvpID30yEA9kW9xe6lRfaesg8XB7qFyWD3m+ilyAABDNvYdKy32PCHmkA+OaB8hB6CEq4ebNZjqKSyCSbPDZFwu6jR+cHCn9wreEy3eOyKvWEdYRpnmAa2GYd.gCMoZTudcKcy89GSOEZP0n9iQSbijcKOIV4ZHQ7k3jyVz7+FQrPAi7ULeFGNRiBuQv8G+xl2DlMya2qlUeRNVsZC3aBsrzBWKwt7fAvHIBmQ9D0EmSQObVpBcxU9gCzC.vgjtw4yO9ea3k4kh20rGSY6MaNVXFbD5Q8tfioi7cGy1ttTaUFAW1ryW+tY9NzAhQJFeH7zqLtlbuQA8godsovoy4Te8qVFEzUHIxMzx5HPeJ2IV30vWpRKsrQpRqIJgdB1RwQ1IuMnGpbk3U.Nwimmtn4tZY7zmiLMaTGR.g4aOx1V69O.dxa1XVcAvr1Bf4QK.lGu.XdxBf4oK.lO8shQ+uVr4HkHHob.VnW63GmMLZyIPlUbVH5ecmEeJJ
                

                EDIT : added info about the knob's ranges. To use this snippet you'll obviously need to use your own image.

                @d-healey @harris-rosendahl However with draw.image, you can only use values between 0...1.
                Chaging the skew value or using any other value range, even by using obj.valueNormalized messes up the animation. Or am I missing something ?

                Develop branch
                Win10 & VS17 / Ventura & Xcode 14. 3

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

                  @Matt_SF I've just tried this snippet, the animation messes up even between 0..1 here.

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

                    @harris-rosendahl The offset is in pixels. I'm putting together an example now.

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

                    d.healeyD 1 Reply Last reply Reply Quote 0
                    • d.healeyD
                      d.healey @d.healey
                      last edited by d.healey

                      Here's my example, almost exactly the same as @Matt_SF's

                      LAF Knob Test.zip

                      Peek 2022-04-06 15-53.gif

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

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

                        Oh, thank you so much @d-healey it works great in this example! Now this image strip can be blended with vector graphics of the LAF rotary sliders 👍

                        1 Reply Last reply Reply Quote 0
                        • d.healeyD d.healey referenced this topic on
                        • First post
                          Last post

                        45

                        Online

                        1.7k

                        Users

                        11.7k

                        Topics

                        101.9k

                        Posts