HISE Logo Forum
    • Categories
    • Register
    • Login

    control the root in the sampler

    Scheduled Pinned Locked Moved General Questions
    8 Posts 2 Posters 526 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.
    • B
      BWSounds
      last edited by

      Is it possible to control the root in the sampler module via script?

      Looked around but didn’t come across anything.

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

        @BWSounds Do you mean set the root note of an individual sample?

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

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

          @d-healey yes, it would be 1 sample in my case.

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

            @BWSounds https://forum.hise.audio/topic/64/fun-with-regex/8?_=1692097978767

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

            B 2 Replies Last reply Reply Quote 0
            • B
              BWSounds @d.healey
              last edited by

              @d-healey thank you, i'll look into it!

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

                @d-healey
                I have this code, but its only going from C-2 - G8... nothing in between.

                inline function onrootControl(component, value)
                {
                    for(s in Sampler1.createSelection(".*"))
                    {
                        local R = (s.get(Sampler.Root));
                        s.set(Sampler.Root, value * R);
                    }
                };
                
                    
                Content.getComponent("root").setControlCallback(onrootControl);
                
                
                d.healeyD 1 Reply Last reply Reply Quote 0
                • d.healeyD
                  d.healey @BWSounds
                  last edited by

                  @BWSounds Why are you multiplying the value by the current root note?

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

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

                    @d-healey
                    oh man, im trippin... thanks

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

                    35

                    Online

                    1.8k

                    Users

                    12.1k

                    Topics

                    105.1k

                    Posts