示例#1
0
def major_triad(note):
    """Build a major triad on note.

    Example:
    >>> major_triad('C')
    ['C', 'E', 'G']
    """
    return [note, intervals.major_third(note), intervals.perfect_fifth(note)]
示例#2
0
def major_triad(note):
    """Build a major triad on note.

    Example:
    >>> major_triad('C')
    ['C', 'E', 'G']
    """
    return [note, intervals.major_third(note), intervals.perfect_fifth(note)]
示例#3
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.major_fifth(note))]
示例#4
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.major_fifth(note))
    ]