Difference between revisions of "fret positioning"

From Noah.org
Jump to navigationJump to search
m (Pisitions of frets given in terms of the total length of a sring.)
 
m
Line 3: Line 3:
 
<pre>
 
<pre>
 
fret #      divisor
 
fret #      divisor
1            0.056126
+
1            0.056126
2            0.109101
+
2            0.109101
3            0.159104
+
3            0.159104
4            0.206291
+
4            0.206291
5            0.250847
+
5            0.250847
6            0.292893
+
6            0.292893
7            0.33258
+
7            0.33258
8            0.370039
+
8            0.370039
9            0.405396
+
9            0.405396
 
10          0.438769
 
10          0.438769
 
11          0.470268
 
11          0.470268
Line 27: Line 27:
 
23          0.735134
 
23          0.735134
 
24          0.75
 
24          0.75
 +
</pre>
 +
 +
Here is a little Python script that will output fret positions given a string length.
 +
<pre>
 +
#!/usr/bin/env python
 +
# This will print the distance from the nut to each fret
 +
# over a two octave range given an open string length.
 +
 +
# Set string length here. Units don't matter. Output is in the same units.
 +
string_length = 35.0
 +
 +
fret_length_factors = [ 0.056126, 0.109101, 0.159104, 0.206291, 0.250847,
 +
        0.292893, 0.33258, 0.370039, 0.405396, 0.438769, 0.470268, 0.5,
 +
        0.528063, 0.554551, 0.579552, 0.60315, 0.625423, 0.646447, 0.66629,
 +
        0.68502, 0.702698, 0.719385, 0.735134, 0.75 ]
 +
fret_number = 1
 +
for length_factor in fret_length_factors:
 +
    print '%3d'%fret_number, '%5.2f'%(length_factor * string_length)
 +
    fret_number += 1
 
</pre>
 
</pre>

Revision as of 11:17, 19 April 2015


fret #       divisor
 1            0.056126
 2            0.109101
 3            0.159104
 4            0.206291
 5            0.250847
 6            0.292893
 7            0.33258
 8            0.370039
 9            0.405396
10           0.438769
11           0.470268
12           0.5
13           0.528063
14           0.554551
15           0.579552
16           0.60315
17           0.625423
18           0.646447
19           0.66629
20           0.68502
21           0.702698
22           0.719385
23           0.735134
24           0.75

Here is a little Python script that will output fret positions given a string length.

#!/usr/bin/env python
# This will print the distance from the nut to each fret
# over a two octave range given an open string length.

# Set string length here. Units don't matter. Output is in the same units.
string_length = 35.0

fret_length_factors = [ 0.056126, 0.109101, 0.159104, 0.206291, 0.250847,
        0.292893, 0.33258, 0.370039, 0.405396, 0.438769, 0.470268, 0.5,
        0.528063, 0.554551, 0.579552, 0.60315, 0.625423, 0.646447, 0.66629,
        0.68502, 0.702698, 0.719385, 0.735134, 0.75 ]
fret_number = 1
for length_factor in fret_length_factors:
    print '%3d'%fret_number, '%5.2f'%(length_factor * string_length)
    fret_number += 1