HISE Logo Forum
    • Categories
    • Register
    • Login

    When automating knobs drawing line is slow

    Scheduled Pinned Locked Moved Scripting
    3 Posts 2 Posters 248 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.
    • D
      darkInteger
      last edited by

      Hi guys!

      I have some knobs as faders, i connect their needle with drawing lines for cosmetic purposes.
      In a built vst everything is working fine if i grab the faders withbthe mouse, the lines follow the needles as supposed but if i automate the faders the drawing the lines are getting slow like they are behind the needle.
      What is up whit this?

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

        @darkInteger Post a minimal snippet that demonstrates the issue.

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

        D 1 Reply Last reply Reply Quote 0
        • D
          darkInteger @d.healey
          last edited by

          @d-healey here is the drawing function, I call this when I move the knobs.

          function connect()
          {
          	bg.setPaintRoutine(function(p)
          	{
          		p.setColour(0xFF6F6F6F);
          		
          		p.drawLine(oscFreq.getValueNormalized() * 114 + 27, oscFreqSlide.getValueNormalized() * 114 + 27, 105, 155, 1);
          		p.drawLine(oscFreqSlide.getValueNormalized() * 114 + 27, oscFreqMacro.getValueNormalized() * 114 + 27, 155, 205, 1);
          		
          		p.drawLine(delayTime.getValueNormalized() * 114 + 27, delayTimeSlide.getValueNormalized() * 114 + 27, 265, 315, 1);
          		p.drawLine(delayTimeSlide.getValueNormalized() * 114 + 27, delayTimeMacro.getValueNormalized() * 114 + 27, 315, 365, 1);
          		
          		p.drawLine(freqShifter.getValueNormalized() * 114 + 27, freqShifterSlide.getValueNormalized() * 114 + 27, 425, 475, 1);
          		p.drawLine(freqShifterSlide.getValueNormalized() * 114 + 27, freqShifterMacro.getValueNormalized() * 114 + 27, 475, 525, 1);
          		
          		p.drawLine(wideFreq.getValueNormalized() * 114 + 307, wideFreqSlide.getValueNormalized() * 114 + 307, 105, 155, 1);
          		p.drawLine(wideFreqSlide.getValueNormalized() * 114 + 307, wideFreqMacro.getValueNormalized() * 114 + 307, 155, 205, 1);
          		
          		p.drawLine(width.getValueNormalized() * 114 + 307, widthSlide.getValueNormalized() * 114 + 307, 265, 315, 1);
          		p.drawLine(widthSlide.getValueNormalized() * 114 + 307, widthMacro.getValueNormalized() * 114 + 307, 315, 365, 1);
          		
          		p.drawLine(pan.getValueNormalized() * 114 + 307, panSlide.getValueNormalized() * 114 + 307, 425, 475, 1);
          		p.drawLine(panSlide.getValueNormalized() * 114 + 307, panMacro.getValueNormalized() * 114 + 307, 475, 525, 1);
          	});
          }
          
          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          46

          Online

          1.7k

          Users

          11.7k

          Topics

          102.1k

          Posts