Godtone (talk | contribs)
My Python 3 code: add default badness measures for patent edos (& assuming pure-octave tunings), for arbitrary sets of intervals
Godtone (talk | contribs)
m My Python 3 code: add strict_optimal_edo_sequence for only considering an edo better if it's better in terms of relative error
Line 1,332: Line 1,332:
best_edos.append(edo)
best_edos.append(edo)
return best_edos
return best_edos
# like optimal_edo_sequence, except:
# it only considers an edo better than a smaller edo if it does better in pure relative error.
# this gives much sparser but also much more interesting lists.
def strict_optimal_edo_sequence(ivs,up_to=311):
return optimal_edo_sequence(lambda edo: et_badness(ivs,edo,lambda rel_err,x,et2: rel_err**2 * iv_complexity(x)),up_to)


</syntaxhighlight>
</syntaxhighlight>