

def generateScale(scale, note, mode=1, rType='list', octaves=True):
    '\n    Generate a scale\n    scale (string): major,  melodic_minor, harmonic_minor, chromatic, major_pentatonic\n    note: start note\n    '
    if (scale in SCALE_STEPS):
        steps = _get_mode(SCALE_STEPS[scale], mode)
        return iterate(note, steps, rType, octaves)
    else:
        raise MelopyGenericError(('Unknown scale type:' + str(scale)))

dataset/ETHPy150Open jdan/Melopy/melopy/scales.py generateScale/original