「VexFlow タブ譜 ハーモニクス」の版間の差分
(同じ利用者による、間の6版が非表示) | |||
587行目: | 587行目: | ||
new VF.StaveNote({ keys: ["a/4", "d/5"], duration: "8", stem_direction: -1 }), | new VF.StaveNote({ keys: ["a/4", "d/5"], duration: "8", stem_direction: -1 }), | ||
new VF.StaveNote({ keys: ["a/4 | new VF.StaveNote({ keys: ["a/4"], duration: "8", stem_direction: -1 }), | ||
new VF.StaveNote({ keys: ["f/5"], duration: "8", stem_direction: -1 }), | new VF.StaveNote({ keys: ["f/5"], duration: "8", stem_direction: -1 }), | ||
new VF.StaveNote({ keys: ["a/4"], duration: "4", stem_direction: -1 }), | new VF.StaveNote({ keys: ["a/4", "d/5"], duration: "4", stem_direction: -1 }), | ||
]; | ]; | ||
const Guitar1_St2_notes_2 = [ | const Guitar1_St2_notes_2 = [ | ||
614行目: | 614行目: | ||
]; | ]; | ||
UniqueIds = getUniqueNoteheadIds( | UniqueIds = getUniqueNoteheadIds(Guitar1_St2_notes_1, [4, 5, 6]); | ||
allUniqueIds = updateAllUniqueIds(UniqueIds); | allUniqueIds = updateAllUniqueIds(UniqueIds); | ||
621行目: | 621行目: | ||
]); | ]); | ||
const Guitar1_St2_beam_2 = new VF.Beam([ | const Guitar1_St2_beam_2 = new VF.Beam([ | ||
Guitar1_St2_notes_1[4], Guitar1_St2_notes_1[5 | Guitar1_St2_notes_1[4], Guitar1_St2_notes_1[5] | ||
]); | ]); | ||
642行目: | 642行目: | ||
shiftGuitar1_2st= addShift( | shiftGuitar1_2st= addShift( | ||
Guitar1_St2_notes_1, | Guitar1_St2_notes_1, | ||
[5, | [5, 5, 6, 6], | ||
[0, - | [0.5, -0.5, 3, 1.5] | ||
); | ); | ||
1,060行目: | 1,060行目: | ||
}; | }; | ||
insertTextToSVG(EGuitarTab_options); | insertTextToSVG(EGuitarTab_options); | ||
var Guitar1_st2_option = { | |||
textContent: ["\uFF89", "\uFF89", "\uFF89", "\uFF89"], // 必須文字列 | |||
strID: "Guitar1_st2", // 必須 | |||
Stave_x_Offset: 0, | |||
Stave_y_Offset: 0, | |||
fontSize: 40, | |||
fontFamily: "YonetMuFL, Arial", // オプション、デフォルトは"Bravura, Arial" | |||
shift_x: shiftGuitar1_2st, | |||
IsOffset_x_Abs: true | |||
}; | |||
insertTextToSVG(Guitar1_st2_option); | |||
var Guitar1_st2_str_option = { | |||
textContent: ["┌ 8va Harm.────┐"], // 必須文字列 | |||
strID: "Guitar1_st2_str", // 必須 | |||
Stave_x_Offset: 0, | |||
Stave_y_Offset: 0, | |||
fontSize: 40, | |||
fontFamily: "YonetMuFL, Arial", // オプション、デフォルトは"Bravura, Arial" | |||
shift_x: [{x:shiftGuitar1_2st[0].x -10, y:shiftGuitar1_2st[0].y - 30}], | |||
IsOffset_x_Abs: true | |||
}; | |||
insertTextToSVG(Guitar1_st2_str_option); | |||
var EGuitar2Text_options = { | var EGuitar2Text_options = { |