e-lie / renardo

Livecoding music with simple Python code (Modernized FoxDot Fork)
https://renardo.org
Other
36 stars 3 forks source link

Add freqtomidi function #10

Open e-lie opened 5 months ago

e-lie commented 5 months ago
def freqtomidi(frequency):
    return int(12 * (math.log(frequency/220)/math.log(2)) + 57)