cent view in roll and score object always rounding up

Discussions, advice, bug reports and much more about the "bach" environment.
Post Reply
gratkowski
Posts: 41
Joined: Tue Aug 21, 2012 12:50 pm

cent view in roll and score object always rounding up

Post by gratkowski » Wed Feb 19, 2020 4:54 pm

Hello, the cent view in the roll object seems always to round up. Wouldn't it be more appropriate to to round down it the float is smaller then 0.5? I'm working with some spectral harmonies and find it confusing having the 11th harmonic displayed with -48 cent, the 13th as +40 (instead of +41) and the 7th -32 (inst. of 31).
Any way for a workaround?

Thanks

Frank

gratkowski
Posts: 41
Joined: Tue Aug 21, 2012 12:50 pm

Re: cent view in roll and score object always rounding up

Post by gratkowski » Wed Feb 19, 2020 5:17 pm

Actually the roll cent display behaves even more weird.

A chord with these cents: [ 6386.313714 6701.955001 6968.825906 7403.910002 7751.317942 8040.527662 ]
with show -14, +2, +68 (wrong even if rounded up), +4, -48 (should be -41) and -60 (should be -51).

I attaches a simple example using a score object - same problem.

best

Frank

<pre><code>
----------begin_max5_patcher----------
1667.3oc6a01bahCD9yN+JX3y4xII.Abe69czoiGYPNVsxRLfrc70o+2OIwK
FLBONgbocxgaCFzJzp8YW8.Kl8GOrxei7EZku2e48EuUq9wCqVYaxzvpliW4
um7RFmTY6l+lCJkT3+XsHVtsQ4lu8GAssUPJI6oJZ4ZpfrgSM8.zHSbXu7fh
SU1AC1zZcSpyEz5Yh+Fh3Yeuu1MfprcLwyqKoYp5dDG8D3QuDrYKJrca2YnU
CSzoESa+7gGLad7NsRA8j1lZsHE8EUswSx18zoRRgGpUFmInYxCBaGPsy3RZ
EUnHJlTr1YO5AbPXh+qCdtIzf.AF7.hPluvolsAQSBNMMVQNRyWqmN5wYMQo
JYZGccjwpNLZk+QZYk1lzCwFZoQXB.B.VgVD90hy6oUUjmoi.ZL..dxCGn8v
AvfXXnGNF.eJMJB.fZiBm7TBJJEf8hC01aJzKNNBp6abZHROoBAOEghwX2to
PGNAz6pS.hsAnAwVWQj8.LZJm.5Mfb1PwpLY4.vKSxkk0SAfQmW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5iL8qNzjrEJ+kq0MFecmxFZIks4CstS
YCsjx17gV2orgVRYa9Pq6T1PKorMen0cJankT1lMzF39mPK.r.syAZ6OV62q
6S03pUPpn8+t2orSVlOXm9+du0uX.seOoivwaQ9GjBC9nUX3GsBi9HU3Eo6I
kemVdUVl6Y4rrc56smxGGH2O6z1Rl4hz1jpFKY3lvZH9h3qlWb5QJugg.Ndb
FHd3ZU3eF2s+c9pnDEiChRBezVIZ8eeH.u8QFFDDl.hgleq.iJRvH8wuqp.A
vHbRPBLrVEogAn2aqHIJBFARSqUAFnsGPv6pJBgn.HVOzMp.hPou2VANQ6iC
SSP0p.Agolm506nJBBSSg5Kcfazf1aDkdCMz+fqJ6tQ0tVWwj9EOn2W6U.m1
SwuW4M1VOm1hLzz9vp5rRdnLqsJ55JEUuK0YXtl8fIpym+RuBFzGM0Scs64t
XmuWUGbGJFV2mYoGaIOeWZBMWMcWf40ymN3DLxwRJJZJXRqlM5UyW+s5ptM4
Q6gLQ8g1xyTy9eopZsk+slsNam9NIxTGJqKF0Wvg90mp9FoJEGXMtRsE+fod
YOyuNXpqNV297ScuZrMHSIUnrmisCMMuW2CVqI0ZL1xI1VBqEM03ospie3mO
7u7z9ZHC
-----------end_max5_patcher-----------
</code></pre>

danieleghisi
Site Admin
Posts: 1347
Joined: Fri Dec 03, 2010 1:25 pm

Re: cent view in roll and score object always rounding up

Post by danieleghisi » Sat Feb 22, 2020 6:20 am

Hi, In general, cents are displayed as rounded DOWN.
The reason why you have quirks is because your tonedivision is "wrong": it's set to 100, but if you want cent precision you need at least 200 (1 tone = 200 cents :-)
You can evan go further (say, set it to 2000) if you want even better precision.

Post Reply