HISE Logo Forum
    • Categories
    • Register
    • Login

    scriptAudioWaveForm and updating contents

    Scheduled Pinned Locked Moved General Questions
    5 Posts 3 Posters 146 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.
    • O
      Orvillain
      last edited by

      So I've done a super basic implementation of a waveform view in my pad sampler. All I'm doing is showing and hiding an AudioWaveform in the UI, based on a pad id integer.

      But I was wondering if it was possible to switch the processorId in a script, and then tell the AudioWaveform to update its contents.

      I did try this by calling AudioWaveform.updateContentPropertyInternal() and AudioWaveform.updateValueFromProcessorConnection()

      But I don't really know if those are the right calls or not, or how they work. I looked through all of the example projects, but none of them seem to demonstrate these.

      Any guidance on how to do something like this?

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

        @Orvillain Did you try, AudioWaveform.set("processorId", value); ?

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

        O 1 Reply Last reply Reply Quote 1
        • O
          Orvillain @d.healey
          last edited by

          @d-healey said in scriptAudioWaveForm and updating contents:

          @Orvillain Did you try, AudioWaveform.set("processorId", value); ?

          Yeah I did, and it does update it based on a follow up AudioWaveform.get('processorId') call - but the UI component doesn't seem to update, and still shows data from the previous processorId. When I compile the script, then the UI updates one time... but not on subsequent calls to the set method.

          I figured I needed to call some kind of update() function after setting the processorId, but no such luck so far.

          clevername27C 1 Reply Last reply Reply Quote 2
          • clevername27C
            clevername27 @Orvillain
            last edited by

            @Orvillain Did you ever discover the magic words, here?

            O 1 Reply Last reply Reply Quote 0
            • O
              Orvillain @clevername27
              last edited by

              @clevername27 Oh lord. I'll have to check! I haven't worked on this project for a while and cannot remember. The last thing I remember doing was writing a custom sample playback node in scriptnode, managing to connect that to an AudioWaveform view. But I can't remember if I just added a distinct AudioWaveform view for each individual sampler or not.

              Will report back!

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

              50

              Online

              1.7k

              Users

              11.7k

              Topics

              102.1k

              Posts