-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathindex.htm
1089 lines (1024 loc) · 52 KB
/
index.htm
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!--
____ _
/ ___| ___ __ _| | ___
\___ \ / __/ _` | |/ _ \
___) | (_| (_| | | __/
|____/ \___\__,_|_|\___|
__ __ _ _
\ \ / /__ _ __| | _____| |__ ___ _ __
\ \ /\ / / _ \| '__| |/ / __| '_ \ / _ \| '_ \
\ V V / (_) | | | <\__ \ | | | (_) | |_) |
\_/\_/ \___/|_| |_|\_\___/_| |_|\___/| .__/
|_|
-->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Scale Workshop</title>
<meta name="description" content="Scale Workshop is a tool that allows you to create microtonal tunings within your web browser. You can export these tunings to your device and use them to tune various synthesizers." />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Open Graph -->
<meta property="og:title" content="Scale Workshop" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://sevish.com/scaleworkshop/" />
<meta property="og:image" content="https://sevish.com/scaleworkshop/src/assets/img/scale-workshop-og-image.png" />
<meta property="og:description"
content="Create microtonal tunings in your web browser." />
<meta property="og:site_name" content="Sevish Music" />
<!-- Styles -->
<link rel="stylesheet" href="src/lib/bootstrap-3.3.7-dist/css/bootstrap.min.css">
<link rel="stylesheet" href="src/lib/jquery-ui-1.12.1/jquery-ui.min.css">
<link rel="stylesheet" href="src/lib/socicon/style.css">
<link rel="stylesheet" href="src/css/style.css?v=1.5">
<link rel="stylesheet" href="src/css/style-dark.css?v=1.5">
<!-- Favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="src/assets/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="src/assets/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="src/assets/favicon/favicon-16x16.png">
<link rel="manifest" href="src/assets/favicon/manifest.json">
<link rel="mask-icon" href="src/assets/favicon/safari-pinned-tab.svg" color="#9bd03b">
<meta name="theme-color" content="#ffffff">
</head>
<body>
<div id="splash">
<div id="splash-center">
<noscript>
<img src="src/assets/img/scale-workshop-og-image.png" />
<p class="lead" style="padding:1em;">JavaScript is disabled in your browser. Please enable JavaScript to use
Scale Workshop.</p>
</noscript>
</div>
</div>
<div id="header-mobile" class="visible-xs-block">
<h1 style="line-height:0.6em;text-align:center;">
<span style="font-size:1em;">Scale</span><br/>
<span style="font-size:0.7em;">Workshop</span>
</h1>
</div>
<nav class="navbar navbar-inverse bg-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed pull-right">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand" style="line-height:0.6em;text-align:right;">
<span style="font-size:1em;">Scale</span><br/>
<span style="font-size:0.7em;">Workshop</span>
</span>
</div>
<div class="collapse navbar-collapse" id="mobile-menu">
<ul class="nav navbar-nav">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="glyphicon glyphicon-asterisk"
aria-hidden="true"></span> New <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#" id="generate_equal_temperament"><span class="glyphicon glyphicon-stats"
aria-hidden="true"></span> Equal temperament</a></li>
<li><a href="#" id="generate_rank_2_temperament"><span class="glyphicon glyphicon-stats"
aria-hidden="true"></span> Rank-2 temperament</a></li>
<li><a href="#" id="generate_harmonic_series_segment"><span class="glyphicon glyphicon-stats"
aria-hidden="true"></span> Harmonic series segment</a></li>
<li><a href="#" id="generate_subharmonic_series_segment"><span class="glyphicon glyphicon-stats"
aria-hidden="true"></span> Subharmonic series segment</a></li>
<li><a href="#" id="enumerate_chord"><span class="glyphicon glyphicon-stats" aria-hidden="true"></span>
Enumerate chord</a></li>
<li><a href="#" id="generate_cps"><span class="glyphicon glyphicon-stats" aria-hidden="true"></span> Combination product set</a></li>
<li class="divider"></li>
<li><a href="#" id="import-scala-scl"><span class="glyphicon glyphicon-log-in" aria-hidden="true"></span>
Import .scl</a></li>
<li><a href="#" id="import-anamark-tun"><span class="glyphicon glyphicon-log-in"
aria-hidden="true"></span> Import .tun</a></li>
<li><a href="#" id="import-mnlgtun-file"><span class="glyphicon glyphicon-log-in"
aria-hidden="true"></span> Import .mnlgtuns / .mnlgtuno</a></li>
<li class="divider"></li>
<li><a href="#" id="clear-scale"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span> Clear scale</a></li>
<li><a href="#" id="load-preset"><span class="glyphicon glyphicon-cd" aria-hidden="true"></span> Load
preset scale</a></li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="glyphicon glyphicon-adjust"
aria-hidden="true"></span> Modify <span class="caret"></span></a>
<ul class="dropdown-menu" id="modify-buttons">
<li><a href="#" id="modify_sort_ascending"><span class="glyphicon glyphicon-sort-by-attributes" aria-hidden="true"></span> Sort ascending</a></li>
<li><a href="#" id="modify_octave_reduce"><span class="glyphicon glyphicon-resize-small" aria-hidden="true"></span> Reduce</a></li>
<li><a href="#" id="modify_rotate"><span class="glyphicon glyphicon-repeat" aria-hidden="true"></span> Rotate</a></li>
<li><a href="#" id="modify_mode"><span class="glyphicon glyphicon-equalizer" aria-hidden="true"></span> Subset</a></li>
<li><a href="#" id="modify_stretch"><span class="glyphicon glyphicon-compressed"
aria-hidden="true"></span> Stretch/compress</a></li>
<li><a href="#" id="modify_random_variance"><span class="glyphicon glyphicon-random"
aria-hidden="true"></span> Random variance</a></li>
<li><a href="#" id="modify_sync_beating"><span class="glyphicon glyphicon-magnet"
aria-hidden="true"></span> Tempo-sync beating</a></li>
<li><a href="#" id="modify_approximate"><span class="glyphicon glyphicon-list-alt"
aria-hidden="true"></span> Approximate by ratios</a></li>
<li><a href="#" id="modify_approximate_harmonics"><span class="glyphicon glyphicon-list-alt"
aria-hidden="true"></span> Approximate by harmonics</a></li>
<li><a href="#" id="modify_approximate_subharmonics"><span class="glyphicon glyphicon-list-alt"
aria-hidden="true"></span> Approximate by subharmonics</a></li>
<li><a href="#" id="modify_equalize"><span class="glyphicon glyphicon-th"
aria-hidden="true"></span> Equalize</a></li>
</ul>
</li>
<li><a href="#" id="nav_play"><span class="glyphicon glyphicon-music" aria-hidden="true"></span> Virtual Kbd</a>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="glyphicon glyphicon-download-alt"
aria-hidden="true"></span> Export <span class="caret"></span></a>
<ul class="dropdown-menu" id="export-buttons">
<li><a href="#" onclick="event.preventDefault(); export_anamark_tun(100);"><span
class="glyphicon glyphicon-download" aria-hidden="true"></span> Download AnaMark v1 tuning (.tun)</a>
</li>
<li><a href="#" onclick="event.preventDefault(); export_anamark_tun(200);"><span
class="glyphicon glyphicon-download" aria-hidden="true"></span> Download AnaMark v2 tuning (.tun)</a>
</li>
<li><a href="#" onclick="event.preventDefault(); export_scala_scl();"><span
class="glyphicon glyphicon-download" aria-hidden="true"></span> Download Scala scale (.scl)</a></li>
<li><a href="#" onclick="event.preventDefault(); export_scala_kbm();"><span
class="glyphicon glyphicon-download" aria-hidden="true"></span> Download Scala keyboard mapping (.kbm)</a>
</li>
<li><a href="#" onclick="event.preventDefault(); export_maxmsp_coll();"><span
class="glyphicon glyphicon-download" aria-hidden="true"></span> Download Max/MSP coll tuning
(.txt)</a></li>
<li><a href="#" onclick="event.preventDefault(); export_pd_text();"><span
class="glyphicon glyphicon-download" aria-hidden="true"></span> Download PureData text tuning
(.txt)</a></li>
<li><a href="#" onclick="event.preventDefault(); export_kontakt_script();"><span
class="glyphicon glyphicon-download" aria-hidden="true"></span> Download Kontakt tuning script
(.txt)</a></li>
<li><a href="#" onclick="event.preventDefault(); export_soniccouture_nka();"><span
class="glyphicon glyphicon-download" aria-hidden="true"></span> Download Soniccouture tuning file
(.nka)</a></li>
<li><a href="#" onclick="event.preventDefault(); exportHarmorPitchMap();"><span class="glyphicon glyphicon-download" aria-hidden="true"></span> Download
Harmor pitch map (.fnv)</a></li>
<li><a href="#" onclick="event.preventDefault(); exportSytrusPitchMap();"><span class="glyphicon glyphicon-download" aria-hidden="true"></span> Download
Sytrus Pitch Map (.fnv)</a></li>
<li><a href="#" onclick="event.preventDefault(); exportMnlgtun(true);"><span class="glyphicon glyphicon-download"
aria-hidden="true"></span> Download Korg 'logue Sound Librarian Scale (.mnlgtuns)</a></li>
<li><a href="#" onclick="event.preventDefault(); exportMnlgtun(false);"><span class="glyphicon glyphicon-download"
aria-hidden="true"></span> Download Korg 'logue Sound Librarian Octave (.mnlgtuno)</a></li>
<li class="divider"></li>
<li><a href="#" onclick="event.preventDefault(); export_reference_deflemask();"><span
class="glyphicon glyphicon-download" aria-hidden="true"></span> Download Deflemask 'fine tune'
reference (.txt)</a></li>
<li><a href="#" id="export_reaper_note_name_map"><span
class="glyphicon glyphicon-download" aria-hidden="true"></span> Download Reaper Note Name Map (.txt)
</a></li>
<li class="divider"></li>
<li><a href="#" onclick="event.preventDefault(); export_url();"><span
class="glyphicon glyphicon-share-alt" aria-hidden="true"></span> Share scale as URL</a></li>
</ul>
</li>
<li><a href="#" id="nav_midi"><span class="glyphicon glyphicon-wrench" aria-hidden="true"></span> MIDI I/O</a>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="glyphicon glyphicon-info-sign"
aria-hidden="true"></span> About <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#" id="about_scale_workshop"><img src="src/assets/favicon/android-chrome-192x192.png"
style="height:1em; width:auto;" /> About Scale Workshop</a></li>
<li><a href="https://github.com/SeanArchibald/scale-workshop" target="_blank"><span
class="glyphicon glyphicon-book" aria-hidden="true"></span> GitHub</a></li>
<li><a href="https://github.com/SeanArchibald/scale-workshop/issues" target="_blank"><span
class="glyphicon glyphicon-send" aria-hidden="true"></span> Report issue</a></li>
<li><a href="http://sevish.com" target="_blank"><span class="glyphicon glyphicon-heart-empty"
aria-hidden="true"></span> Made by Sevish</a></li>
</ul>
</li>
<li><a href="guide.htm" target="_blank"><span class="glyphicon glyphicon-question-sign"
aria-hidden="true"></span> User guide</a></li>
</ul>
</div>
</div>
</nav>
<div class="container-fluid">
<div class="row">
<div class="col-sm-6 col-md-4 col-lg-4 col-main">
<form>
<div class="form-group">
<textarea id="txt_name" name="name" placeholder="Untitled scale" class="form-control" rows="1"></textarea>
</div>
<label>Scale data <a href="guide.htm#manual-data-entry" target="_blank"><span
class="glyphicon glyphicon-question-sign" aria-hidden="true"></span></a></label>
<div class="form-group">
<textarea id="txt_tuning_data" class="form-control" rows="12"
title="Enter one interval per line. Values with a . will be calculated as cents. Values with a backslash (n\m) are n degrees of m-EDO. Values with forward slash (/) are calculated as ratios. See the user guide for examples (About > User Guide)"
placeholder=" "></textarea>
</div>
<canvas id="graphic-scale-rule" width="1000px" height="100px"></canvas>
<div class="form-group">
<label>Base frequency (note 1/1)</label>
<div class="input-group">
<input id="txt_base_frequency" name="base_frequency" type="number" min="0.0001" max="999999"
class="form-control" value="440" title="Set the frequency (in Hz) of note 1/1" />
<div class="input-group-addon">Hz</div>
</div>
<input name="Auto" id="btn_frequency_auto" type="button" value="Auto" class="btn btn-default pull-right"
title="Automatically set base frequency from the MIDI note, assuming 12-EDO A440Hz" />
</div>
<div class="form-group">
<label>Base MIDI note (note 1/1)</label>
<div class="input-group"
title="Set the MIDI note number to be note 1/1. By default this is 69 (A above middle C).">
<input id="txt_base_midi_note" name="base_midi_note" type="number" min="0" max="127" step="1"
class="form-control" value="69" />
<div id="base_midi_note_name" class="input-group-addon" style="min-width:5em;">A5</div>
</div>
</div>
</form>
</div>
<div class="col-sm-6 col-md-8 col-lg-8 col-main">
<div class="row">
<!-- Settings column -->
<div class="col-sm-12 col-md-6 col-md-push-6 col-lg-6 col-sub">
<a id="btn_panic" href="#" class="btn btn-link" style="float:right;margin-top:1em;"
title="Stops all currently playing notes and also turns down the Delay feedback gain.">Quiet</a>
<div id="qwerty-indicator"></div>
<div id="settings-accordion">
<!-- general settings -->
<div id="settings_general" class="group">
<h3>General settings</h3>
<div>
<form>
<div class="form-group">
<label>Line endings format</label>
<select id="input_select_newlines" class="form-control"
title="If your exported tuning files didn't work right on macOS synths, try changing this option to Unix.">
<option value="windows">Microsoft (Windows/MS-DOS)</option>
<option value="unix">Unix (Mac/Linux)</option>
</select>
</div>
<div class="form-group">
<div class="checkbox">
<label>
<input id="input_checkbox_night_mode" type="checkbox" /> <label for="input_checkbox_night_mode">Dark mode</label>
</label>
</div>
</div>
</form>
</div>
</div>
<!-- synth settings -->
<div id="settings_synth" class="group">
<h3>Synth settings</h3>
<div>
<form>
<div class="form-group">
<label for="input_range_main_vol">Main Volume</label>
<input type="range" class="form-control-range" id="input_range_main_vol" min="0" max="1"
step="0.005" value="0.8">
</div>
<div class="form-group">
<label>Waveform</label>
<select id="input_select_synth_waveform" class="form-control">
<option value="semisine">Semisine</option>
<option value="octaver">Octaver</option>
<option value="triangle">Triangle</option>
<option value="square">Square</option>
<option value="sawtooth">Sawtooth</option>
<option value="brightness">Brightness</option>
<option value="harmonicbell">Harmonic Bell</option>
<option value="warm1">Warm 1</option>
<option value="warm2">Warm 2</option>
<option value="warm3">Warm 3</option>
<option value="warm4">Warm 4</option>
<option value="sine">Sine</option>
</select>
</div>
<div class="form-group">
<label>Amplitude Envelope</label>
<select id="input_select_synth_amp_env" class="form-control">
<option value="organ">Organ</option>
<option value="pad">Pad</option>
<option value="perc-short">Percussive (Short)</option>
<option value="perc-medium">Percussive (Medium)</option>
<option value="perc-long">Percussive (Long)</option>
</select>
</div>
<hr />
<div class="form-group">
<label>Delay effect</label>
<div class="checkbox">
<label>
<input id="input_checkbox_delay_on" type="checkbox" /> On
</label>
</div>
</div>
<div class="form-group">
<label for="input_range_feedback_gain">Feedback gain</label>
<input type="range" class="form-control-range" id="input_range_feedback_gain" min="0" max="0.99"
step="0.005" value="0.3">
</div>
<div class="form-group">
<label for="input_range_delay_time">Delay Time (<span id="delay_time_ms">400</span> ms)</label>
<input type="range" class="form-control-range" id="input_range_delay_time" min="10" max="5000"
value="400">
</div>
<hr/>
<div class="form-group">
<label>Max polyphony</label>
<p>Refresh page for changes to take effect.</p>
<input title="Maximum number of notes that can be played at the same time (default 16). More system resources are required for greater polyphony. Changes will take effect next time the page is refreshed." id="input_number_max_polyphony" type="number" class="form-control" value="16" min="1" max="64" placeholder="16" />
</div>
</form>
</div>
</div>
<!-- Isomorphic keyboard settings -->
<div id="settings_note_input" class="group">
<h3>Isomorphic keyboard settings</h3>
<div>
<p>Play your scale using your computer keyboard or the virtual keyboard.</p>
<form>
<div class="form-group">
<label>Computer keyboard layout</label>
<select id="input_select_keyboard_layout" class="form-control"
title="Select your regional keyboard layout.">
<option value="EN">English (QWERTY)</option>
<option value="HU">Hungarian (QWERTZ)</option>
<option value="DK">Dvorak</option>
<option value="PK">Programmer Dvorak</option>
<option value="CO">Colemak</option>
<option value="CO_DH">Colemak DH</option>
</select>
</div>
<div class="form-group">
<label>Isomorphic key mapping</label>
<p>Distance (in scale degrees) between adjacent keys on the horizontal/vertical axes.</p>
<div class="input-group">
<div class="input-group-addon">V</div>
<input id="input_number_isomorphicmapping_vert" type="number" class="form-control" value="5"
min="-100" max="100" />
<div class="input-group-addon">default 5</div>
</div>
<div class="input-group">
<div class="input-group-addon">H</div>
<input id="input_number_isomorphicmapping_horiz" type="number" class="form-control" value="1"
min="-100" max="100" />
<div class="input-group-addon">default 1</div>
</div>
</div>
<div class="form-group">
<label>Key colours</label>
<p>A list of key colours, ascending from 1/1. Key colours are purely cosmetic and do not affect
mapping.</p>
<textarea id="input_key_colors" class="form-control"
placeholder="white black white white black white black white white black white black"
title="Examples: black grey white red green blue palevioletred antiquewhite steelblue olive">white black white white black white black white white black white black</textarea>
<input name="Auto" id="btn_key_colors_auto" type="button" value="Auto"
class="btn btn-default pull-right"
title="Automatically colour keys based on your scale size. Auto colouring is not optimal but a good starting point." />
</div>
</form>
</div>
</div>
</div>
</div>
<!-- tuning table column -->
<div id="col-tuning-table" class="col-sm-12 col-md-6 col-md-pull-6 col-lg-6 col-sub">
<table id="tuning-table" class="table table-condensed table-hover">
</table>
</div>
</div><!-- /.row -->
</div><!-- /col -->
</div><!-- /.row -->
</div><!-- /.container-fluid -->
<!-- Hidden by default -->
<input type="file" id="scala-file" accept=".scl" style="display:none;" onchange="parse_imported_scala_scl(event)" />
<input type="file" id="anamark-tun-file" accept=".tun" style="display:none;"
onchange="parse_imported_anamark_tun(event)" />
<input type="file" id="mnlgtun-file" accept=".mnlgtuns,.mnlgtuno" style="display:none;"
onchange="parseImportedMnlgtun(event)" />
<!-- Generator Modals -->
<div id="modal_generate_equal_temperament" class="modal" title="Generate equal temperament">
<a href="guide.htm#equal-temperaments" target="_blank"><span class="glyphicon glyphicon-question-sign"
aria-hidden="true" style="float:right;"></span></a>
<form>
<label>Number of divisions</label>
<div class="form-group">
<input id="input_number_of_divisions" name="" type="number" min="1" max="999999" class="form-control"
value="5" />
</div>
<label>Interval to divide</label>
<div class="form-group">
<input id="input_interval_to_divide" name="" type="text" class="form-control" value="2/1" />
</div>
</form>
</div>
<div id="modal_generate_rank_2_temperament" class="modal" title="Generate rank-2 temperament">
<form>
<label>Generator</label>
<div class="form-group">
<input id="input_rank-2_generator" name="" type="text" class="form-control" value="3/2" />
</div>
<label>Period</label>
<div class="form-group">
<input id="input_rank-2_period" name="" type="text" class="form-control" value="2/1" />
</div>
<label>Scale size</label>
<div class="form-group">
<input id="input_rank-2_size" name="" type="number" min="2" max="99999" step="1" class="form-control"
value="7" />
</div>
<label>Generators up/down from 1/1</label>
<div class="form-group form-inline">
<div class="input-group">
<input id="input_rank-2_up" name="" type="number" min="0" max="6" step="1" class="form-control" value="6"
title="Number of generators up" style="min-width:5em;" />
<div class="input-group-addon">Up</div>
</div>
<div class="input-group">
<input id="input_rank-2_down" name="" type="number" min="0" max="99999" step="1" class="form-control"
value="0" disabled />
<div class="input-group-addon">Down</div>
</div>
</div>
</form>
<hr />
<button class="btn btn-default"
onclick="show_mos_cf( jQuery('#input_rank-2_period').val(), jQuery('#input_rank-2_generator').val(), jQuery('#input_rank-2_size').val(), jQuery('#input_rank-2_mos_threshold').val() );"
style="float:left;">Show MOS</button>
<p style="text-align:right;">(ignore MOS with steps smaller than <input id="input_rank-2_mos_threshold" name=""
type="number" min="0.1" max="600" value="2.5" style="width:4em;" /> cents)</p>
<span id="info_rank_2_mos" style="display:block;margin-top:10px;"></span>
<hr />
<label>Output type:</label>
<select id="input_rank-2_type" name="" class="form-control" value="preserve">
<option value="preserve">Preserve types</option>
<option value="cents">Cents</option>
<option value="decimals">Decimals</option>
</select>
</div>
<div id="modal_generate_harmonic_series_segment" class="modal" title="Generate harmonic series segment">
<form>
<label>Lowest harmonic</label>
<div class="form-group">
<input id="input_lowest_harmonic" name="" type="number" min="1" max="999999" step="1" class="form-control"
value="8" />
</div>
<label>Highest harmonic</label>
<div class="form-group">
<input id="input_highest_harmonic" name="" type="number" min="1" max="999999" step="1" class="form-control"
value="16" />
</div>
</form>
</div>
<div id="modal_generate_subharmonic_series_segment" class="modal" title="Generate subharmonic series segment">
<form>
<label>Lowest subharmonic</label>
<div class="form-group">
<input id="input_lowest_subharmonic" name="" type="number" min="1" max="999999" step="1" class="form-control"
value="8" />
</div>
<label>Highest subharmonic</label>
<div class="form-group">
<input id="input_highest_subharmonic" name="" type="number" min="1" max="999999" step="1" class="form-control"
value="16" />
</div>
</form>
</div>
<div id="modal_enumerate_chord" class="modal" title="Enumerate chord">
<form>
<label>Chord</label>
<div class="form-group">
<input id="input_chord" name="" type="text" class="form-control" value="4:5:6:7:8" />
</div>
<div class="form-group">
<label>
<input id="input_invert_chord" type="checkbox" /> Invert chord
</label>
</div>
<label>
<input id="input_convert_to_ratios" type="checkbox" /> Convert all to ratios
</label>
</form>
</div>
<div id="modal_generate_cps" class="modal" title="Generate combination product set">
<form>
<label>Factors</label>
<div class="form-group">
<input id="input_cps_factors" name="" type="text" min="1" max="999999" step="1" class="form-control"
placeholder="1 3 5 7" list="input_cps_factors_list" />
<datalist id="input_cps_factors_list">
<option value="1 3 5 7" />
<option value="1 3 7 9" />
<option value="3 5 7 9" />
<option value="7 9 11 15" />
<option value="1 3 5 121" />
<option value="1 3 5 7 9" />
<option value="2 3 5 7 11" />
<option value="1 3 5 7 9 11" />
<option value="2 3 5 7 11 13" />
</datalist>
</div>
<label>Combination count</label>
<div class="form-group">
<input id="input_cps_combination_count" name="" type="number" pattern="[0-9]" min="2" max="9" step="1" class="form-control"
value="2" />
</div>
<div class="form-group">
<label>
<input id="input_cps_remove_1" type="checkbox" checked="checked" /> Remove 1/1 from scale
</label>
</div>
<div class="form-group">
<label>
<input id="input_cps_reduce" type="checkbox" checked="checked" /> Reduce resulting scale by 2/1
</label>
</div>
</form>
</div>
<div id="modal_load_preset_scale" class="modal" title="Load preset scale">
<form>
<div class="form-group">
<select id="select_preset_scale" name="" size="10" class="form-control">
<optgroup label="Traditional scales">
<option value="pelog">Pelog</option>
<option value="slendro">Slendro</option>
<option value="ragabageshri">Raga Bageshri</option>
<option value="ragabhairavi">Raga Bhairavi</option>
<option value="ragakafi">Raga Kafi</option>
<option value="ragatodi">Raga Todi</option>
<option value="ragayaman">Raga Yaman</option>
<option value="22shruti">22 Shruti</option>
<option value="hirajoshi">Hirajoshi</option>
<option value="balafon">Balafon 1</option>
<option value="balafon2">Balafon 2</option>
<option value="balafon3">Balafon 3</option>
<option value="balafon4">Balafon 4</option>
<option value="balafon5">Balafon 5</option>
<option value="balafon6">Balafon 6</option>
<option value="balafon7">Balafon 7</option>
<option value="5edo">Equal pentatonic</option>
<option value="7edo">Equal heptatonic</option>
<option value="archytasdiatonic">Archytas Diatonic</option>
<option value="archytasenharmonic">Archytas Enharmonic</option>
<option value="didymuschromatic">Didymus Chromatic</option>
<option value="ptolemydiatonicditoniaion">Ptolemy Diatonic Ditoniaion</option>
<option value="ptolemydiatonichemiolion">Ptolemy Diatonic Hemiolion</option>
<option value="pythagorean">Pythagorean</option>
<option value="werckmeisteriii">Werckmeister III (1691)</option>
<option value="young1799">Young (1799)</option>
<option value="12edo">12-tone equal temperament</option>
</optgroup>
<optgroup label="Just intonation scales">
<option value="partch43">Harry Partch 43-tone</option>
<option value="carlossuperjust">Wendy Carlos Super Just</option>
<option value="gradycentaur">Kraig Grady Centaur (7-limit)</option>
<option value="gradycentauras">Kraig Grady Centaura Subharmonic (11-limit)</option>
<option value="gradycentaurah">Kraig Grady Centaura Harmonic (11-limit)</option>
</optgroup>
<optgroup label="Equal temperament subsets">
<option value="11machine6">11edo machine[6]</option>
<option value="13glacial7">13edo glacial[7]</option>
<option value="13father8">13edo father[8]</option>
<option value="15blackwood10">15edo blackwood[10]</option>
<option value="16mavila7">16edo mavila[7]</option>
<option value="17superpyth12">17edo superpyth[12]</option>
<option value="17rast">17edo Rast</option>
<option value="22porcupine8">22edo porcupine[8]</option>
<option value="22orwell9">22edo orwell[9]</option>
<option value="22pajara12">22edo pajara[12]</option>
<option value="26lemba10">26edo lemba[10]</option>
<option value="26flattone12">26edo flattone[12]</option>
<option value="31meantone19">31edo meantone[19]</option>
<option value="46sensi11">46edo sensi[11]</option>
<option value="313island9">313edo island[9]</option>
</optgroup>
<optgroup label="Non-octave scales">
<option value="bohlenpierceeq">Bohlen-Pierce equal (13ed3)</option>
<option value="bohlenpierceji">Bohlen-Pierce just</option>
<option value="carlosalpha">Wendy Carlos Alpha</option>
<option value="carlosbeta">Wendy Carlos Beta</option>
<option value="carlosgamma">Wendy Carlos Gamma</option>
<option value="65cet">65 cent Equal Temperament</option>
<option value="88cet">88 cent Equal Temperament</option>
</optgroup>
</select>
</div>
</form>
</div>
<!-- Modify Modals -->
<div id="modal_modify_stretch" class="modal" title="Stretch/compress tuning">
<p>This applies a stretching or compression evenly across the whole scale.<br />Entering 1 will cause no change;
entering 2 will make every interval twice as large.</p>
<form>
<label>Stretch ratio</label>
<div class="form-group">
<input id="input_stretch_ratio" name="" type="number" class="form-control" value="1.005" min="0.0001"
max="99999" />
</div>
</form>
</div>
<div id="modal_modify_random_variance" class="modal" title="Random variance">
<p>This will add a random amount of detuning to each note of the scale.</p>
<form>
<label>Maximum variance in cents</label>
<div class="form-group">
<input id="input_cents_max_variance" name="" type="number" class="form-control" value="10" min="0"
max="99999" />
</div>
<div class="checkbox"
title="By default, the 'octave' won't be detuned. This prevents the scale sound progressively more out-of-tune as you go up/down by octaves. Check this box option to over-ride this.">
<label>
<input id="input_checkbox_vary_period" type="checkbox" /> Vary the octave
</label>
</div>
</form>
</div>
<div id="modal_modify_mode" class="modal" title="Subset">
<p>Select a subset from the current scale.</p>
<form>
<label>Mode</label>
<div class="form-group">
<div class="input-group">
<input id="input_modify_mode" name="" type="text" class="form-control" value="" placeholder="2 2 1 2 2 2 1" />
<div class="input-group-addon">
<span id="input_modify_mode_counter"></span>
</div>
</div>
<div class="form-row">
<button class="btn btn-default" id="input_mode_step_left" type="button">«</button>
<button class="btn btn-default" id="input_mode_step_right" type="button">»</button>
</div>
<div class="radio">
<label><input type="radio" name="mode_type" value="intervals" checked>Intervals (e.g. 2 2 1 2 2 2 1)</label>
</div>
<div class="radio">
<label><input type="radio" name="mode_type" value="frombase">From base note (e.g. 2 4 5 7 9 11 12)</label>
</div>
<div class="radio">
<label><input type="radio" name="mode_type" value="mos">MOS Mode (select a degree to stack)</label>
</div>
<div id="mos_mode_options">
<div class="form-row">
<div class="form-group col-md-6">
<label> Degree </label>
<select class="form-control" id="modal_modify_mos_degree"></select>
</div>
<div class="form-group col-md-6">
<label> Size </label>
<select class="form-control" id="modal_modify_mos_size"></select>
</div>
</div>
</div>
</div>
</form>
</div>
<div id="modal_modify_sync_beating" class="modal" title="Tempo-sync beating">
<a href="guide.htm#tempo-sync-beating" target="_blank"><span class="glyphicon glyphicon-question-sign"
aria-hidden="true" style="float:right;"></span></a>
<form>
<label>BPM</label>
<div class="form-group">
<input id="input_modify_sync_beating_bpm" name="" type="number" class="form-control" value="100"
placeholder="100" />
</div>
<label>Resolution</label>
<div class="form-group">
<select id="select_sync_beating_resolution" name="" class="form-control">
<option value="16">16 (2^4)</option>
<option value="24">24 (2^3 . 3)</option>
<option value="27">27 (3^3)</option>
<option value="30">30 (2 . 3 . 5)</option>
<option value="32">32 (2^5)</option>
<option value="48">48 (2^4 . 3)</option>
<option value="64" selected>64 (2^6)</option>
<option value="96">96 (2^5 . 3)</option>
<option value="128">128 (2^7)</option>
<option value="144">144 (2^4 . 3^2)</option>
<option value="192">192 (2^6 . 3)</option>
<option value="256">256 (2^8)</option>
<option value="512">512 (2^9)</option>
<option value="1024">1024 (2^10)</option>
<option value="2048">2048 (2^11)</option>
<option value="2310">2310 (2 . 3 . 5 . 7 . 11)</option>
</select>
</div>
</form>
</div>
<div id="modal_approximate_intervals" class="modal" title="Approximate by ratios">
<p>Select a ratio that approximates the interval.</p>
<form>
<label>Scale Degree</label>
<div class="form-group">
<input id="input_scale_degree" name="" type="number" class="form-control" value="1" min="1" max="128" />
</div>
<label>Interval</label>
<div class="form-group">
<input id="input_interval_to_approximate" name="" tyep="number" class="form-control" value="" />
</div>
<div class="form-group">
<label>Approximation</label>
<select class="form-control" id="approximation_selection"></select>
</div>
<div class="form-group">
<label>
<input id="input_show_convergents" type="checkbox"> Only show convergents</input>
</label>
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label>Min Error</label>
<input id="input_min_error" name="" type="number" class="form-control" value="0.0" min="0"
max="200.0">cents</input>
</div>
<div class="form-group col-md-6">
<label>Max Error</label>
<input id="input_max_error" name="" type="number" class="form-control" value="15.0" min="1.0"
max="200.0">cents</input>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label>Min Prime Limit</label>
<input id="input_approx_min_prime" name="" type="number" class="form-control" value="2" min="0"
max="7919" />
</div>
<div class="form-group col-md-6">
<label>Max Prime Limit</label>
<input id="input_approx_max_prime" name="" type="number" class="form-control" value="31" min="0"
max="7919" />
</div>
</div>
</form>
</div>
<div id="modal_approximate_harmonics" class="modal" title="Approximate by harmonics">
<form>
<label>Denonimator</label>
<div class="form-group">
<input id="input_approx_harm_denominator" name="" type="number" class="form-control" value="128" min="1" max="1000000" />
</div>
</form>
</div>
<div id="modal_approximate_subharmonics" class="modal" title="Approximate by subharmonics">
<p>Note: if you enter an odd number, the interval of equivalence will change (e.g. mistuned octaves)</p>
<form>
<label>Numerator</label>
<div class="form-group">
<input id="input_approx_subharm_numerator" name="" type="number" class="form-control" value="128" min="1" max="1000000" />
</div>
</form>
</div>
<div id="modal_equalize" class="modal" title="Equalize">
<p>Divides your interval of equivalence into an equal number of steps, then rounds each interval in your scale to the nearest equal step.</p>
<form>
<label>Equal divisions</label>
<div class="form-group">
<input id="input_equalize_divisions" name="" type="number" class="form-control" value="" min="1" max="1000000" />
</div>
</form>
</div>
<div id="modal_modify_octave_reduce" class="modal" title="Reduce">
<p>Makes your entire scale fit within a desired 'modulus' interval, typically 2/1. Intervals in your scale which are larger than the modulus will wrap around, leaving only a remainder.</p>
<form>
<label>Modulus</label>
<div class="form-group">
<input id="input_reduce_octave" name="" type="text" class="form-control" value="2/1" placeholder="2/1" />
</div>
<div class="form-group">
<label>
<input id="input_reduce_also_sort" type="checkbox" checked="checked" /> Sort resulting scale ascendingly
</label>
</div>
</form>
</div>
<div id="modal_modify_rotate" class="modal" title="Rotate">
<p>Rotates the mode of your scale.</p>
<p>The resulting scale will be sorted ascendingly.</p>
<form>
<label>New 1/1</label>
<div class="form-group">
<select id="input_rotate_new_1_1" class="form-control">
</select>
</div>
</form>
</div>
<!-- Export Modals -->
<div id="modal_share_url" class="modal" title="Share scale as URL">
<p>Share your scale using the sharing link.</p>
<form>
<div class="form-group">
<input id="input_share_url" name="" type="text" class="form-control" value="" readonly />
</div>
</form>
<p class="social-icons">
<a class="social-icons-email" href="#" title="Send scale via email"><span class="socicon-mail"></span></a>
<a class="social-icons-twitter" href="#" title="Tweet this scale"><span class="socicon-twitter"></span></a>
</p>
</div>
<div id="modal_reaper_named_notes" class="modal" title="Reaper Note Name Map">
<p>Select the options for the note map.</p>
<form>
<div class="form-group">
<label>Pitch Format:</label>
<select id="input_reaper_pitch_format" class="form-control">
<option value="scale data">Scale Data</option>
<option value="cents">Cents</option>
<option value="freq">Frequencies</option>
<option value="decimal">Decimal Ratio</option>
<option value="degree">Scale Degree</option>
</select>
</div>
<div class="form-group">
<label>Period options:</label>
<div class="checkbox">
<label title="Show the number of periods away from the base note next to the pitch">
<input id="input_reaper_show_period_numbers" type="checkbox" name="period-format" checked> Show period number</input>
</label>
</div>
<div class="checkbox">
<label title="Transpose the scale intervals by the period across the whole range of notes">
<input id="input_reaper_calculate_periods" type="checkbox" name="period-format"> Calculate period in pitch</input>
</label>
</div>
</div>
<div id="modal_reaper_root_period_group" class="form-group">
<label title="The number of periods from which the base note is offset">Base Period Number: </label>
<input id="input_reaper_root_period" type="number" class="form-control" value="0"></input>
</div>
<div id="modal_reaper_root_cents_group" class="form-group">
<label title="An offset of cents at which the base note set">Base Cents Value: </label>
<input id="input_reaper_root_cents" type="number" class="form-control" value="0.0"></input>
</div>
<div id="modal_reaper_root_degree_group" class="form-group">
<label title="An offset of degrees at which the base note is set">Base Degree Value: </label>
<input id="input_reaper_root_degree" type="number" class="form-control" value="0"></input>
</div>
</form>
</div>
<!-- MIDI Settings modal -->
<div id="modal_midi_settings" class="modal" title="MIDI settings">
<div style="display:flex">
<div class="form-group" style="flex-grow:1">
<label for="midi-enabler">MIDI</label>
<button type="button" class="btn btn-danger" id="midi-enabler">off</button>
</div>
<div class="form-group">
<button type="button" class="btn btn-success" id="velocity-toggler">velocity: on</button>
</div>
</div>
<form>
<div class="form-group">
<label>Input device ports</label>
</div>
<div class="inputs"></div>
<div class="form-group">
<label>Output device ports</label>
</div>
<div class="outputs"></div>
<div class="form-group">
<label>Other settings</label>
</div>
<div class="settings">
<div class="row">
<div class="checkbox-wrapper">
<input id="input_midi_whitemode" type="checkbox" />
</div>
<label for="input_midi_whitemode">Map to white keys only</label>
</div>
</div>
</form>
</div>
<!-- About Scale Workshop modal -->
<div id="modal_about_scale_workshop" class="modal text-center" title="About Scale Workshop">
<img src="src/assets/favicon/android-chrome-192x192.png" style="margin-top: 2em;" />
<h2 id="about_version"></h2>
<p><em>Because there are more than 12 notes</em></p>
<hr />
<p>Sevish, Lajos Mészáros, Vincenzo Sicurella, Lumi Pakkanen, Scott Thompson, Carl Lumma, Tobia, Azorlogh</p>
</div>
<!-- Play virtual keyboard -->
<table id="virtual-keyboard">
<tr class="hidden-xs hidden-sm">
<td data-coord="[3,0]"></td>
<td data-coord="[3,1]"></td>
<td data-coord="[3,2]"></td>
<td data-coord="[3,3]"></td>
<td data-coord="[3,4]"></td>
<td data-coord="[3,5]"></td>
<td data-coord="[3,6]"></td>
<td data-coord="[3,7]"></td>
<td data-coord="[3,8]"></td>
<td data-coord="[3,9]"></td>
<td data-coord="[3,10]"></td>
<td data-coord="[3,11]"></td>
<td data-coord="[3,12]"></td>
</tr>
<tr>
<td data-coord="[2,0]"></td>
<td data-coord="[2,1]"></td>
<td data-coord="[2,2]"></td>
<td data-coord="[2,3]"></td>
<td data-coord="[2,4]"></td>
<td data-coord="[2,5]"></td>
<td data-coord="[2,6]"></td>
<td data-coord="[2,7]"></td>
<td data-coord="[2,8]"></td>
<td data-coord="[2,9]" class="hidden-xs hidden-sm"></td>
<td data-coord="[2,10]" class="hidden-xs hidden-sm"></td>
<td data-coord="[2,11]" class="hidden-xs hidden-sm"></td>
<td data-coord="[2,12]" class="hidden-xs hidden-sm"></td>
</tr>
<tr>
<td data-coord="[1,0]"></td>
<td data-coord="[1,1]"></td>
<td data-coord="[1,2]"></td>
<td data-coord="[1,3]"></td>
<td data-coord="[1,4]"></td>
<td data-coord="[1,5]"></td>
<td data-coord="[1,6]"></td>
<td data-coord="[1,7]"></td>
<td data-coord="[1,8]"></td>
<td data-coord="[1,9]" class="hidden-xs hidden-sm"></td>
<td data-coord="[1,10]" class="hidden-xs hidden-sm"></td>
<td data-coord="[1,11]" class="hidden-xs hidden-sm"></td>
<td data-coord="[1,12]" class="hidden-xs hidden-sm"></td>
</tr>