Dotting a note lengthens it by 1/2. In the code, the duration parameter is
actually a divisor of the length of the note (e.g. 1 is a whole note but 4
is a quarter note (1/4 the length)), so dotting should divide the duration
by 1.5 instead of multiplying.
Dotting a note lengthens it by 1/2. In the code, the
duration
parameter is actually a divisor of the length of the note (e.g. 1 is a whole note but 4 is a quarter note (1/4 the length)), so dotting should divide theduration
by 1.5 instead of multiplying.