Skip to content

Module pippi.frequtils

Variables

MIDI_NOTES
NOTES

Functions

fit

def fit(
    freq,
    low=20,
    high=20000,
    get_change=False
)

fit the given freq within the given freq range,

by transposing up or down octaves

fts

def fts(
    freq
)

key_to_freq

def key_to_freq(
    key,
    octave,
    ratios,
    name=None
)

mtf

def mtf(
    midi_note
)

ntf

def ntf(
    note,
    octave=None,
    ratios=None
)

Note to freq

nti

def nti(
    note
)

Note to index

returns the index of enharmonic note names or False if not found

ntm

def ntm(
    note,
    octave=None
)

nts

def nts(
    note,
    octave
)

parse_pitch_class

def parse_pitch_class(
    note,
    octave=None
)

stf

def stf(
    index
)