def suspended_second_triad(note): """Builds a suspended second triad on note. Example: {{{ >>> suspended_second_triad("C") ["C", "D", "G"] }}}""" return [note, intervals.major_second(note), intervals.perfect_fifth(note)]
def minor_triad(note): """Builds a minor triad on note. Example: {{{ >>> minor_triad("C") ["C", "Eb", "G"] }}}""" return [note, intervals.minor_third(note), intervals.perfect_fifth(note)]
def suspended_second_triad(note): """Build a suspended second triad on note. Example: >>> suspended_second_triad('C') ['C', 'D', 'G'] """ return [note, intervals.major_second(note), intervals.perfect_fifth(note)]
def suspended_fourth_triad(note): """Build a suspended fourth triad on note. Example: >>> suspended_fourth_triad('C') ['C', 'F', 'G'] """ return [note, intervals.perfect_fourth(note), intervals.perfect_fifth(note)]
def minor_triad(note): """Build a minor triad on note. Example: >>> minor_triad('C') ['C', 'Eb', 'G'] """ return [note, intervals.minor_third(note), intervals.perfect_fifth(note)]
def suspended_fourth_triad(note): """Builds a suspended fourth triad on note. Example: {{{ >>> suspended_fourth_triad("C") ["C", "F", "G"] }}}""" return [note, intervals.perfect_fourth(note), intervals.perfect_fifth(note)]
def major_bar(note): """Builds a major triad on note. Example: {{{ >>> major_bar("C") ["C", "E", "F", "G"] }}}""" return [note, intervals.major_third(note), intervals.perfect_fourth(note), intervals.perfect_fifth(note)]
def eleventh(note): """Build an eleventh chord on note. Example: >>> eleventh('C') ['C', 'G', 'Bb', 'F'] """ return [note, intervals.perfect_fifth(note), intervals.minor_seventh(note), intervals.perfect_fourth(note)]
def suspended_fourth_triad(note): """Builds a suspended fourth triad on note. Example: {{{ >>> suspended_fourth_triad(\"C\") [\"C\", \"F\", \"G\"] }}}""" return [note, intervals.perfect_fourth(note), intervals.perfect_fifth(note)]
def suspended_second_triad(note): """Builds a suspended second triad on note. Example: {{{ >>> suspended_second_triad(\"C\") [\"C\", \"D\", \"G\"] }}}""" return [note, intervals.major_second(note), intervals.perfect_fifth(note)]
def minor_triad(note): """Builds a minor triad on note. Example: {{{ >>> minor_triad(\"C\") [\"C\", \"Eb\", \"G\"] }}}""" return [note, intervals.minor_third(note), intervals.perfect_fifth(note)]
def lydian(note): """Returns the lydian mode scale starting on note. Example: {{{ >>> lydian("F") ["F", "G", "A", B", "C", "D", "E"] }}} """ i = ionian(intervals.perfect_fifth(note)) return i[3:] + i[:3]
def eleventh(note): """Builds an eleventh chord on note. Example: {{{ >>> eleventh("C") ['C', 'G', 'Bb', 'F'] }}}""" return [note, intervals.perfect_fifth(note), \ intervals.minor_seventh(note), intervals.perfect_fourth(note)]
def lydian(note): """Returns the lydian mode scale starting on note. Example: {{{ >>> lydian(\"F\") [\"F\", \"G\", \"A\", B\", \"C\", \"D\", \"E\"] }}}""" i = ionian(intervals.perfect_fifth(note)) return i[3:] + i[:3]
def augmented_triad(note): """Build an augmented triad on note. Example: >>> augmented_triad('C') ['C', 'E', 'G#'] """ return [ note, intervals.major_third(note), notes.augment(intervals.perfect_fifth(note)) ]
def suspended_fourth_triad(note): """Builds a suspended fourth triad on note. Example: {{{ >>> suspended_fourth_triad(\"C\") [\"C\", \"F\", \"G\"] }}}""" return [ note, intervals.perfect_fourth(note), intervals.perfect_fifth(note) ]
def eleventh(note): """Builds an eleventh chord on note. Example: {{{ >>> eleventh(\"C\") ['C', 'G', 'Bb', 'F'] }}}""" return [ note, intervals.perfect_fifth(note), intervals.minor_seventh(note), intervals.perfect_fourth(note) ]
'M7': major_seventh, '7': dominant_seventh, 'dom7': dominant_seventh, 'm7b5': minor_seventh_flat_five, 'dim7': diminished_seventh, 'm/M7': minor_major_seventh, 'mM7': minor_major_seventh, 'm6': minor_sixth, 'M6': major_sixth, '6': major_sixth, '6/7': dominant_sixth, '67': dominant_sixth, '6/9': sixth_ninth, '69': sixth_ninth, '9': dominant_ninth, '7b9': dominant_flat_ninth, '7#9': dominant_sharp_ninth, 'm7b9': minor_flat_ninth, 'M9': major_ninth, 'm9': minor_ninth, '7#11': lydian_dominant_seventh, 'm11': minor_eleventh, 'M13': major_thirteenth, 'm13': minor_thirteenth, '13': dominant_thirteenth, '7b5': dominant_flat_five, 'hendrix': hendrix_chord, '7b12': hendrix_chord, '5': lambda x: [x, intervals.perfect_fifth(x)] }
'm7': minor_seventh, 'M7': major_seventh, '7': dominant_seventh, 'dom7': dominant_seventh, 'm7b5': minor_seventh_flat_five, 'dim7': diminished_seventh, 'm/M7': minor_major_seventh, 'mM7': minor_major_seventh, 'm6': minor_sixth, 'M6': major_sixth, '6': major_sixth, '6/7': dominant_sixth, '67': dominant_sixth, '6/9': sixth_ninth, '69': sixth_ninth, '9': dominant_ninth, '7b9': dominant_flat_ninth, '7#9': dominant_sharp_ninth, 'M9': major_ninth, 'm9': minor_ninth, '7#11': lydian_dominant_seventh, 'm11': minor_eleventh, 'M13': major_thirteenth, 'm13': minor_thirteenth, '13': dominant_thirteenth, '7b5': dominant_flat_five, 'hendrix': hendrix_chord, '7b12': hendrix_chord, '5': lambda x: [x, intervals.perfect_fifth(x)] }
"6/9" : sixth_ninth, "69" : sixth_ninth, # Ninths "9" : dominant_ninth, "7b9" : dominant_flat_ninth, "7#9" : dominant_sharp_ninth, "M9" : major_ninth, "m9" : minor_ninth, # Elevenths "7#11" : lydian_dominant_seventh, "m11" : minor_eleventh, # Thirteenths "M13" : major_thirteenth, "m13" : minor_thirteenth, "13" : dominant_thirteenth, # Altered Chords "7b5" : dominant_flat_five, # Special "hendrix" : hendrix_chord, "7b12" : hendrix_chord, "5" : (lambda x: [x, intervals.perfect_fifth(x)]) }