Forum

    • Register
    • Login
    • Search
    • Categories

    Update AudioWaveform after loading new sample map

    Scripting Forum
    2
    3
    146
    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 Kolb
      Casey Kolb last edited by

      I've tried a couple things here but they all result in crashing for the compiled plugin. Hoping to find some leads if anyone else has some ideas!

      Essentially, you can link an AudioWaveform component to a sampler, and it will display the waveform for the set sample index on compile, but if you change the sample map after compiling, the waveform won't update.

      Note: You can set the sample index to -1, but then it won't update the waveform until a note is pressed and will update the waveform with every new note press, which is not the behavior I'm looking for.

      I've tried setting the sample index to 1 before preload and then back to 0 post-preload, but this results in consistent crashing. I also dug through the API calls in the cpp and don't see any other special calls for the AudioWaveform, so I'm a bit lost here.

      Thanks!

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

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

        @Lunacy-Audio just run into this problem as well!

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

          Christoph fixed the issue a few months back. I asked about it in another post here.

          It should be fixed in the newest commit of scriptnode.

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

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

          18
          Online

          1.1k
          Users

          6.7k
          Topics

          62.1k
          Posts