每一個(gè)音符的跳動(dòng),就是一根頭發(fā)的飄落,毫無(wú)例外,沒(méi)有一個(gè)音符是無(wú)辜的。
一、寫在前面
完整的《卡農(nóng)》例譜在最后一個(gè)章節(jié)
看到這里,說(shuō)明你已經(jīng)對(duì)如何安裝autojs,腳本使用等基本操作已經(jīng)了然于心,如果還不懂,你需要回去看使用教程,不用繼續(xù)往下讀這篇教程。
言歸正傳,在曲譜制作中,只需要關(guān)注以下代碼,其他代碼不用動(dòng):
const Song= {
bpm: 80,
beat_n: 4,
beat_m: 4,
music: [[
]]
}
注意:在寫曲譜時(shí),一定要把輸入法調(diào)為英文模式,特別注意寫冒號(hào):和雙引號(hào)""時(shí),一定要使用英文的,否則腳本無(wú)法運(yùn)行。
二、通用配置介紹
1. bpm
bpm是控制彈奏速度的參數(shù),值越大,速度越快。
2. 拍號(hào)
拍號(hào)在標(biāo)準(zhǔn)的五線譜、簡(jiǎn)譜和吉他譜等左上角一般都標(biāo)有,如下圖吉他譜所示:

五線譜和簡(jiǎn)譜也有類似的記號(hào),照抄對(duì)號(hào)入座即可。
在彈奏腳本中
-
beat_n為拍號(hào)的分子,表示一小節(jié)(標(biāo)準(zhǔn)譜中每一小節(jié)使用豎線隔開(kāi))有多少拍。 -
beat_m為拍號(hào)的分母,表示四分音符為一拍。
beat_n和beat_m的值根據(jù)譜子標(biāo)有的拍號(hào)進(jìn)行填寫即可。
注意:通用配置中的的三個(gè)參數(shù)bpm、bea_n和beat_m一定要填寫,這三個(gè)參數(shù)是決定演奏速度和音符時(shí)值的必備參數(shù)。
3. music參數(shù)
在彈奏腳本中,彈奏的音符寫到music之中。如下代碼所示:
const Song= {
bpm: 80,
beat_n: 4,
beat_m: 4,
music: [[
// 表示彈奏一個(gè)八分音符的1
{"rc": "1", "note": 8}
...
]]
}
下面開(kāi)始正式進(jìn)入樂(lè)曲的編寫。
三、樂(lè)曲編寫
在彈奏腳本中,彈奏的音符均寫在music的雙[[ ]]中,每個(gè)音符使用花括號(hào){}括起來(lái),每個(gè){}代表彈一下。
1. 音符參數(shù)說(shuō)明
-
note:(必填)用于計(jì)算音符時(shí)值,如4分音符,8分音符 -
rc:(選填)旋律音,為單音,只能放一個(gè)音,也可以不寫,代替的方式是旋律音也寫在chord中。如果遇到附點(diǎn)音符、延音符、休止符都可以用0或-代替,表示不彈,但是時(shí)值note一定要對(duì)。 -
chord:(選填)和弦音,可以放多個(gè)音,表示同時(shí)彈奏放置的音,如何rc和chord同時(shí)存在,rc音和chord同時(shí)彈。旋律音也可以寫到這里,二選一。 -
高中低音:_下劃線開(kāi)頭為低音,無(wú)前后綴為中音,_下劃線結(jié)尾為高音
2. 單音曲譜編寫
單音曲譜編寫最為簡(jiǎn)單,最好參考簡(jiǎn)譜來(lái)對(duì)照編寫,下面以青花瓷簡(jiǎn)譜第一小節(jié)為例:

const Song= {
bpm: 80,
beat_n: 4,
beat_m: 4,
music: [[
/** 第一小節(jié) **/
// 第一拍
{"rc": "1", "note": 8},
{"rc": "1", "note": 16},
{"rc": "_6", "note": 16},
// 第二拍
{"rc": "1", "note": 8},
{"rc": "1", "note": 16},
{"rc": "_6", "note": 16},
// 第三拍
{"rc": "1", "note": 16},
{"rc": "_6", "note": 16},
{"rc": "_5", "note": 8},
// 第四拍
{"rc": "0", "note": 16},
{"rc": "2", "note": 16},
{"rc": "1", "note": 16},
{"rc": "_6", "note": 16},
...
]]
}
解析:
-
/** **/和//表示注釋,注釋是為了說(shuō)明和記憶,可以寫任何你想寫的說(shuō)明,腳本會(huì)忽略不執(zhí)行; - 第一個(gè)
1,寫在rc中,用雙引號(hào)""括起來(lái),因?yàn)檫@個(gè)1下面有一條線,是一個(gè)八分音符,所以note中寫8,不需要用雙引號(hào)括起來(lái) - 第二個(gè)
1,下面有兩條線,是一個(gè)十六分音符,所以note中寫16,以此類推,下面不在贅述。 - 由拍號(hào)
4/4可知,一個(gè)小節(jié)有4拍,四分音符為一拍,意思就是將一個(gè)小節(jié)分為4個(gè)等分,遂有等式1/4 + 1/4 + 1/4 + 1/4 = 1。上面的樂(lè)句中,四分音符繼續(xù)拆分,如第一小節(jié)第一拍,分為1個(gè)八分音符和2個(gè)十六分音符,所以有等式1/8 + 1/16 + 1/16 = 1/4,因此整個(gè)小節(jié),可以用等式1/8 + 1/16 + 1/16 + 1/8 + 1/16 + 1/16 + 1/16 + 1/8 + 1/16 + 1/16 + 1/16 + 1/16 = 1表示,這是用來(lái)檢查每一個(gè)小節(jié)是否編寫是否正確的好方法。
3. 帶和弦的曲譜編寫
和弦是什么,可以百度一下,它的表現(xiàn)就是同時(shí)按幾個(gè)音,這種曲譜的編寫可以對(duì)照五線譜、雙手版鋼琴數(shù)字譜和吉他譜來(lái)進(jìn)行。也可以理解為多音軌樂(lè)曲,我們的主要任務(wù)就是將多音軌融合成一個(gè)音軌,這是重點(diǎn)。
(1)對(duì)照雙手版數(shù)字譜編寫
下面以泰勒的LoveStory節(jié)選片段中紅框標(biāo)注處為例:

