HISE Logo Forum
    • Categories
    • Register
    • Login

    LAF of End point Audiowaveform

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 70 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

      I'm working on the final things for my plugin. I only have one issue with the audio waveform—I want the endpoint to have the same design as the start point, but I don't know how to reference the endpoint. I created the following script for my start point.

      laf.registerFunction("drawThumbnailRange", function(g, obj) {
      	
      
          g.fillAll(0);
             
          var x = obj.position * obj.area[2];
          
          g.setColour(0xFFFF5400);
          g.drawLine(x, x, 0, obj.area[3], 10.0);  // Teken een lijn van boven naar beneden met breedte 10
          
          g.setColour(0xFFFFFFFF);  // Zet de lijnkleur naar wit (#FFFFFF)
          g.drawLine(x, x, 0, obj.area[3], 1.5);  // Teken nog een lijn met breedte 1.5
          
          g.setColour(0xffFFFFFF);
              g.setFont("regular", 12.0);
              g.drawAlignedText("Start Pt",[x + 10, x, 200, 20], "left"); 
      
      
      });
      
      

      Link Preview Image

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

        @tiesvdam That the same as this? https://forum.hise.audio/topic/12151/end-point-audiowaveform

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

        T 1 Reply Last reply Reply Quote 1
        • T
          tiesvdam @d.healey
          last edited by

          @d-healey Yes sir

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

          19

          Online

          1.7k

          Users

          11.8k

          Topics

          102.6k

          Posts