HISE Logo Forum
    • Categories
    • Register
    • Login

    Reliable way to refresh waveform when changing sample map

    Scheduled Pinned Locked Moved Scripting
    4 Posts 2 Posters 269 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.
    • Casey KolbC
      Casey Kolb
      last edited by Casey Kolb

      Hey guys,

      The way I'm updating my waveforms connected to samplers is a bit hacky at the moment, but I can't seem to find a reliable way to refresh the waveform when a sampler has changed its sample map.

      Right now I'm just setting the sampleIndex to a super high number like 10000 and then back to 0 after so many milliseconds in order to display the first sample in the sample map. I don't want to set the sample index to -1 which switches the waveform on each note press , as this is not the behavior I'm looking for. The method I'm using works like 95% of the time, but occasionally it won't update the visual waveform. Any ideas? Thanks!

      Casey Kolb
      Founder & CEO of Lunacy Audio
      Composer | Producer | Software Developer

      1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart
        last edited by

        Actually the waveform should update itself without any hacks required. I've just pushed a quick fix, please check whether it works.

        Casey KolbC 1 Reply Last reply Reply Quote 1
        • Casey KolbC
          Casey Kolb @Christoph Hart
          last edited by

          @Christoph-Hart Awesome, will check now!

          Casey Kolb
          Founder & CEO of Lunacy Audio
          Composer | Producer | Software Developer

          1 Reply Last reply Reply Quote 0
          • Casey KolbC
            Casey Kolb
            last edited by

            Yup, this seems to be working thanks!

            Casey Kolb
            Founder & CEO of Lunacy Audio
            Composer | Producer | Software Developer

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

            50

            Online

            1.7k

            Users

            11.7k

            Topics

            102.1k

            Posts