Closed boxfish closed 7 years ago
Looks like this confirms what @boxfish reported. Based on modularscale.com, modular scale is calculated as base * Math.pow(ratio, steps)
.
Happy to make a PR if you'd like.
Yes please, PR very welcome!
@mxstbr I just made a PR for this one and another bug when steps is 0, can you review please #149
Thank you for your work :+1:
Closed by #149. Thanks @brikou!
Given default base (
1em
) and ratio (perfectFourth
), modularScale(2) should return1.77689em
, but currently it is returning2.666em
.It seems the current output is calculated by
base * ratio * steps
, but it should bebase * Math.pow(ratio, steps)