HISE Logo Forum
    • Categories
    • Register
    • Login

    Slow down the scrolling speed oscilloscope display?

    Scheduled Pinned Locked Moved General Questions
    1 Posts 1 Posters 24 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.
    • M
      mehmethand
      last edited by mehmethand

      This code is working, but I want to slow down scrolling speed. How I can I do this?

      const var Oscillator = Synth.getEffect("Oscillator");
      
      const var dps = Synth.getDisplayBufferSource("Oscillator");
      
      const var vp = dps.getDisplayBuffer(0);
      
      const var properties = {
          "BufferLength":65536,
          "NumChannels": 2
      };
      vp.setRingBufferProperties(properties);
      
      visualPanel.startTimer(50);
      
      visualPanel.setTimerCallback(function()
      {
      
      		this.data.p = vp.createPath(
      					    this.getLocalBounds(10),
      					    [0, -1, -1.0, 1.0],
      					    0.0 
      					  );
      		this.repaint();
      		
      });
      
      
      visualPanel.setPaintRoutine(function(g)
      {
      	g.setColour(Colours.white);
      
      	if(isDefined(this.data.p))
      		g.fillPath(this.data.p, this.getLocalBounds(10));
      }); 
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      22

      Online

      1.9k

      Users

      12.2k

      Topics

      106.7k

      Posts