[ubuntu-studio-users] PS: BPM to ms calculation by command line

Ralf Mardorf ralf.mardorf at alice-dsl.net
Fri Feb 3 06:21:42 UTC 2017


My apologies,

the "calc"'s "int" option doesn't round half away from zero.
Actually I used "int", but forgot the parentheses...

[rocketmouse at archlinux ~]$ calc "int((60000/120)*4*(1/24))"
	83
[rocketmouse at archlinux ~]$ calc "((60000/120)*4*(1/24))"
	~83.33333333333333333333
[rocketmouse at archlinux ~]$ calc "((60000/120)*4*(1/1024))"
	1.953125
[rocketmouse at archlinux ~]$ calc "int((60000/120)*4*(1/1024))"
	1

...I now decided to remove it entirely.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bpm2ms
Type: application/octet-stream
Size: 505 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-studio-users/attachments/20170203/9f050a50/attachment.obj>


More information about the ubuntu-studio-users mailing list