Slow down the scrolling speed oscilloscope display?
-
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)); });