JE Transcore
Tool for JE score transferring.
What is JE score?
Introduction for JE score and BD score
Usage
npm install je-transcore
; const input = `#2#5#5 5#3#2#6#5#1#2#35#5 #7#6#5 1#1#2 1#1#2 #35#5 1#55#3#2#3#3#3#2#1(#7) (#6)(#6)(#7)#1#1#1(#7)(#6)1#1#2 3#35 #35#5 1#55#55#3#3#3#2#6#5 (#6)(#7)#1#2#3#25#5 [#2#55#5#6#5]#5#1(#7)#1#5#5 #3#35#55#3#2(#6)(#7) #1#1#2#1#2 #2#2#355#5#3 5#5#3#35#5 #5#55#5#6 [#5#5#5#5#5#6#6] #2#2#6 #6#5#6#7#7#2#6#6#5#6#7#55#55#3#2#5 #1#2#3#5#7[#1]#6#2#2#6 #6#5#6#7#7#2#6 #6#5#6#7#1#7#5#35#5#6#7 #1#5#5#6#7#6#5#5#2#3 #35#5#5#6#7#6#5#5`; const result = Transcore;console; `255 #43265123#45 765 (7)12 (7)12 3#45 (7)5#43233321(7) (667)111(76)(7)12 #23#4 3#45 (7)5#45#4333265 (67)1232#45 [25#4565]51(7)155 33#45#432(67) 11212 223#4#453 #4533#45 55#456 [5555566] 226 656772665675#45#4325 12357[1]6226 6567726 65671753#4567 1556765523 3#45567655`;
API
Transcore.tune(source, options): String
source:
Source score
options:
mode: 'JE'default 'BD' // mode JE offset: Number Change tune by offset preferSharpE: Boolean Output `#3` instead of `4` preferSharpB: Boolean Output `#7` instead of `[1]` // mode BD preferSharp: Boolean Output `(D4)(B6)` instead of `B5D6` preferLeft: Boolean Output `B4` instead of `B5` // It will be `(D4)` when both of them are true
Example
const input = '(7)1#12#2345#56#67[1]';const result = Transcore;console;// (7#7)#12#23#35#56#67#7
Transcore.toBD(source, options): String
source:
Source score, JE format
options:
preferSharp: Boolean Output `(D4)(B6)` instead of `B5D6` preferLeft: Boolean Output `B4` instead of `B5` // It will be `(D4)` when both of them are true
Example
const input = '(7)1#12#2345#56#67[1]';const result = Transcore;console;// D4(D4)(B5)D5(D5)B6(B6)B7(B7)D7(D7)D8(D8)
Transcore.toJE(source, options): String
source:
Source score, BD format
options:
offset: Number Change tune by offset preferSharpE: Boolean Output `#3` instead of `4` preferSharpB: Boolean Output `#7` instead of `[1]`
Example
const input = 'D4B5(B5)D5(D5)B6D6B7(B7)D7(D7)D8B9';const result = Transcore;// (7)1#12#2345#56#67[1]
License
MIT