コード例 #1
0
 def ascending(self):
     notes = [self.tonic]
     for i in range(3):
         notes.extend([intervals.major_second(notes[-1]), intervals.minor_third(notes[-1])])
     notes.append(intervals.major_seventh(notes[0]))
     notes[-2] = intervals.major_sixth(notes[0])
     return notes * self.octaves + [notes[0]]
コード例 #2
0
def major_thirteenth(note):
	"""Builds a major thirteenth chord on note.
	Example:
{{{
>>> major_thirteenth('C')
['C', 'E', 'G', 'B', 'D', 'A']
}}}"""
	return major_ninth(note) + [intervals.major_sixth(note)]
コード例 #3
0
def major_sixth(note):
	"""Builds a major sixth chord on note.
	Example:
{{{
>>> major_sixth("C")
['C', 'E', 'G', 'A']
}}}"""
	return major_triad(note) + [intervals.major_sixth(note)]
コード例 #4
0
def to_minor(note):
	"""Returns the minor of note.
	Example:
{{{
>>> to_minor("C")
'A'
}}}"""
	return intervals.major_sixth(note)
コード例 #5
0
def major_sixth(note):
    """Build a major sixth chord on note.

    Example:
    >>> major_sixth('C')
    ['C', 'E', 'G', 'A']
    """
    return major_triad(note) + [intervals.major_sixth(note)]
コード例 #6
0
def major_thirteenth(note):
    """Build a major thirteenth chord on note.

    Example:
    >>> major_thirteenth('C')
    ['C', 'E', 'G', 'B', 'D', 'A']
    """
    return major_ninth(note) + [intervals.major_sixth(note)]
コード例 #7
0
ファイル: chords.py プロジェクト: MayankTi/python-mingus
def minor_thirteenth(note):
    """Build a minor thirteenth chord on note.

    Example:
    >>> minor_thirteenth('C')
    ['C', 'Eb', 'G', 'Bb', 'D', 'A']
    """
    return minor_ninth(note) + [intervals.major_sixth(note)]
コード例 #8
0
ファイル: chords.py プロジェクト: MayankTi/python-mingus
def major_sixth(note):
    """Build a major sixth chord on note.

    Example:
    >>> major_sixth('C')
    ['C', 'E', 'G', 'A']
    """
    return major_triad(note) + [intervals.major_sixth(note)]
コード例 #9
0
def dominant_thirteenth(note):
    """Build a dominant thirteenth chord on note.

    Example:
    >>> dominant_thirteenth('C')
    ['C', 'E', 'G', 'Bb', 'D', 'A']
    """
    return dominant_ninth(note) + [intervals.major_sixth(note)]
コード例 #10
0
def dominant_thirteenth(note):
	"""Builds a dominant thirteenth chord on note.
	Example:
{{{
>>> dominant_thirteenth('C')
['C', 'E', 'G', 'Bb', 'D', 'A']
}}}"""
	return dominant_ninth(note) + [intervals.major_sixth(note)]
コード例 #11
0
def minor_thirteenth(note):
    """Builds a minor thirteenth chord on note.
    Example:
{{{
>>> minor_thirteenth('C')
['C', 'Eb', 'G', 'Bb', 'D', 'A']
}}}"""

    return minor_ninth(note) + [intervals.major_sixth(note)]
コード例 #12
0
def minor_sixth(note):
    """Builds a minor sixth chord on note.
    Example:
{{{
>>> minor_sixth(\"C\")
['C', 'Eb', 'G', 'A']
}}}"""

    return minor_triad(note) + [intervals.major_sixth(note)]
コード例 #13
0
ファイル: notes.py プロジェクト: anthonyt/mingus-counterpoint
def relative_minor(note):
    """Returns the minor of note.
    Example:
{{{
>>> to_minor(\"C\")
'A'
}}}"""

    return intervals.major_sixth(note)
コード例 #14
0
def major_sixth(note):
    """Builds a major sixth chord on note.
    Example:
{{{
>>> major_sixth(\"C\")
['C', 'E', 'G', 'A']
}}}"""

    return major_triad(note) + [intervals.major_sixth(note)]
コード例 #15
0
ファイル: notes.py プロジェクト: edudobay/mingus
def to_minor(note):
    """Returns the minor of note.
    Example:
{{{
>>> to_minor(\"C\")
'A'
}}}"""
    import intervals  # Circular import

    return intervals.major_sixth(note)
コード例 #16
0
ファイル: notes.py プロジェクト: ouimet51/mingus-python3
def to_minor(note):
    """Returns the minor of note.
    Example:
{{{
>>> to_minor(\"C\")
'A'
}}}"""
    import intervals  # Circular import

    return intervals.major_sixth(note)
コード例 #17
0
 def ascending(self):
     notes = [self.tonic]
     for i in range(3):
         notes.extend([
             intervals.major_second(notes[-1]),
             intervals.minor_third(notes[-1])
         ])
     notes.append(intervals.major_seventh(notes[0]))
     notes[-2] = intervals.major_sixth(notes[0])
     return notes * self.octaves + [notes[0]]
コード例 #18
0
def diminished(note):
    """Returns the diminshed scale on note.
    Example:
{{{
>>> diminished(\"C\")
['C', 'D', 'Eb', 'F', 'Gb', 'Ab', 'A', 'B']
}}}"""
    def whole_step_half_step(n):
        res = [intervals.major_second(n), intervals.minor_third(n)]
        return res

    res = [note]
    for i in range(3):
        res += whole_step_half_step(note)
        note = res[-1]
    res = res + [intervals.major_seventh(res[0])]
    res[-2] = intervals.major_sixth(res[0])
    return res
コード例 #19
0
def diminished(note):
    """Returns the diminshed scale on note.
    Example:
{{{
>>> diminished(\"C\")
['C', 'D', 'Eb', 'F', 'Gb', 'Ab', 'A', 'B']
}}}"""

    def whole_step_half_step(n):
        res = [intervals.major_second(n), intervals.minor_third(n)]
        return res

    res = [note]
    for i in range(3):
        res += whole_step_half_step(note)
        note = res[-1]
    res = res + [intervals.major_seventh(res[0])]
    res[-2] = intervals.major_sixth(res[0])
    return res