Пример #1
0
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)]
Пример #2
0
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)]
Пример #3
0
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)]
Пример #4
0
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)]
Пример #5
0
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)]
Пример #6
0
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)]
Пример #7
0
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)]
Пример #8
0
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)]
Пример #9
0
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)]
Пример #10
0
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)]
Пример #11
0
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)]
Пример #12
0
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)]
Пример #13
0
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)]
Пример #14
0
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)]
Пример #15
0
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)]
Пример #16
0
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]
Пример #17
0
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)]
Пример #18
0
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)]
Пример #19
0
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)]
Пример #20
0
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]
Пример #21
0
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]
Пример #22
0
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))
    ]
Пример #23
0
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)
    ]
Пример #24
0
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)
    ]
Пример #25
0
    '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)]
    }
Пример #26
0
    '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)]
    }
Пример #27
0
		"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)])
}