Skip to content

Instantly share code, notes, and snippets.

View embatbr's full-sized avatar

Eduardo Tenório embatbr

View GitHub Profile
@embatbr
embatbr / chromatic_scale.py
Created May 30, 2018 03:22
Getting chromatic scale from diatonic scale (and also frequencies for all notes - with differences between flats and sharps).
"""From diatonic to chromatic. Also, flat and sharp notes.
Take notice that flats and sharps are not actually equal.
"""
diatonic = {
'C': 264,
'D': 297,
'E': 330,