mod1 = new Gibberish.Sine(4, 0);
mod2 = new Gibberish.Sine(.1, 50);
mod1.amp = mod2;
sin = new Gibberish.Sine( Add(mod1, 440), .25 ).connect()
..............
Everything is set up (JXGraph and Gibberish libraries are both loaded and being
used. The problem is that when JXGraph interface mouse events occur (because of
dragging a slider for instance), the sound becomes very choppy indicating that the
interactive graphics w/ events and Gibberish are interfering with each other to compete
for cycles and memory. In a forum on Gibberish, Charlie suggested that Gibberish works
well in "canvas". So, I made sure that in front of each initBoard invocation, the render is set
to 'canvas' as follows:
JXG.Options.renderer = 'canvas';
board2 = JXG.JSXGraph.initBoard('jxgbox2', {
boundingbox: [-.5, 32, 25, -2.5],
axis: true,
grid: false,
showCopyright: false,
showNavigation: false,
});
...................
However, this is not working and the sound is interrupted, with static noise, sometimes
without any mouse events. But once mouse events are generated, the sound is noisy.
Has anyone else experienced real-time event issues with JSXGraph, or overcome these
issues with a stopgap solution?
board.suspendUpdate();
board.unsuspendUpdate();