HISE Logo Forum
    • Categories
    • Register
    • Login

    End point Audiowaveform

    Scheduled Pinned Locked Moved Unsolved General Questions
    1 Posts 1 Posters 67 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.

      Link Preview Image

      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"); 
      
      
      });
      
      
      
      
      1 Reply Last reply Reply Quote 0
      • T tiesvdam marked this topic as a question on
      • First post
        Last post

      24

      Online

      1.8k

      Users

      11.9k

      Topics

      104.0k

      Posts