Fundamental icon indicating copy to clipboard operation
Fundamental copied to clipboard

Scope Can Go Absolutely Bananas For Certain Values

Open Miserlou opened this issue 8 years ago • 3 comments

I'm not sure if this is an intended behavior or not, but for absolutely massive/tiny values, Scope will do this:

screen shot 2017-11-25 at 8 37 17 pm

Of course, the real bug is in my module, but it seems like scope should limit all drawing to within the display area.

Miserlou avatar Nov 26 '17 01:11 Miserlou

Your graphics card probably doesn't support scissoring, because I'm using nvgScissor at https://github.com/VCVRack/Fundamental/blob/master/src/Scope.cpp#L168 and it doesn't do that on my computer.

  1. What do you mean "tiny values"? Shouldn't those appear approximately as a straight line at 0?

  2. If you take a normally behaving sine wave and amplify it so that the extremes are just past the scope display, does it clip properly? Perhaps what you are seeing are the caps of the lines, which are maybe not clipped with nvgScissor. But it seems like they do on my machine.

  3. Do the lines extend past the entire module to the next rack row?

AndrewBelt avatar Nov 26 '17 04:11 AndrewBelt

I've experienced this behaviour too (on OSX) (in some extreme huge value of filter oscillations) and I'm sure the scissoring works I think is a bug of nanovg

  1. don't know the values, happened when debugging
  2. scissor ok
  3. yes (when happened)

antoniotuzzi avatar Nov 26 '17 08:11 antoniotuzzi

If it it wasn't for the large values on scope I would not have been able to narrow down an issue I was having!

Coirt avatar Mar 15 '19 04:03 Coirt