Godtone
Joined 17 December 2020
→My Python 3 code: added a function for calculating the signed error of the pval mapping of an interval in a rank one temperament |
→My Python 3 code: important correction for getting subgroups to work correctly |
||
| Line 548: | Line 548: | ||
return sum([ r[i]*round(steps(p[i],et2)) for i in range(len(r)) ]) | return sum([ r[i]*round(steps(p[i],et2)) for i in range(len(r)) ]) | ||
def consistent_err(x, et2, p=None): | def consistent_err(x, et2, p=None): | ||
return pval(x if type(x)==list else fact(x), et2, p) - steps(as_float(x), et2) | return pval(x if type(x)==list else fact(x,p), et2, p) - steps(as_float(x,p),et2) | ||
</syntaxhighlight> | </syntaxhighlight> | ||