HISE Logo Forum
    • Categories
    • Register
    • Login

    getAttribute index for Pitch modulation LFO Semitones?

    Scheduled Pinned Locked Moved General Questions
    8 Posts 2 Posters 131 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.
    • GabG
      Gab
      last edited by

      Is it possible to enter the attribute for the semitones (see picture) like this :

      PitchshiftKnob1.setValue(PitchShift1.getAttribute());

      Frame 88.png

      it's for knobs updating when selecting a base64 preset.

      Thanks in advance!

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

        @Gab setIntensity()

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

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

          @d-healey Thanks! the index would be 0?

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

            @Gab Sorry I thought you wanted to set the value. To get the value use getIntensity();

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

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

              @d-healey It's to restore a knob value on the UI, do I put a specific number like getIntensity(1); or I directly input the value like (-12):?

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

                @Gab Just getIntensity() will give you the current value of the module's intensity.

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

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

                  @d-healey It's working but shows 6000 for some reasons (settings of min -1 max 1)

                  30653c36-9a92-44ff-850c-a3f2dbaf6125-image.png

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

                    @Gab You might need to convert the value using Engine.getSemitoneFromPitchRatio();

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

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

                    14

                    Online

                    1.7k

                    Users

                    11.8k

                    Topics

                    102.3k

                    Posts