From e690ef14c1ce88fb2bc3369eff067086a8d5f63b Mon Sep 17 00:00:00 2001 From: krippix Date: Mon, 5 Jun 2023 17:47:46 +0200 Subject: [PATCH] split notes up into categories --- html/assets/scripts/map.js | 326 +++++++++++++++++++------------------ 1 file changed, 167 insertions(+), 159 deletions(-) diff --git a/html/assets/scripts/map.js b/html/assets/scripts/map.js index 9a12695..2595ba1 100644 --- a/html/assets/scripts/map.js +++ b/html/assets/scripts/map.js @@ -1,161 +1,169 @@ // access ex: noteMap.get("C0"); // Maps key names to key number -{ - let values = [ - ["A0" , 1], - ["A#0", 2], - ["Bb0", 2], - ["B0" , 3], - ["B#0", 4], - ["Cb1", 3], - ["C1" , 4], - ["C#1", 5], - ["Db1", 5], - ["D1" , 6], - ["D#1", 7], - ["Eb1", 7], - ["E1" , 8], - ["E#1", 9], - ["Fb1", 8], - ["F1" , 9], - ["F#1",10], - ["Gb1",10], - ["G1" ,11], - ["G#1",12], - ["Ab1",12], - ["A1" ,13], - ["A#1",14], - ["Bb1",14], - ["B1" ,15], - ["B#1",16], - ["Cb2",15], - ["C2" ,16], - ["C#2",17], - ["Db2",17], - ["D2" ,18], - ["D#2",19], - ["Eb2",19], - ["E2" ,20], - ["E#2",21], - ["Fb2",20], - ["F2" ,21], - ["F#2",22], - ["Gb2",22], - ["G2" ,23], - ["G#2",24], - ["Ab2",24], - ["A2" ,25], - ["A#2",26], - ["Bb2",26], - ["B2" ,27], - ["B#2",28], - ["Cb3",27], - ["C3" ,28], - ["C#3",29], - ["Db3",29], - ["D3" ,30], - ["D#3",31], - ["Eb3",31], - ["E3" ,32], - ["E#3",33], - ["Fb3",32], - ["F3" ,33], - ["F#3",34], - ["Gb3",34], - ["G3" ,35], - ["G#3",36], - ["Ab3",36], - ["A3" ,37], - ["A#3",38], - ["Bb3",38], - ["B3" ,39], - ["B#3",40], - ["Cb4",39], - ["C4" ,40], - ["C#4",41], - ["Db4",41], - ["D4" ,42], - ["D#4",43], - ["Eb4",43], - ["E4" ,44], - ["E#4",45], - ["Fb4",44], - ["F4" ,45], - ["F#4",46], - ["Gb4",46], - ["G4" ,47], - ["G#4",48], - ["Ab4",48], - ["A4" ,49], - ["A#4",50], - ["Bb4",50], - ["B4" ,51], - ["B#4",52], - ["Cb5",51], - ["C5" ,52], - ["C#5",53], - ["Db5",53], - ["D5" ,54], - ["D#5",55], - ["Eb5",55], - ["E5" ,56], - ["E#5",57], - ["Fb5",56], - ["F5" ,57], - ["F#5",58], - ["Gb5",58], - ["G5" ,59], - ["G#5",60], - ["Ab5",60], - ["A5" ,61], - ["A#5",62], - ["Bb5",62], - ["B5" ,63], - ["B#5",64], - ["Cb6",63], - ["C6" ,64], - ["C#6",65], - ["Db6",65], - ["D6" ,66], - ["D#6",67], - ["Eb6",67], - ["E6" ,68], - ["E#6",69], - ["Fb6",68], - ["F6" ,69], - ["F#6",70], - ["Gb6",70], - ["G6" ,71], - ["G#6",72], - ["Ab6",72], - ["A6" ,73], - ["A#6",74], - ["Bb6",74], - ["B6" ,75], - ["B#6",76], - ["Cb7",75], - ["C7" ,76], - ["C#7",77], - ["Db7",77], - ["D7" ,78], - ["D#7",79], - ["Eb7",79], - ["E7" ,80], - ["E#7",81], - ["Fb7",80], - ["F7" ,81], - ["F#7",82], - ["Gb7",82], - ["G7" ,83], - ["G#7",84], - ["Ab7",84], - ["A7" ,85], - ["A#7",86], - ["Bb7",86], - ["B7" ,87], - ["B#7",88], - ["Cb8",87], - ["C8", 88] - ]; - var noteMap = new Map(values); -} \ No newline at end of file + +var nat_values = [ + ["C/2" ,16], + ["D/2" ,18], + ["E/2" ,20], + ["F/2" ,21], + ["G/2" ,23], + ["A/2" ,25], + ["B/2" ,27], + ["C/3" ,28], + ["D/3" ,30], + ["E/3" ,32], + ["F/3" ,33], + ["G/3" ,35], + ["A/3" ,37], + ["B/3" ,39], + ["C/4" ,40], + ["D/4" ,42], + ["E/4" ,44], + ["F/4" ,45], + ["G/4" ,47], + ["A/4" ,49], + ["B/4" ,51], + ["C/5" ,52], + ["D/5" ,54], + ["E/5" ,56], + ["F/5" ,57], + ["G/5" ,59], + ["A/5" ,61], + ["B/5" ,63], + ["C/6" ,64] +]; +var nat_values_ex = [ + ["A/0" , 1], + ["B/0" , 3], + ["C/1" , 4], + ["D/1" , 6], + ["E/1" , 8], + ["F/1" , 9], + ["G/1" ,11], + ["A/1" ,13], + ["B/1" ,15], + ["D/6" ,66], + ["E/6" ,68], + ["F/6" ,69], + ["G/6" ,71], + ["A/6" ,73], + ["B/6" ,75], + ["C/7" ,76], + ["D/7" ,78], + ["E/7" ,80], + ["F/7" ,81], + ["G/7" ,83], + ["A/7" ,85], + ["B/7" ,87], + ["C/8", 88] +]; +var shp_values = [ + ["C#/2",17], + ["D#/2",19], + ["E#/2",21], + ["F#/2",22], + ["G#/2",24], + ["A#/2",26], + ["B#/2",28], + ["C#/3",29], + ["D#/3",31], + ["E#/3",33], + ["F#/3",34], + ["G#/3",36], + ["A#/3",38], + ["B#/3",40], + ["C#/4",41], + ["D#/4",43], + ["E#/4",45], + ["F#/4",46], + ["G#/4",48], + ["A#/4",50], + ["B#/4",52], + ["C#/5",53], + ["D#/5",55], + ["E#/5",57], + ["F#/5",58], + ["G#/5",60], + ["A#/5",62], + ["B#/5",64], + ["C#/6",65] +]; +var shp_values_ex = [ + ["A#/0", 2], + ["B#/0", 4], + ["C#/1", 5], + ["D#/1", 7], + ["E#/1", 9], + ["F#/1",10], + ["G#/1",12], + ["A#/1",14], + ["B#/1",16], + ["D#/6",67], + ["E#/6",69], + ["F#/6",70], + ["G#/6",72], + ["A#/6",74], + ["B#/6",76], + ["C#/7",77], + ["D#/7",79], + ["E#/7",81], + ["F#/7",82], + ["G#/7",84], + ["A#/7",86], + ["B#/7",88] +]; +var flt_values = [ + ["Cb/2",15], + ["Db/2",17], + ["Eb/2",19], + ["Fb/2",20], + ["Gb/2",22], + ["Ab/2",24], + ["Bb/2",26], + ["Cb/3",27], + ["Db/3",29], + ["Eb/3",31], + ["Fb/3",32], + ["Gb/3",34], + ["Ab/3",36], + ["Bb/3",38], + ["Cb/4",39], + ["Db/4",41], + ["Eb/4",43], + ["Fb/4",44], + ["Gb/4",46], + ["Ab/4",48], + ["Bb/4",50], + ["Cb/5",51], + ["Db/5",53], + ["Eb/5",55], + ["Fb/5",56], + ["Gb/5",58], + ["Ab/5",60], + ["Bb/5",62], + ["Cb/6",63] +]; +flt_values_ex = [ + ["Bb/0", 2], + ["Cb/1", 3], + ["Db/1", 5], + ["Eb/1", 7], + ["Fb/1", 8], + ["Gb/1",10], + ["Ab/1",12], + ["Bb/1",14], + ["Db/6",65], + ["Eb/6",67], + ["Fb/6",68], + ["Gb/6",70], + ["Ab/6",72], + ["Bb/6",74], + ["Cb/7",75], + ["Db/7",77], + ["Eb/7",79], + ["Fb/7",80], + ["Gb/7",82], + ["Ab/7",84], + ["Bb/7",86], + ["Cb/8",87] +] \ No newline at end of file