HISE Logo Forum
    • Categories
    • Register
    • Login

    Global Edit Range Feature for AudioWaveform?

    Scheduled Pinned Locked Moved General Questions
    4 Posts 3 Posters 302 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.
    • W
      weezycarter
      last edited by

      Hello. So I have an audiowaveform that updates visually with every key I press. (85 samples mapped out on the keyboard).
      I accomplished this by setting my sampleIndex to -1.
      This makes the audiowaveform dynamically respond to each key I press and it updates the waveform visually with every key I press.
      This is great but then it causes a Hassle when adjusting the start and end range.
      If I want to change the start point of my preset I have to press each key individually and adjust the start and end range points of each key.
      Is there a way for me to do a global range edit? So that when I make a range adjustment it applies to ALL samples?
      I want to do this while still keeping the audiowaveform's dynamic response. I still want the waveform to keep updating with every key press. That is fine.
      What I don't want is to have to adjust the start and end range for each key individually. I want to know if there is some global way to edit the start and end range.

      Thank you all!

      W 1 Reply Last reply Reply Quote 0
      • W
        weezycarter @weezycarter
        last edited by

        @weezycarter Anyone got any tips?

        DanHD 1 Reply Last reply Reply Quote 0
        • DanHD
          DanH @weezycarter
          last edited by

          @weezycarter

          See if you can adapt this into the script

          	for(a in Sampler11.createSelection(".*"))
              {
                  local r = parseInt(a.get(Sampler.SampleEnd));
                  local v = value / 10;
                  a.set(Sampler.LoopStart, v * r);
              }
          

          DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
          https://dhplugins.com/ | https://dcbreaks.com/
          London, UK

          StraticahS 1 Reply Last reply Reply Quote 1
          • StraticahS
            Straticah @DanH
            last edited by Straticah

            @DanH This is a great start how do i read-out the range handles from the waveform display since i need those to apply to your script?

            Or is there a new way in 2025 that allows for "enableRange" on the whole samplemap?

            fc69e02c-2db0-46f9-b70a-7ba325cca9f3-image.png

            building user interfaces in HISE :)
            web: www.vst-design.com

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

            20

            Online

            1.9k

            Users

            12.3k

            Topics

            107.4k

            Posts