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

2017-02-02 Thread Ralf Mardorf
My apologies, the "calc"'s "int" option doesn't round half away from zero. Actually I used "int", but forgot the parentheses... [rocketmouse@archlinux ~]$ calc "int((6/120)*4*(1/24))" 83 [rocketmouse@archlinux ~]$ calc "((6/120)*4*(1/24))" ~83.

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

2017-02-02 Thread Ralf Mardorf
On Fri, 3 Feb 2017 06:01:21 +0100, Ralf Mardorf wrote: >[weremouse@moonstudio ~]$ bpm2ms | head -9 >(6ms/120BPM)*4*(1/1)= 2000ms >(6ms/120BPM)*4*(3/4)= 1500ms >(6ms/120BPM)*4*(1/2)= 1000ms >(6ms/120BPM)*4*(1/4)= 500ms >(6ms/120BPM)*4*(1/8)= 250ms >(6ms/120BPM)*4*(1/12)=