59 lines
1.3 KiB
Python
59 lines
1.3 KiB
Python
|
#!/usr/bin/python
|
||
|
|
||
|
from strings import print_ideal_stock
|
||
|
|
||
|
in_mm = 25.4
|
||
|
scale_length = 648/in_mm
|
||
|
|
||
|
string_sets = {
|
||
|
'regular light': (
|
||
|
# (desired note, tension, and type)
|
||
|
('E4' , 16, 'P'),
|
||
|
('B3' , 16, 'P'),
|
||
|
('G3' , 16, 'P'),
|
||
|
('D3' , 16, 'W'),
|
||
|
('A2' , 16, 'W'),
|
||
|
('E2' , 16, 'W'),
|
||
|
),
|
||
|
'jazz light': (
|
||
|
('E4' , 24, 'P'),
|
||
|
('B3' , 24, 'P'),
|
||
|
('G3' , 24, 'W'),
|
||
|
('D3' , 24, 'W'),
|
||
|
('A2' , 24, 'W'),
|
||
|
('E2' , 24, 'W'),
|
||
|
),
|
||
|
'regular light (DADGAD)': (
|
||
|
('D4' , 16, 'P'),
|
||
|
('A3' , 16, 'P'),
|
||
|
('G3' , 16, 'P'),
|
||
|
('D3' , 16, 'W'),
|
||
|
('A2' , 16, 'W'),
|
||
|
('D2' , 16, 'W'),
|
||
|
),
|
||
|
'regular light (open G, 6)': (
|
||
|
('D4' , 16, 'P'),
|
||
|
('B3' , 16, 'P'),
|
||
|
('G3' , 16, 'P'),
|
||
|
('D3' , 16, 'W'),
|
||
|
('B2' , 16, 'W'),
|
||
|
('D2' , 16, 'W'),
|
||
|
),
|
||
|
'regular light (open G, 7)': (
|
||
|
('D4' , 16, 'P'),
|
||
|
('B3' , 16, 'P'),
|
||
|
('G3' , 16, 'P'),
|
||
|
('D3' , 16, 'W'),
|
||
|
('B2' , 16, 'W'),
|
||
|
('G2' , 16, 'W'),
|
||
|
('D2' , 16, 'W'),
|
||
|
),
|
||
|
}
|
||
|
|
||
|
print('for a scale length of {:>5.2f} inches'.format(scale_length))
|
||
|
for name, strings in string_sets.items():
|
||
|
print()
|
||
|
print('"{}"'.format(name))
|
||
|
print_ideal_stock(strings, scale_length)
|
||
|
|