HISE Logo Forum
    • Categories
    • Register
    • Login

    Audioaveform and audiowaveform

    Scheduled Pinned Locked Moved General Questions
    8 Posts 3 Posters 74 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.
    • T
      tiesvdam
      last edited by

      Hi everyone,

      I’m working with an audio waveform that’s linked to a sampler, but when I play the sound, it doesn’t loop. I’ve enabled the loop points in the sampler, and I do have moving start and end points, but I also want these to update and control the loop functions dynamically. Despite this, the sound still doesn’t loop. I’ve also tried to fix it with scripting, but no luck so far.

      I’ve already received some help through the forum, but I still haven’t been able to solve the problem.

      Could someone please help me figure out what’s going wrong?

      Thanks in advance!!

      (Download link minimal project file) https://we.tl/t-Or52Z3hT4J

      //AudioWave LAF
      const var laf = Content.createLocalLookAndFeel();
      
      const var AudioWaveform1 = Content.getComponent("AudioWaveform1");
      AudioWaveform1.setLocalLookAndFeel(laf);
      
      
      
      laf.registerFunction("drawThumbnailRange", function(g, obj) {
          
          if (obj.rangeIndex > 0)
          	return;
      
          g.fillAll(0);
          
          // Draw playhead position
          var x = obj.position * obj.area[2];
          
          g.setColour(0xFFFF5400);
          g.drawLine(x, x, 0, obj.area[3], 10.0);
          
          g.setColour(0xFFFFFFFF);
          g.drawLine(x, x, 0, obj.area[3], 1.5);
          
          // Draw start point marker
          var startPointX = obj.area[0];
          g.setColour(0xFFFF5400);
          g.drawLine(startPointX, startPointX, 0, obj.area[3], 10.0);
          g.setColour(0xFFFFFFFF);
          g.drawLine(startPointX, startPointX, 0, obj.area[3], 1.5);
          g.setFont("regular", 12);
          g.setColour(Colours.white);
          g.drawAlignedText("Start", [startPointX - 0, 5, 40, 20], "centred");  // Tekst voor startpunt
          
          // Draw end point marker
          var endPointX = obj.area[2];
          g.setColour(0xFFFF5400);
          g.drawLine(endPointX, endPointX, 0, obj.area[3], 10.0);
          g.setColour(0xFFFFFFFF);
          g.drawLine(endPointX, endPointX, 0, obj.area[3], 1.5);
          g.setFont("regular", 12);
          g.setColour(Colours.white);
          g.drawAlignedText("End", [endPointX - 40, 5, 40, 20], "centred");
      });
      
      
      laf.registerFunction("drawThumbnailPath", function(g, obj) {
          g.fillAll(obj.bgColour);
          
          var a = obj.area;
          g.setGradientFill([0xFFFF5400, a[0], a[1], 0xFF8d478d, a[2], a[3]]);
          g.drawPath(obj.path, obj.area,1.5);
          g.fillPath(obj.path, obj.area);
      });
      

      Scherm­afbeelding 2025-05-15 om 11.36.21.png

      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @tiesvdam
        last edited by Lindon

        @tiesvdam you dont have looping turned on in your sampler. Once I turn it on the sampler loops.

        68604f2d-92cc-4054-92cf-9b5054391b36-image.png

        HISE Development for hire.
        www.channelrobot.com

        1 Reply Last reply Reply Quote 0
        • T
          tiesvdam
          last edited by

          I did that but still not looping. :(

          LindonL 1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @tiesvdam
            last edited by Lindon

            @tiesvdam its looping here.you have to turn it on for each wav file...

            HISE Development for hire.
            www.channelrobot.com

            T 1 Reply Last reply Reply Quote 0
            • T
              tiesvdam @Lindon
              last edited by

              @Lindon said in Audioaveform and audiowaveform:

              @tiesvdam its looping here.you have to turn it on for each wav file...

              It's looping now, perfect. However, the loop points are being pushed closer to each other by the sample's start and end points but are not updating back when you move the start and endpoint!

              i think that I'm not coding the part for the loopstart and end right. do you know something about that?

              Scherm­afbeelding 2025-05-15 om 15.18.57.png

              T LindonL 2 Replies Last reply Reply Quote 0
              • T
                tiesvdam @tiesvdam
                last edited by

                @tiesvdam Scherm­afbeelding 2025-05-15 om 15.26.17.png

                1 Reply Last reply Reply Quote 0
                • LindonL
                  Lindon @tiesvdam
                  last edited by

                  @tiesvdam said in Audioaveform and audiowaveform:

                  @Lindon said in Audioaveform and audiowaveform:

                  @tiesvdam its looping here.you have to turn it on for each wav file...

                  It's looping now, perfect. However, the loop points are being pushed closer to each other by the sample's start and end points but are not updating back when you move the start and endpoint!

                  i think that I'm not coding the part for the loopstart and end right. do you know something about that?

                  Scherm­afbeelding 2025-05-15 om 15.18.57.png

                  nope, sorry never tried it...

                  HISE Development for hire.
                  www.channelrobot.com

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

                    Slightly off topic question, but doesn't the sampler kill active voices and cause an audio dropout when you adjust a samples parameters like the start/end for the sample or the loop region???

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

                    27

                    Online

                    1.7k

                    Users

                    11.7k

                    Topics

                    102.3k

                    Posts