Skip to content

Commit

Permalink
Print cp difference in cents
Browse files Browse the repository at this point in the history
  • Loading branch information
jurihock committed Mar 31, 2024
1 parent 752600b commit 36ed838
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sandbox/tuning.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ def main():
histweights = weights / np.max(hist[0])
plotweights = weights * np.ptp(cp2) / np.max(weights) + np.min(cp2)

print(f'a4 orig {cp0} est {cp1}')
cents = round(1200 * np.log2(cp1 / cp0))

print(f'a4 orig {cp0} est {cp1} cents {cents}')

plot.figure(f'{test} hist')
plot.hist(values, bins=edges, weights=histweights)
Expand Down

0 comments on commit 36ed838

Please sign in to comment.