-
Notifications
You must be signed in to change notification settings - Fork 7
/
fretboard-generator.html
143 lines (135 loc) · 3.75 KB
/
fretboard-generator.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Fretboard template generator</title>
<link rel="stylesheet" href="fretboard-generator.css">
<script type="text/javascript" src="jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="download.js"></script>
<script src="https://maker.js.org/target/js/browser.maker.js" type="text/javascript"></script>
<script type="text/javascript" src="fretboard-generator.js"></script>
</head>
<body>
<div id="header">
<h1>Fretboard Template Generator</h1>
</div>
<p>For details on how to use this, see the details <a href="https://github.com/mdales/Fretboard-etching">here</a>.<p>
<div id="wrapper">
<div id="entry">
<table>
<tr>
<td>Scale Length:</td>
<td>
<input type="number" value="25.5" min="1.0" step="any" name="scale"/>
<select name="scale_units">
<option value="inches">Inches</option>
<option value="mm">mm</option>
</select>
</td>
</tr>
<tr>
<td>Fret Count:</td>
<td><input type="number" value="21" min="1" name="frets"/></td>
</tr>
<tr>
<td>Nut slot width:</td>
<td>
<input type="number" value="3.5" min="0.0" step="any" name="nut"/>
<select name="nut_units">
<option value="mm">mm</option>
<option value="inches">Inches</option>
</select>
</td>
</tr>
<tr>
<td>Inlay diameter:</td>
<td>
<input type="number" value="6" min="0.125" step="any" name="inlay"/>
<select name="inlay_units">
<option value="mm">mm</option>
<option value="inches">Inches</option>
</select>
</td>
</tr>
<tr>
<td>Inlay style:</td>
<td>
<select name="inlay_style">
<option value="dots">Dots (for designing/CNC routing)</option>
<option value="crosshairs">Crosshairs (for laser marking)</option>
</select>
</td>
</tr>
<tr>
<td>Fret scoring:</td>
<td>
<select name="slot_style">
<option value="line">Lines (for designing/CNC routing)</option>
<option value="slot">Slots (for laser etching)</option>
</select>
</td>
</tr>
<tr>
<td>Orientation:</td>
<td>
<select name="orientation">
<option value="landscape">Landscape</option>
<option value="portrait">Portrait</option>
</select>
</td>
</tr>
<tr>
<td>Fret alignment markers:</td>
<td>
<input type="checkbox" name="alignment_markers" value="mark"></input?
</td>
</tr>
<tr>
<td>Bridge location:</td>
<td>
<input type="checkbox" name="bridge_location" value="bridge"></input?
</td>
</tr>
<tr>
<td><button id="svg">Generate SVG</button></td>
<td><button id="dxf">Generate DXF</button></td>
</tr>
</table>
</div>
<div id="positions">
<table id="positions">
<col><col><col><col><col><col><col><col>
<thead>
<th>Fret</th>
<th>Offset</th>
<th>Fret</th>
<th>Offset</th>
<th>Fret</th>
<th>Offset</th>
<th>Fret</th>
<th>Offset</th>
</thead>
<tbody></tbody>
</table>
<p>Positions:
<select name="position_units">
<option value="mm">Display in mm</option>
<option value="inches">Display in inches</option>
</select>
</p>
</div>
</div>
<div id="draw">
<p>Blueprint:</p>
<div id="fretboard"></div>
</div>
<div id="footer">
<table>
<tr>
<td>Made by <a href="http://electricflapjack.com">Electric Flapjack Guitars</a>.</td>
<td align="right">Copyright Michael Dales 2017. <a href="https://github.com/mdales/Fretboard-etching">Released open source</a> under the <a href="https://www.gnu.org/licenses/gpl-3.0.en.html">GPL v3</a>.</td>
</tr>
</table>
</div>
</body>
</html>