const Song= {
bpm: 80,
beat_n: 4,
beat_m: 4,
music: [[
// 第一種寫法
{"rc": "1", "note": 8, "chord": "_1"},
{"rc": "1", "note": 8, "chord": "_1"},
{"rc": "4", "note": 8, "chord": "_1"},
{"rc": "3", "note": 8, "chord": "_1"},
{"rc": "2", "note": 8, "chord": "_1"},
{"rc": "1", "note": 8, "chord": "_1"},
// 第二種寫法
{"note": 8, "chord": "1,_1"},
{"note": 8, "chord": "1,_1"},
{"note": 8, "chord": "4,_1"},
{"note": 8, "chord": "3,_1"},
{"note": 8, "chord": "2,_1"},
{"note": 8, "chord": "1,_1"},
...
]]
}
解析:
- 兩種種寫法,效果相同,可以使用
rc和chord將主旋律和和弦分開(kāi),也可以將旋律和和弦混寫在chord中。在音符參數(shù)說(shuō)明中已經(jīng)詳細(xì)說(shuō)明,這里不再贅述,不懂的可以返回去看; - 融合技巧:
- 上下節(jié)拍一一對(duì)正,相同的分音符融合后分音符不變,如上下對(duì)應(yīng)的皆為四分音符,則note值為
4。 - 大的分音符和小的分音符融合,融合后分音符取小的分音符,如上4下8,則融合后
note為8,即把4分音符當(dāng)8分音符使,因?yàn)槟_本只是點(diǎn)擊后立即放開(kāi),4分音符和8分音符的效果是一樣的,不一樣的是點(diǎn)擊后停頓的時(shí)間,這個(gè)時(shí)間就不能省略。比如上面一排的第一小節(jié)第二拍的4為四分音符,下面一排的的第二拍為兩個(gè)八分音符_1,因?yàn)樗鼈兪峭慌牡?,所?code>4和第一個(gè)八分音符_1融合,融合后取小的分音符(八分音符時(shí)值比四分音符時(shí)值?。?,所以note為8,寫為{"rc":"1", "note": 8, "chord": "_1"}或{"note": 8, "chord": "4,_1"}
(2)對(duì)照五線譜編寫

(3)對(duì)照吉他指彈譜編寫

四、特殊音符的寫法
這里所說(shuō)的特殊音符主要是指休止符、附點(diǎn)音符、延音線和連音符(三連音、五連音等等),下面進(jìn)行一一舉例說(shuō)明
1. 休止符
休止符的標(biāo)識(shí)如下圖所示:

在簡(jiǎn)譜中,四分休止符也用橫杠
-表示。下面還是以送別節(jié)選片段為例,如下圖:

const Song= {
bpm: 80,
beat_n: 4,
beat_m: 4,
music: [[
// 第一小節(jié)
{"rc": "5", "note": 4},
{"rc": "3", "note": 8},
{"rc": "5", "note": 8},
{"rc": "1_", "note": 4},
{"rc": "0", "note": 4}, // 四分休止符
// 第四小節(jié)
{"rc": "2", "note": 4},
{"rc": "0", "note": 4}, // 四分休止符
{"rc": "0", "note": 4}, // 四分休止符
{"rc": "0", "note": 4}, // 四分休止符
...
]]
}
解析:
休止符除了在rc中使用"0"表示外,還可以使用"-"或直接不寫rc,note的值就是多少分休止符就寫多少,如下代碼所示:
// 以下三種寫法的效果都是一樣的,都表示四分休止符,簡(jiǎn)便寫法可以使用第三種
// 1. 在rc中填0,note填相應(yīng)的分音符值
{"rc": "0", "note": 4},
// 2. 在rc中填 - ,note填相應(yīng)的分音符值
{"rc": "-", "note": 4},
// 3. 不寫rc,note填相應(yīng)的分音符值
{"note": 4},
五線譜和吉他譜的寫法和上面的寫法一樣,這里不再一一詳細(xì)說(shuō)明。
2. 附點(diǎn)音符
附點(diǎn)音符用一個(gè)小圓點(diǎn)表示,表示延長(zhǎng)前面音符時(shí)值的一半,如一個(gè)四分音符,后面跟著附點(diǎn)音符,表示這個(gè)音符的時(shí)值=四分音符的時(shí)值+八分音符的時(shí)值
附點(diǎn)音符在五線譜中的標(biāo)識(shí)如下圖所示:

下面以送別節(jié)選片段紅框標(biāo)注小節(jié)為例,如下圖:

const Song= {
bpm: 80,
beat_n: 4,
beat_m: 4,
music: [[
// 第一小節(jié)
{"rc": "5", "note": 4},
{"rc": "3", "note": 8},
{"rc": "5", "note": 8},
{"rc": "1_", "note": 4},
{"rc": "0", "note": 8}, // 附點(diǎn)四分音符,注意:附點(diǎn)四分音符note為8,是前面音符note*2
{"rc": "7", "note": 8},
...
]]
}
解析:
附點(diǎn)音符和休止符寫法一致,除了在rc中使用"0"表示外,還可以使用"-"或直接不寫rc,note的值是前面音符note*2,如下代碼所示:
// 以下三種寫法的效果都是一樣的,都表示附點(diǎn)四分音符,簡(jiǎn)便寫法可以使用第三種
// 1. 在rc中填0,note填前面音符的2倍
{"rc": "0", "note": 8},
// 2. 在rc中填 - ,note填前面音符的2倍
{"rc": "-", "note": 8},
// 3. 不寫rc,note填前面音符的2倍
{"note": 8},
3. 延音線
延音線是一條向上或向下彎曲的弧線,其作用是將兩個(gè)具有相同音高的音符相連,弧線尾端的音不彈,它的長(zhǎng)度等于兩個(gè)音符的總和。注意要和圓滑線區(qū)分開(kāi)來(lái),音高相同則為延音線,音高不同圓滑線,圓滑線可以忽略。
下面以成都節(jié)選片段紅框標(biāo)注為例,如下圖:

如圖紅框標(biāo)注所示,因?yàn)榛【€兩邊的音為同音高,所以這個(gè)是一條延音線,寫法如所示:
const Song= {
bpm: 80,
beat_n: 4,
beat_m: 4,
music: [[
{"rc": "6", "note": 4},
{"rc": "3", "note": 4},
{"rc": "5", "note": 4},
{"rc": "0", "note": 4}, // 延音線
{"rc": "3", "note": 4},
{"rc": "2", "note": 4},
...
]]
}
解析:
延音線和附點(diǎn)音符與休止符寫法也是一致的,除了在rc中使用"0"表示外,還可以使用"-"或直接不寫rc,note的值是弧線尾端音符本身音符時(shí)值,如下代碼所示:
// 以下三種寫法的效果都是一樣的,都表示延音線,簡(jiǎn)便寫法可以使用第三種
// 1. 在rc中填0,note填弧線尾端音符本身的音符時(shí)值
{"rc": "0", "note": 8},
// 2. 在rc中填 - ,note填弧線尾端音符本身的音符時(shí)值
{"rc": "-", "note": 8},
// 3. 不寫rc,note填弧線尾端音符本身的音符時(shí)值
{"note": 8},
4. 連音符
連音符用弧線中間加阿拉伯?dāng)?shù)字,表示將弧線之間的音符時(shí)值自由均分。
下面以某歌曲節(jié)選片段為例:

