Module pippi.old

Variables

BASE_QUALITIES
CHORD_ROMANS
CHROMATIC
DEFAULT_RATIOS
DEFAULT_SCALE
EQUAL
EXTENSIONS
INTERVALS
JUST
LOUIS
MAJOR
MIDI_NOTES
MINOR
NOTES
PROGRESSIONS
SCALES
TERRY
YOUNG
a0
a4
default_key
match_roman

Functions

add_intervals

def add_intervals(
    a,
    b
)

apply_interval

def apply_interval(
    freq,
    iv=None,
    ratios=None
)

chord

def chord(
    name,
    key=None,
    octave=3,
    ratios=None
)

chords

def chords(
    names,
    key=None,
    octave=3,
    ratios=((1.0, 1.0), (16.0, 15.0), (9.0, 8.0), (6.0, 5.0), (5.0, 4.0), (4.0, 3.0), (45.0, 32.0), (3.0, 2.0), (8.0, 5.0), (5.0, 3.0), (9.0, 5.0), (15.0, 8.0))
)

edo

def edo(
    degree,
    divs=12
)

edo_ratios

def edo_ratios(
    divs=12
)

edo_scale

def edo_scale(
    divs=12
)

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

fit_scale

def fit_scale(
    freq,
    scale
)

fromdegrees

def fromdegrees(
    scale_degrees=None,
    octave=2,
    root='c',
    scale=None,
    ratios=None
)

fts

def fts(
    freq
)

get_chord_root_index

def get_chord_root_index(
    name
)

get_extension

def get_extension(
    name
)

get_freq_from_chord_name

def get_freq_from_chord_name(
    name,
    root=440,
    octave=3,
    ratios=((1.0, 1.0), (16.0, 15.0), (9.0, 8.0), (6.0, 5.0), (5.0, 4.0), (4.0, 3.0), (45.0, 32.0), (3.0, 2.0), (8.0, 5.0), (5.0, 3.0), (9.0, 5.0), (15.0, 8.0))
)

get_intervals

def get_intervals(
    name
)

get_quality

def get_quality(
    name
)

get_ratio_from_interval

def get_ratio_from_interval(
    iv,
    ratios
)

getmultiplier

def getmultiplier(
    ratios,
    scale,
    degree
)

int_to_byte_list

def int_to_byte_list(
    val
)

mtf

def mtf(
    midi_note
)

next_chord

def next_chord(
    name
)

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
)

scale_mask_to_indexes

def scale_mask_to_indexes(
    mask
)

stf

def stf(
    index
)

str_to_byte_list

def str_to_byte_list(
    val
)

strip_chord

def strip_chord(
    name
)

to_scale_mask

def to_scale_mask(
    mapping
)

tofreqs

def tofreqs(
    degrees=None,
    root=261.63,
    ratios=None,
    scale=None,
    scale_mask=None
)

Classes

Parser

class Parser(
    score,
    durations=None,
    octave=3,
    ratios=None
)

Methods

parse
def parse(
    self
)