Пример #1
0
def majchord(note):
    root = notes.con_note(note)
    first = root
    third = root + 4
    fifth = root + 7
    print(notes.num_to_note(first), notes.num_to_note(third),
          notes.num_to_note(fifth))
Пример #2
0
def minchord(note):
    root = notes.con_note(note.upper())
    first = root
    third = root + 3
    fifth = root + 7
    print(notes.num_to_note(first), notes.num_to_note(third),
          notes.num_to_note(fifth))
Пример #3
0
def seventh(note):
    root = notes.con_note(note.upper())
    first = root
    third = root + 4
    fifth = root + 7
    seventh = root + 11
    print(notes.num_to_note(first), notes.num_to_note(third),
          notes.num_to_note(fifth), notes.num_to_note(seventh))
Пример #4
0
import notes


start = input("Enter Starting Note: \n")

s = start.upper()

root = notes.con_note(s)
# print(root)
# root = int(root)

first = root
third = root + 4
fifth = root + 7
seventh = root + 11

# print(first, third, fifth)

print (notes.num_to_note(first), notes.num_to_note(third), notes.num_to_note(fifth), notes.num_to_note(seventh))
Пример #5
0
import notes
import scales

#------------------Guitar String-----------------------------
first_str = "E"
second_str = "B"
third_str = "G"
fourth_str = "D"
fifth_str = "A"
sixth_str = "E"
nut = 0

#----------------------Converting Notes to numbers-------------------

first_stri = notes.con_note(first_str)
second_stri = notes.con_note(second_str)
third_stri = notes.con_note(third_str)
fourth_stri = notes.con_note(fourth_str)
fifth_stri = notes.con_note(fifth_str)
sixth_stri = notes.con_note(sixth_str)

#------------------------calculate maj scale-------------------------------------
# maj_scale = scales.majscale(sixth_str)
maj_scale = scales.majscale("c")
print("Major Scale:", maj_scale)

first = notes.con_note(maj_scale[0])
second = notes.con_note(maj_scale[1])
third = notes.con_note(maj_scale[2])
fourth = notes.con_note(maj_scale[3])