const Song= {
bpm: 80,
beat_n: 4,
beat_m: 4,
music: [[
{"rc": "1", "note": 8},
{"rc": "3", "note": 8},
{"rc": "5", "note": 4},
{"rc": "6", "note": 4},
{"rc": "5", "note": 12}, // 三連音
{"rc": "4", "note": 12}, // 三連音
{"rc": "2", "note": 12}, // 三連音
...
]]
}
解析:
連音符主要是計(jì)算note值,連音一般占一拍的時(shí)值,所以要先弄清楚一拍的時(shí)值是多少,比如4/4拍,四分音符為一拍,就是把一拍分成3個(gè)等份,有等式1/4/3 = 1/12,所以三連音各音的note值為12,所以也可以推送算出5連音的note值為20。
5. 琶音(或吉他掃弦效果)
琶音指一串和弦音從低到高或從高到低依次連續(xù)奏出,可視為分解和弦
一般情況下,和弦的彈奏分為柱式和弦和分解和弦,柱式和弦就是同時(shí)彈奏和弦組成音,分解和弦則是先后彈奏和弦組成音,琶音可以視為即為極快速的分解和弦。在本模板中,柱式和弦的寫法是在chord中寫多個(gè)和弦的組成音,琶音則要分開(kāi)寫,把note值設(shè)置為大一點(diǎn)的值,值越大,彈奏速度越快,如下代碼所示:
// 柱式和弦寫法
{note: 8, chord: "1,3,5,1_"}
// 琶音
{note: 64, chord: "1"},
{note: 64, chord: "3"},
{note: 64, chord: "5"},
{note: 64, chord: "1_"},
五、《卡農(nóng)》完整附例
// 按鍵對(duì)應(yīng)的坐標(biāo)
const KeyMap = {
// 低音鍵位坐標(biāo)
"_1": [424, 991],
"_2": [693, 991],
"_3": [962, 991],
"_4": [1231, 991],
"_5": [1500, 991],
"_6": [1769, 991],
"_7": [2038, 991],
// 中音鍵位坐標(biāo)
"1": [424, 874],
"2": [693, 874],
"3": [962, 874],
"4": [1231, 874],
"5": [1500, 874],
"6": [1769, 874],
"7": [2038, 874],
// 高音鍵位坐標(biāo)
"1_": [424, 765],
"2_": [693, 765],
"3_": [962, 765],
"4_": [1231, 765],
"5_": [1500, 765],
"6_": [1769, 765],
"7_": [2038, 765],
}
// 曲譜定義
const Song = {
bpm: 80,
beat_n: 4,
beat_m: 4,
music: [[
// C G
{"rc": "3_", "note": 4, "chord": "1,5,1_"},
{"rc": "-", "note": 4},
{"rc": "7", "note": 4, "chord": "_5,2,5"},
{"rc": "-", "note": 4},
// Am Em
{"rc": "1_", "note": 4, "chord": "_6,3,6"},
{"rc": "-", "note": 4},
{"rc": "7", "note": 4, "chord": "_3,2,5"},
{"rc": "-", "note": 4},
// F C
{"rc": "6", "note": 4, "chord": "_4,1,4"},
{"rc": "-", "note": 4},
{"rc": "1_", "note": 4, "chord": "1,3,5"},
{"rc": "-", "note": 4},
// F G
{"rc": "6", "note": 4, "chord": "_4,1,4"},
{"rc": "-", "note": 4},
{"rc": "7", "note": 4, "chord": "_5,2,5"},
{"rc": "-", "note": 4},
// C G
{"rc": "3_", "note": 8, "chord": "1"},
{"rc": "0", "note": 8, "chord": "5"},
{"rc": "0", "note": 8, "chord": "1_"},
{"rc": "0", "note": 8, "chord": "3_"},
{"rc": "7", "note": 8, "chord": "_5"},
{"rc": "0", "note": 8, "chord": "2"},
{"rc": "0", "note": 8, "chord": "5"},
{"rc": "0", "note": 8, "chord": "7"},
// Am Em
{"rc": "1_", "note": 8, "chord": "_6"},
{"rc": "0", "note": 8, "chord": "3"},
{"rc": "0", "note": 8, "chord": "1_"},
{"rc": "0", "note": 8, "chord": "3_"},
{"rc": "7", "note": 8, "chord": "_3"},
{"rc": "0", "note": 8, "chord": "3"},
{"rc": "0", "note": 8, "chord": "5"},
{"rc": "0", "note": 8, "chord": "7"},
// F C
{"rc": "6", "note": 8, "chord": "_4"},
{"rc": "0", "note": 8, "chord": "1"},
{"rc": "0", "note": 8, "chord": "4"},
{"rc": "0", "note": 8, "chord": "6"},
{"rc": "5", "note": 8, "chord": "1"},
{"rc": "0", "note": 8, "chord": "3"},
{"rc": "0", "note": 8, "chord": "5"},
{"rc": "0", "note": 8, "chord": "1_"},
// F G
{"rc": "6", "note": 8, "chord": "_4"},
{"rc": "0", "note": 8, "chord": "1"},
{"rc": "0", "note": 8, "chord": "4"},
{"rc": "0", "note": 8, "chord": "6"},
{"rc": "7", "note": 8, "chord": "5_"},
{"rc": "0", "note": 8, "chord": "2"},
{"rc": "0", "note": 8, "chord": "5"},
{"rc": "0", "note": 8, "chord": "7"},
// C G
{"rc": "3_", "note": 8, "chord": "1"},
{"rc": "0", "note": 8, "chord": "5"},
{"rc": "0", "note": 8, "chord": "1_"},
{"rc": "0", "note": 8, "chord": "5"},
{"rc": "7", "note": 8, "chord": "_5"},
{"rc": "0", "note": 8, "chord": "2"},
{"rc": "0", "note": 8, "chord": "5"},
{"rc": "0", "note": 8, "chord": "2"},
// Am Em
{"rc": "1_", "note": 8, "chord": "_6"},
{"rc": "0", "note": 8, "chord": "3"},
{"rc": "3_", "note": 8},
{"rc": "0", "note": 8, "chord": "6"},
{"rc": "5_", "note": 8, "chord": "_3"},
{"rc": "0", "note": 8, "chord": "5"},
{"rc": "6_", "note": 8, "chord": "5_"},
{"rc": "0", "note": 8, "chord": "7"},
// F C
{"rc": "4_", "note": 8, "chord": "_4"},
{"rc": "0", "note": 8, "chord": "4"},
{"rc": "0", "note": 8, "chord": "1_"},
{"rc": "0", "note": 8, "chord": "_4"},
{"rc": "3_", "note": 8, "chord": "1"},
{"rc": "0", "note": 8, "chord": "7"},
{"rc": "0", "note": 8, "chord": "5"},
{"rc": "0", "note": 8, "chord": "1"},
// F G
{"rc": "1_", "note": 8, "chord": "_4"},
{"rc": "0", "note": 8, "chord": "4"},
{"rc": "0", "note": 8, "chord": "6"},
{"rc": "0", "note": 8, "chord": "1_"},
{"rc": "1_", "note": 8, "chord": "_5"},
{"rc": "0", "note": 8, "chord": "2"},
{"rc": "1_", "note": 8},
{"rc": "7", "note": 8},
// C G
{"rc": "1_", "note": 8, "chord": "1"},
{"rc": "7", "note": 8},
{"rc": "1_", "note": 8},
{"rc": "3", "note": 8},
{"rc": "5", "note": 8, "chord": "_5"},
{"rc": "0", "note": 8, "chord": "2"},
{"rc": "7", "note": 8},
{"rc": "0", "note": 8, "chord": "_5"},
// Am Em
{"rc": "1_", "note": 8, "chord": "_6"},
{"rc": "0", "note": 8, "chord": "3"},
{"rc": "3_", "note": 8},
{"rc": "0", "note": 8, "chord": "6"},
{"rc": "5_", "note": 8, "chord": "_3"},
{"rc": "3_", "note": 8},
{"rc": "5_", "note": 8},
{"rc": "6_", "note": 8},
// F C
{"rc": "4_", "note": 8, "chord": "_4"},
{"rc": "3_", "note": 8},
{"rc": "2_", "note": 8},
{"rc": "4_", "note": 8},
{"rc": "3_", "note": 8, "chord": "1"},
{"rc": "2_", "note": 8},
{"rc": "1_", "note": 8},
{"rc": "7", "note": 8},
// F Gsus4
{"rc": "6", "note": 8, "chord": "_4"},
{"rc": "-", "note": 8, "chord": "4"},
{"rc": "-", "note": 8, "chord": "6"},
{"rc": "1_", "note": 8},
{"rc": "1_", "note": 8, "chord": "_5"},
{"rc": "-", "note": 8, "chord": "2"},
{"rc": "1_", "note": 8},
{"rc": "7", "note": 8},
// C G
{"rc": "1_", "note": 8, "chord": "1"},
{"rc": "7", "note": 8},
{"rc": "1_", "note": 8},
{"rc": "3", "note": 8},
{"rc": "5", "note": 8, "chord": "_5"},
{"rc": "0", "note": 8, "chord": "2"},
{"rc": "7", "note": 8},
{"rc": "0", "note": 8, "chord": "_5"},
// Am Em
{"rc": "1_", "note": 8, "chord": "_6"},
{"rc": "0", "note": 8, "chord": "3"},
{"rc": "3_", "note": 8},
{"rc": "0", "note": 8, "chord": "6"},
{"rc": "5_", "note": 8, "chord": "_3"},
{"rc": "7", "note": 8},
{"rc": "5_", "note": 8},
{"rc": "6_", "note": 8},
// F C
{"rc": "4_", "note": 8, "chord": "_4"},
{"rc": "3_", "note": 8},
{"rc": "2_", "note": 8},
{"rc": "4_", "note": 8},
{"rc": "3_", "note": 8, "chord": "1"},
{"rc": "2_", "note": 8},
{"rc": "1_", "note": 8},
{"rc": "7", "note": 8},
// F Gsus4
{"rc": "6", "note": 8, "chord": "_4"},
{"rc": "-", "note": 8, "chord": "4"},
{"rc": "-", "note": 8, "chord": "6"},
{"rc": "1_", "note": 8},
{"rc": "1_", "note": 8, "chord": "_5"},
{"rc": "-", "note": 16, "chord": "2"},
{"rc": "1_", "note": 16},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "2_", "note": 8},
// C G
{"rc": "3_", "note": 8, "chord": "1"},
{"rc": "0", "note": 8, "chord": "5"},
{"rc": "3_", "note": 16},
{"rc": "2_", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "2_", "note": 16},
{"rc": "_5", "note": 8},
{"rc": "0", "note": 16, "chord": "5"},
{"rc": "3_", "note": 16},
{"rc": "4_", "note": 16},
{"rc": "3_", "note": 16},
{"rc": "2_", "note": 8},
// Am Em
{"rc": "1_", "note": 8, "chord": "_6"},
{"rc": "0", "note": 16, "chord": "3"},
{"rc": "1_", "note": 16},
{"rc": "0", "note": 16, "chord": "6"},
{"rc": "0", "note": 16, "chord": "3"},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "1_", "note": 8, "chord": "_3"},
{"rc": "5", "note": 16},
{"rc": "3", "note": 16},
{"rc": "0", "note": 8},
{"rc": "5", "note": 8},
// F C
{"rc": "6", "note": 8, "chord": "_4"},
{"rc": "0", "note": 16, "chord": "4"},
{"rc": "7", "note": 16},
{"rc": "0", "note": 8},
{"rc": "1_", "note": 8},
{"rc": "5", "note": 8, "chord": "1"},
{"rc": "0", "note": 8, "chord": "3"},
{"rc": "0", "note": 8, "chord": "1_"},
{"rc": "0", "note": 8, "chord": "3"},
// F Gsus4
{"rc": "6", "note": 8, "chord": "_4"},
{"rc": "-", "note": 8, "chord": "1"},
{"rc": "4", "note": 16},
{"rc": "6", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "2_", "note": 16},
{"rc": "1_", "note": 8, "chord": "_5"},
{"rc": "0", "note": 16, "chord": "2"},
{"rc": "7", "note": 16},
{"rc": "0", "note": 8},
{"rc": "1_", "note": 8},
{"rc": "2_", "note": 8},
// C G
{"rc": "3_", "note": 8, "chord": "1"},
{"rc": "0", "note": 8, "chord": "5"},
{"rc": "3_", "note": 16},
{"rc": "2_", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "2_", "note": 16},
{"rc": "_5", "note": 8},
{"rc": "0", "note": 16, "chord": "5"},
{"rc": "3_", "note": 16},
{"rc": "4_", "note": 16},
{"rc": "3_", "note": 16},
{"rc": "2_", "note": 8},
// Am Em
{"rc": "1_", "note": 8, "chord": "_6"},
{"rc": "0", "note": 16, "chord": "3"},
{"rc": "1_", "note": 16},
{"rc": "0", "note": 16, "chord": "6"},
{"rc": "0", "note": 16, "chord": "3"},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "1_", "note": 8, "chord": "_3"},
{"rc": "5", "note": 16},
{"rc": "3", "note": 16},
{"rc": "0", "note": 8},
{"rc": "5", "note": 8},
// F C
{"rc": "6", "note": 8, "chord": "_4"},
{"rc": "0", "note": 16, "chord": "4"},
{"rc": "1_", "note": 16},
{"rc": "0", "note": 8},
{"rc": "4_", "note": 8},
{"rc": "3_", "note": 8, "chord": "1"},
{"rc": "2_", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "0", "note": 8},
{"rc": "0", "note": 8, "chord": "5"},
// F G
{"rc": "6", "note": 8, "chord": "_4"},
{"rc": "0", "note": 8, "chord": "1"},
{"rc": "4", "note": 16},
{"rc": "6", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "2_", "note": 16},
{"rc": "7", "note": 8, "chord": "_5"},
{"rc": "0", "note": 16, "chord": "2"},
{"rc": "1_", "note": 16},
{"rc": "0", "note": 8},
{"rc": "2_", "note": 16},
{"rc": "1_", "note": 16},
// C G
{"rc": "5_", "note": 8, "chord": "1"},
{"rc": "3_", "note": 16},
{"rc": "4_", "note": 16},
{"rc": "5_", "note": 8},
{"rc": "3_", "note": 16},
{"rc": "4_", "note": 16},
{"rc": "5_", "note": 16, "chord": "_5"},
{"rc": "5", "note": 16},
{"rc": "6", "note": 16},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "2_", "note": 16},
{"rc": "3_", "note": 16},
{"rc": "4_", "note": 16},
// Am Em
{"rc": "3_", "note": 8, "chord": "_6"},
{"rc": "1_", "note": 16},
{"rc": "2_", "note": 16},
{"rc": "3_", "note": 8},
{"rc": "2", "note": 16},
{"rc": "3", "note": 16},
{"rc": "5", "note": 16, "chord": "_3"},
{"rc": "6", "note": 16},
{"rc": "5", "note": 16},
{"rc": "4", "note": 16},
{"rc": "5", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 16},
// F C
{"rc": "6", "note": 8, "chord": "_4"},
{"rc": "1_", "note": 16},
{"rc": "7", "note": 16},
{"rc": "6", "note": 8},
{"rc": "5", "note": 16},
{"rc": "4", "note": 16},
{"rc": "5", "note": 16, "chord": "1"},
{"rc": "4", "note": 16},
{"rc": "3", "note": 16},
{"rc": "4", "note": 16},
{"rc": "5", "note": 16},
{"rc": "6", "note": 16},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 16},
// F G
{"rc": "6", "note": 8, "chord": "_4"},
{"rc": "1_", "note": 16},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 8},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "7", "note": 16, "chord": "_5"},
{"rc": "6", "note": 16},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "2_", "note": 16},
{"rc": "3_", "note": 16},
{"rc": "4_", "note": 16},
{"rc": "5_", "note": 16},
// C G
{"rc": "5_", "note": 8, "chord": "_1"},
{"rc": "3_", "note": 16},
{"rc": "4_", "note": 16},
{"rc": "5_", "note": 8},
{"rc": "3_", "note": 16},
{"rc": "4_", "note": 16},
{"rc": "5_", "note": 16, "chord": "_5"},
{"rc": "5", "note": 16},
{"rc": "6", "note": 16},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "2_", "note": 16},
{"rc": "3_", "note": 16},
{"rc": "4_", "note": 16},
// Am Em
{"rc": "3_", "note": 8, "chord": "_6"},
{"rc": "1_", "note": 16},
{"rc": "2_", "note": 16},
{"rc": "3_", "note": 8},
{"rc": "2", "note": 16},
{"rc": "3", "note": 16},
{"rc": "5", "note": 16, "chord": "_3"},
{"rc": "6", "note": 16},
{"rc": "5", "note": 16},
{"rc": "4", "note": 16},
{"rc": "5", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 16},
// F C
{"rc": "6", "note": 8, "chord": "_4"},
{"rc": "1_", "note": 16},
{"rc": "7", "note": 16},
{"rc": "6", "note": 8},
{"rc": "5", "note": 16},
{"rc": "4", "note": 16},
{"rc": "5", "note": 16, "chord": "1"},
{"rc": "4", "note": 16},
{"rc": "3", "note": 16},
{"rc": "4", "note": 16},
{"rc": "5", "note": 16},
{"rc": "6", "note": 16},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 16},
// F G
{"rc": "6", "note": 8, "chord": "_4"},
{"rc": "1_", "note": 16},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 8},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "7", "note": 16, "chord": "_5"},
{"rc": "6", "note": 16},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "2_", "note": 16},
{"rc": "3_", "note": 16},
{"rc": "4_", "note": 16},
{"rc": "5_", "note": 16},
// C G
{"rc": "3_", "note": 8, "chord": "1"},
{"rc": "1_", "note": 16},
{"rc": "2_", "note": 16},
{"rc": "3_", "note": 8},
{"rc": "2_", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "2_", "note": 16, "chord": "_5"},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "2_", "note": 16},
{"rc": "3_", "note": 16},
{"rc": "2_", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "7", "note": 16},
// Am Em
{"rc": "1_", "note": 8, "chord": "_6"},
{"rc": "6", "note": 16},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 8},
{"rc": "3_", "note": 16},
{"rc": "4_", "note": 16},
{"rc": "5", "note": 16, "chord": "_3"},
{"rc": "6", "note": 16},
{"rc": "5", "note": 16},
{"rc": "4", "note": 16},
{"rc": "5", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 16},
// F C
{"rc": "6", "note": 8, "chord": "_4"},
{"rc": "1_", "note": 16},
{"rc": "7", "note": 16},
{"rc": "6", "note": 8},
{"rc": "5", "note": 16},
{"rc": "4", "note": 16},
{"rc": "5", "note": 16, "chord": "1"},
{"rc": "4", "note": 16},
{"rc": "3", "note": 16},
{"rc": "4", "note": 16},
{"rc": "5", "note": 16},
{"rc": "6", "note": 16},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 16},
// F G
{"rc": "6", "note": 8, "chord": "_4"},
{"rc": "1_", "note": 16},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 8},
{"rc": "7", "note": 16},
{"rc": "1", "note": 16},
{"rc": "7", "note": 16, "chord": "_5"},
{"rc": "1_", "note": 16},
{"rc": "2_", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "6", "note": 16},
{"rc": "7", "note": 16},
// C G
{"rc": "0", "note": 8, "chord": "1"},
{"rc": "3_", "note": 16, "chord": "1_"},
{"rc": "4_", "note": 16, "chord": "1_"},
{"rc": "5_", "note": 8, "chord": "1_"},
{"rc": "3_", "note": 8, "chord": "1_"},
{"rc": "0", "note": 8, "chord": "_5"},
{"rc": "7", "note": 16, "chord": "5"},
{"rc": "1_", "note": 16, "chord": "6"},
{"rc": "2_", "note": 8, "chord": "5"},
{"rc": "7", "note": 8, "chord": "5"},
// Am Em
{"rc": "0", "note": 8, "chord": "_6"},
{"rc": "1_", "note": 16, "chord": "6"},
{"rc": "2_", "note": 16, "chord": "6"},
{"rc": "3_", "note": 8, "chord": "1_"},
{"rc": "1_", "note": 8, "chord": "6"},
{"rc": "0", "note": 8, "chord": "_5"},
{"rc": "3_", "note": 16, "chord": "7"},
{"rc": "2_", "note": 16, "chord": "5"},
{"rc": "1_", "note": 8, "chord": "6"},
{"rc": "7", "note": 8, "chord": "5"},
// F C
{"rc": "0", "note": 8, "chord": "_4"},
{"rc": "6", "note": 16, "chord": "4"},
{"rc": "7", "note": 16, "chord": "6"},
{"rc": "1_", "note": 8, "chord": "6"},
{"rc": "6", "note": 8, "chord": "4"},
{"rc": "0", "note": 8, "chord": "1"},
{"rc": "5", "note": 16, "chord": "3"},
{"rc": "6", "note": 16, "chord": "4"},
{"rc": "1_", "note": 8, "chord": "5"},
{"rc": "5", "note": 8, "chord": "3"},
// F G
{"rc": "0", "note": 8, "chord": "_4"},
{"rc": "6", "note": 16, "chord": "4"},
{"rc": "7", "note": 16, "chord": "6"},
{"rc": "1_", "note": 8, "chord": "6"},
{"rc": "6", "note": 16, "chord": "4"},
{"rc": "5", "note": 16, "chord": "2"},
{"rc": "0", "note": 16},
{"rc": "5", "note": 16},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "2_", "note": 8},
{"rc": "7", "note": 8},
// C G
{"rc": "0", "note": 8, "chord": "1"},
{"rc": "3_", "note": 16, "chord": "1_"},
{"rc": "4_", "note": 16, "chord": "1_"},
{"rc": "5_", "note": 8, "chord": "1_"},
{"rc": "3_", "note": 8, "chord": "1_"},
{"rc": "0", "note": 16, "chord": "5_"},
{"rc": "2_", "note": 16, "chord": "5"},
{"rc": "3_", "note": 16, "chord": "7"},
{"rc": "4_", "note": 16, "chord": "7"},
{"rc": "2_", "note": 8, "chord": "5"},
// Am Em
{"rc": "0", "note": 8, "chord": "_6"},
{"rc": "1_", "note": 16, "chord": "6"},
{"rc": "2_", "note": 16, "chord": "6"},
{"rc": "3_", "note": 8},
{"rc": "1_", "note": 8, "chord": "6"},
{"rc": "7", "note": 16, "chord": "6"},
{"rc": "0", "note": 16, "chord": "_3"},
{"rc": "5_", "note": 16, "chord": "7"},
{"rc": "4_", "note": 16, "chord": "7"},
{"rc": "3_", "note": 16, "chord": "7"},
{"rc": "5_", "note": 16, "chord": "7"},
// F C
{"rc": "6_", "note": 8, "chord": "4"},
{"rc": "6_", "note": 16},
{"rc": "5_", "note": 16},
{"rc": "4_", "note": 8},
{"rc": "6_", "note": 8},
{"rc": "5_", "note": 8, "chord": "1"},
{"rc": "5_", "note": 16},
{"rc": "4_", "note": 16},
{"rc": "3_", "note": 8},
{"rc": "5_", "note": 8},
// F G
{"rc": "6_", "note": 16, "chord": "4"},
{"rc": "5_", "note": 16},
{"rc": "4_", "note": 16},
{"rc": "6_", "note": 16},
{"rc": "5_", "note": 16},
{"rc": "4_", "note": 16},
{"rc": "6_", "note": 8},
{"rc": "7_", "note": 16, "chord": "5"},
{"rc": "6_", "note": 16},
{"rc": "5_", "note": 16},
{"rc": "7_", "note": 16},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "2", "note": 8},
// C G
{"rc": "3_", "note": 16, "chord": "1"},
{"rc": "0", "note": 16},
{"rc": "0", "note": 16},
{"rc": "0", "note": 16},
{"rc": "3_", "note": 16},
{"rc": "2_", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "2_", "note": 16},
{"rc": "0", "note": 16, "chord": "_5"},
{"rc": "0", "note": 16, "chord": "2"},
{"rc": "0", "note": 16, "chord": "5"},
{"rc": "3_", "note": 16},
{"rc": "4_", "note": 16},
{"rc": "3_", "note": 16},
{"rc": "2_", "note": 8},
// Am Em
{"rc": "2_", "note": 16, "chord": "1"},
{"rc": "0", "note": 16, "chord": "3"},
{"rc": "0", "note": 16, "chord": "6"},
{"rc": "1", "note": 16},
{"rc": "0", "note": 16, "chord": "6"},
{"rc": "0", "note": 16, "chord": "3"},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "3", "note": 16, "chord": "1"},
{"rc": "5", "note": 16},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "3_", "note": 16},
{"rc": "5_", "note": 16},
{"rc": "7_", "note": 16},
{"rc": "1__", "note": 16}, // 此處應(yīng)該再高一個(gè)八度
// F C
{"rc": "7_", "note": 16, "chord": "4"},
{"rc": "6_", "note": 16},
{"rc": "5_", "note": 16},
{"rc": "4_", "note": 16},
{"rc": "5_", "note": 16},
{"rc": "4_", "note": 16},
{"rc": "3_", "note": 16},
{"rc": "2_", "note": 16},
{"rc": "3_", "note": 16, "chord": "1"},
{"rc": "2_", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "7_", "note": 16},
{"rc": "6_", "note": 16},
{"rc": "5_", "note": 16},
// F G
{"rc": "6", "note": 16, "chord": "4"},
{"rc": "5", "note": 16},
{"rc": "4", "note": 16},
{"rc": "5", "note": 16},
{"rc": "6", "note": 8},
{"rc": "4", "note": 16},
{"rc": "5", "note": 16},
{"rc": "7", "note": 16, "chord": "_5"},
{"rc": "0", "note": 16},
{"rc": "0", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "0", "note": 16, "chord": "2"},
{"rc": "0", "note": 16},
{"rc": "2_", "note": 8},
// C G
{"rc": "3_", "note": 16, "chord": "1"},
{"rc": "0", "note": 16, "chord": "5"},
{"rc": "0", "note": 16, "chord": "1_"},
{"rc": "0", "note": 16, "chord": "5"},
{"rc": "3_", "note": 16},
{"rc": "0", "note": 16, "chord": "5"},
{"rc": "4_", "note": 16},
{"rc": "0", "note": 16, "chord": "5"},
{"rc": "5_", "note": 16},
{"rc": "0", "note": 16, "chord": "5"},
{"rc": "6_", "note": 16},
{"rc": "0", "note": 16, "chord": "5"},
{"rc": "5_", "note": 16},
{"rc": "0", "note": 16, "chord": "5"},
{"rc": "4_", "note": 16},
{"rc": "0", "note": 16, "chord": "5"},
// Am- Em C9
{"rc": "3_", "note": 16, "chord": "_6"},
{"rc": "0", "note": 16, "chord": "4"},
{"rc": "0", "note": 16, "chord": "6_"},
{"rc": "0", "note": 16, "chord": "4"},
{"rc": "1_", "note": 16},
{"rc": "0", "note": 16, "chord": "6"},
{"rc": "2_", "note": 16},
{"rc": "0", "note": 16, "chord": "6"},
{"rc": "3_", "note": 16, "chord": "_3"},
{"rc": "0", "note": 16, "chord": "5"},
{"rc": "4_", "note": 16},
{"rc": "0", "note": 16, "chord": "5"},
{"rc": "3_", "note": 16, "chord": "1"},
{"rc": "0", "note": 16, "chord": "5"},
{"rc": "2_", "note": 16},
{"rc": "0", "note": 16, "chord": "5"},
// F C
{"rc": "1_", "note": 16, "chord": "_4"},
{"rc": "0", "note": 16, "chord": "4"},
{"rc": "0", "note": 16, "chord": "6"},
{"rc": "0", "note": 16, "chord": "4"},
{"rc": "6", "note": 16},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "0", "note": 16, "chord": "1"},
{"rc": "1_", "note": 16, "chord": "5"},
{"rc": "7", "note": 16, "chord": "5"},
{"rc": "1_", "note": 16, "chord": "5"},
{"rc": "5", "note": 16, "chord": "5"},
{"rc": "1_", "note": 16, "chord": "5"},
{"rc": "7_", "note": 16, "chord": "5"},
{"rc": "1_", "note": 16, "chord": "5"},
// F Gsus4
{"rc": "1_", "note": 16, "chord": "_4"},
{"rc": "0", "note": 16, "chord": "1"},
{"rc": "0", "note": 16, "chord": "4"},
{"rc": "0", "note": 16, "chord": "1"},
{"rc": "4", "note": 16},
{"rc": "6", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "2_", "note": 16},
{"rc": "1_", "note": 16, "chord": "_5"},
{"rc": "0", "note": 16, "chord": "2"},
{"rc": "0", "note": 16, "chord": "5"},
{"rc": "7", "note": 16},
{"rc": "0", "note": 16, "chord": "2"},
{"rc": "0", "note": 16, "chord": "5"},
{"rc": "1_", "note": 16},
{"rc": "2_", "note": 16},
// C G
{"rc": "3_", "note": 16, "chord": "1"},
{"rc": "0", "note": 16, "chord": "5"},
{"rc": "0", "note": 16, "chord": "1_"},
{"rc": "0", "note": 16, "chord": "5"},
{"rc": "3_", "note": 16},
{"rc": "0", "note": 16, "chord": "5"},
{"rc": "4_", "note": 16},
{"rc": "0", "note": 16, "chord": "5"},
{"rc": "5_", "note": 16},
{"rc": "0", "note": 16, "chord": "5"},
{"rc": "6_", "note": 16},
{"rc": "0", "note": 16, "chord": "5"},
{"rc": "5_", "note": 16},
{"rc": "0", "note": 16, "chord": "5"},
{"rc": "4_", "note": 16},
{"rc": "0", "note": 16, "chord": "5"},
// Am- Em C9
{"rc": "3_", "note": 16, "chord": "_6"},
{"rc": "0", "note": 16, "chord": "4"},
{"rc": "0", "note": 16, "chord": "6_"},
{"rc": "0", "note": 16, "chord": "4"},
{"rc": "1_", "note": 16},
{"rc": "0", "note": 16, "chord": "1_"},
{"rc": "2_", "note": 16},
{"rc": "0", "note": 16, "chord": "6"},
{"rc": "3_", "note": 16, "chord": "_3"},
{"rc": "0", "note": 16, "chord": "5"},
{"rc": "4_", "note": 16},
{"rc": "0", "note": 16, "chord": "5"},
{"rc": "3_", "note": 16, "chord": "1"},
{"rc": "0", "note": 16, "chord": "5"},
{"rc": "2_", "note": 16},
{"rc": "0", "note": 16, "chord": "5"},
// F C
{"rc": "1_", "note": 16, "chord": "_4"},
{"rc": "0", "note": 16, "chord": "4"},
{"rc": "0", "note": 16, "chord": "6"},
{"rc": "0", "note": 16, "chord": "4"},
{"rc": "6", "note": 16},
{"rc": "7", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "0", "note": 16, "chord": "1"},
{"rc": "1_", "note": 16, "chord": "5"},
{"rc": "7", "note": 16, "chord": "5"},
{"rc": "1_", "note": 16, "chord": "5"},
{"rc": "5", "note": 16, "chord": "5"},
{"rc": "1_", "note": 16, "chord": "5"},
{"rc": "7_", "note": 16, "chord": "5"},
{"rc": "1_", "note": 16, "chord": "5"},
// F Gsus4
{"rc": "1_", "note": 16, "chord": "_4"},
{"rc": "0", "note": 16, "chord": "1"},
{"rc": "0", "note": 16, "chord": "4"},
{"rc": "0", "note": 16, "chord": "1"},
{"rc": "4", "note": 16},
{"rc": "6", "note": 16},
{"rc": "1_", "note": 16},
{"rc": "2_", "note": 16},
{"rc": "1_", "note": 16, "chord": "_5"},
{"rc": "0", "note": 16, "chord": "2"},
{"rc": "0", "note": 16, "chord": "5"},
{"rc": "7", "note": 16},
{"rc": "0", "note": 16, "chord": "2"},
{"rc": "0", "note": 16, "chord": "5"},
{"rc": "1_", "note": 16},
{"rc": "2_", "note": 16},
// C G
{"rc": "3_", "note": 8},
{"rc": "0", "note": 8, "chord": "5"},
{"rc": "0", "note": 8, "chord": "1_"},
{"rc": "0", "note": 8, "chord": "3_"},
{"rc": "7", "note": 8},
{"rc": "0", "note": 8, "chord": "2"},
{"rc": "0", "note": 8, "chord": "5"},
{"rc": "0", "note": 8, "chord": "7"},
// Am Em
{"rc": "1_", "note": 8},
{"rc": "0", "note": 8, "chord": "3"},
{"rc": "0", "note": 8, "chord": "1_"},
{"rc": "0", "note": 8, "chord": "3_"},
{"rc": "7", "note": 8},
{"rc": "0", "note": 8, "chord": "3"},
{"rc": "0", "note": 8, "chord": "5"},
{"rc": "0", "note": 8, "chord": "7"},
// F C
{"rc": "6", "note": 8},
{"rc": "0", "note": 8, "chord": "1"},
{"rc": "0", "note": 8, "chord": "4"},
{"rc": "0", "note": 8, "chord": "6"},
{"rc": "5", "note": 8},
{"rc": "0", "note": 8, "chord": "3"},
{"rc": "0", "note": 8, "chord": "5"},
{"rc": "0", "note": 8, "chord": "1_"},
// F G
{"rc": "6", "note": 8},
{"rc": "0", "note": 8, "chord": "1"},
{"rc": "0", "note": 8, "chord": "4"},
{"rc": "0", "note": 8, "chord": "6"},
{"rc": "_5", "note": 8},
{"rc": "0", "note": 8, "chord": "2"},
{"rc": "0", "note": 8, "chord": "5"},
{"rc": "0", "note": 8, "chord": "7"},
]]
}
/**
* 點(diǎn)擊
* @param {*} keys
*/
function keyClick(keys) {
console.log(arguments)
for(let i = 0; i < arguments.length; i++) {
let coord = KeyMap[arguments[i]];
if(coord) {
press(KeyMap[arguments[i]][0], KeyMap[arguments[i]][1], 1)
}
}
}
/**
* 長(zhǎng)按
* @param {*} duration
* @param {*} keys
*/
function keyLongClick(duration, keys) {
for(let i = 1; i < arguments.length + 1; i++) {
press(KeyMap[arguments[i]][0], KeyMap[arguments[i]][1], duration)
}
}
// 從和弦中獲取在鍵盤中對(duì)應(yīng)的鍵位
function getKeysFromChord(chord){
// 得多和弦的組成音
if(chord) {
return chord.split(",")
}else {
return null
}
}
function play(music) {
let m = music["music"]
for (let i = 0; i < m.length; i++) {
let chapter = m[i];
// roll_call唱名,note音符,如八分音符
for (let j = 0; j < chapter.length; j++) {
let note = chapter[j]
// 旋律音對(duì)應(yīng)的鍵
let key = note["rc"]
// 和弦
let chord = note["chord"]
// 和弦對(duì)應(yīng)的鍵位
let keys = getKeysFromChord(chord)
// 時(shí)值
let time = (60 * 1000 / music["bpm"]) / (note["note"] / music["beat_m"])
if(!key) {
if (chord) {
keyClick.apply(null, keys)
}
sleep(time)
}else {
// 如果存在和音,則加人和音
if (chord) {
// 如果和弦音中已經(jīng)存在旋律音,直接彈和弦音。否則,將旋律音加人
keys.push(key)
keyClick.apply(null, keys)
sleep(time)
}else{
keyClick(key)
sleep(time)
}
}
chord = null
}
}
}
// 延時(shí)2s
sleep(2000)
// 自動(dòng)轉(zhuǎn)跳至游戲界面
let isLaunch = launch("com.tencent.tmgp.wuxia")
if(isLaunch) {
// 到游戲界面后,延時(shí)2s
sleep(2000)
// 開(kāi)始自動(dòng)彈奏
play(Song)
}
六、《卡農(nóng)》吉他譜附譜





