grid drawing
Posted: Tue Nov 05, 2019 8:01 pm
Hi Tim, all,
There was some work earlier this year that changed the drawing of the raster in editors. I liked better the way it was drawn before as now lines are sometimes missing where it is actually possible to place a note (if we talk about the midi editors).
Through trial and error I discovered now that by adding the following magic value I can align it better with the way it was (so far as I have tested anyway).
But getting from there to finding the root cause I was hoping for some help... (as I'd rather not add a magic value unless necessary)
+++ b/muse3/muse/components/view.cpp
@@ -801,10 +801,11 @@ void View::drawTickRaster(
- const double rast_mapx = rmapx_f(raster);
+ /* const */ double rast_mapx = rmapx_f(raster);
int qq = raster;
int qq_shift = 1;
+ rast_mapx = rast_mapx * 4.0;
// grid too dense?
if (rast_mapx <= 0.01)
There was some work earlier this year that changed the drawing of the raster in editors. I liked better the way it was drawn before as now lines are sometimes missing where it is actually possible to place a note (if we talk about the midi editors).
Through trial and error I discovered now that by adding the following magic value I can align it better with the way it was (so far as I have tested anyway).
But getting from there to finding the root cause I was hoping for some help... (as I'd rather not add a magic value unless necessary)
+++ b/muse3/muse/components/view.cpp
@@ -801,10 +801,11 @@ void View::drawTickRaster(
- const double rast_mapx = rmapx_f(raster);
+ /* const */ double rast_mapx = rmapx_f(raster);
int qq = raster;
int qq_shift = 1;
+ rast_mapx = rast_mapx * 4.0;
// grid too dense?
if (rast_mapx <= 0.01)