17 lines · 331 B · Python
RawDownload
#! /usr/bin/env python from aubio import miditofreqfrom numpy import arange upsampling = 100.midi = arange(-10, 148 * upsampling)midi /= upsamplingfreq = miditofreq(midi) from matplotlib import pyplot as plt ax = plt.axes()ax.semilogy(midi, freq, '.')ax.set_xlabel('midi note')ax.set_ylabel('frequency (Hz)')plt.show()

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t