|
@@ -34,13 +34,13 @@ export const ABC_DATA = {
|
|
|
],
|
|
|
/** 调号 */
|
|
|
key: [
|
|
|
- { name: "C大调", value: "K:C", step: 0, icon: "icon-a-diaohao-cdadiaoaxiaodiao1" },
|
|
|
{ name: "F#大调", value: "K:F#", step: 6, icon: "icon-a-diaohao-fdadiaodxiaodiao" },
|
|
|
{ name: "F大调", value: "K:F", step: 5, icon: "icon-a-diaohao-fdadiaodxiaodiao1" },
|
|
|
{ name: "E大调", value: "K:E", step: 4, icon: "icon-a-diaohao-edadiaocxiaodiao" },
|
|
|
{ name: "Eb大调", value: "K:Eb", step: 3, icon: "icon-a-diaohao-ebdadiaocxiaodiao" },
|
|
|
{ name: "D大调", value: "K:D", step: 2, icon: "icon-a-diaohao-Ddaxiaoexiaodiao" },
|
|
|
{ name: "C#大调", value: "K:C#", step: 1, icon: "icon-a-diaohao-cdadiaoaxiaodiao" },
|
|
|
+ { name: "C大调", value: "K:C", step: 0, icon: "icon-a-diaohao-cdadiaoaxiaodiao1" },
|
|
|
{ name: "B大调", value: "K:B", step: -1, icon: "icon-a-diaohao-bdadiaogxiaodiao" },
|
|
|
{ name: "Cb大调", value: "K:Cb", step: -1, icon: "icon-a-diaohao-cbdadiaoabxiaodiao" },
|
|
|
{ name: "Db大调", value: "K:Db", step: -1, icon: "icon-a-diaohao-dbdadiaobbxiaodiao" },
|
|
@@ -202,11 +202,25 @@ export const renderMeasures = (abc: IAbc, option?: IRenderMeasuresOption) => {
|
|
|
if (option?.showCreator) {
|
|
|
abc.creator && (text += `C:${abc.creator}` + "\n");
|
|
|
}
|
|
|
+ if (!option?.hiddenIndex) {
|
|
|
+ text += "%%barnumbers 1" + "\n";
|
|
|
+ }
|
|
|
+
|
|
|
abc.celf && (text += abc.celf + "\n");
|
|
|
abc.meter && (text += abc.meter + "\n");
|
|
|
abc.minUnit && (text += abc.minUnit + "\n");
|
|
|
abc.speed && (text += abc.speed + "\n");
|
|
|
- abc.key && (text += abc.key + "\n");
|
|
|
+ if (abc.key) {
|
|
|
+ text += abc.key + " ";
|
|
|
+
|
|
|
+ // text += "style=rhythm";
|
|
|
+ // text += "style=harmonic";
|
|
|
+ // text += "style=x";
|
|
|
+ // text += "style=triangle";
|
|
|
+
|
|
|
+ text += "\n";
|
|
|
+ }
|
|
|
+ text += "V:1 style=jianpu" + "\n";
|
|
|
|
|
|
const measures = abc.measures;
|
|
|
for (let i = 0; i < measures.length; i++) {
|
|
@@ -243,10 +257,10 @@ export const renderMeasures = (abc: IAbc, option?: IRenderMeasuresOption) => {
|
|
|
}
|
|
|
text += note.segno ?? ""; // 分割
|
|
|
}
|
|
|
- let _i = i + 1;
|
|
|
- if (!option?.hiddenIndex) {
|
|
|
- text += `"<${_i}"`;
|
|
|
- }
|
|
|
+ // let _i = i + 1;
|
|
|
+ // if (!option?.hiddenIndex) {
|
|
|
+ // text += `"<${_i}"`;
|
|
|
+ // }
|
|
|
text += measure.barline ?? "";
|
|
|
if (wrap % 4 === 0) {
|
|
|
text += "\n";
|