「VexFlow タブ譜 ミュート」の版間の差分
515行目: | 515行目: | ||
Guitar1_St1.addKeySignature('D').setContext(ctx); | Guitar1_St1.addKeySignature('D').setContext(ctx); | ||
Guitar1_St1.draw(); | Guitar1_St1.draw(); | ||
const Guitar1_St1_notes_1 = [ | |||
new VF.StaveNote({ keys: ["b/4"], duration: "2r" }), | |||
new VF.StaveNote({ keys: ["b/4"], duration: "4r" }), | |||
new VF.StaveNote({ keys: ["b/4"], duration: "8r" }), | |||
new VF.StaveNote({ keys: ["d/5"], duration: "16", stem_direction: -1 }), | |||
new VF.StaveNote({ keys: ["d/5"], duration: "16", stem_direction: -1 }), | |||
]; | |||
const Guitar1_St1_notes_2 = [ | |||
new VF.GhostNote({ keys: ["f/4"], duration: "16"}), | |||
new VF.GhostNote({ keys: ["f/4"], duration: "16"}), | |||
new VF.GhostNote({ keys: ["f/4"], duration: "16"}), | |||
new VF.GhostNote({ keys: ["f/4"], duration: "16"}), | |||
new VF.GhostNote({ keys: ["f/4"], duration: "16"}), | |||
new VF.GhostNote({ keys: ["f/4"], duration: "16"}), | |||
new VF.GhostNote({ keys: ["f/4"], duration: "16"}), | |||
new VF.GhostNote({ keys: ["f/4"], duration: "16"}), | |||
new VF.GhostNote({ keys: ["f/4"], duration: "16"}), | |||
new VF.GhostNote({ keys: ["f/4"], duration: "16"}), | |||
new VF.GhostNote({ keys: ["f/4"], duration: "16"}), | |||
new VF.GhostNote({ keys: ["f/4"], duration: "16"}), | |||
new VF.GhostNote({ keys: ["f/4"], duration: "16"}), | |||
new VF.GhostNote({ keys: ["f/4"], duration: "16"}), | |||
new VF.GhostNote({ keys: ["f/4"], duration: "16"}), | |||
new VF.GhostNote({ keys: ["f/4"], duration: "16"}), | |||
]; | |||
UniqueIds = getUniqueNoteheadIds(Guitar1_St1_notes_1, [3, 4]); | |||
allUniqueIds = updateAllUniqueIds(UniqueIds); | |||
const Guitar1_St1_beam_1 = new VF.Beam([Guitar1_St1_notes_1[3], Guitar1_St1_notes_1[4]]); | |||
var Guitar1_St1_Voice_1 = new VF.Voice({ num_beats: 4, beat_value: 4 }); | |||
Guitar1_St1_Voice_1.setStrict(true); | |||
Guitar1_St1_Voice_1.addTickables(Guitar1_St1_notes_1); | |||
var Guitar1_St1_Voice_2 = new VF.Voice({ num_beats: 4, beat_value: 4 }); | |||
Guitar1_St1_Voice_2.setStrict(true); | |||
Guitar1_St1_Voice_2.addTickables(Guitar1_St1_notes_2); | |||
var formatterGuitar1_St1 = new VF.Formatter().joinVoices([Guitar1_St1_Voice_1, Guitar1_St1_Voice_2]); | |||
formatterGuitar1_St1.format([Guitar1_St1_Voice_1, Guitar1_St1_Voice_2], nStaveWidth - 40 - 10); | |||
Guitar1_St1_Voice_1.draw(ctx, Guitar1_St1); | |||
Guitar1_St1_Voice_2.draw(ctx, Guitar1_St1); | |||
Guitar1_St1_beam_1.setContext(ctx).draw(); | |||
shiftGuitar1_1st= addShift( | |||
Guitar1_St1_notes_1, | |||
[3, 4, 3], | |||
[3, 3, 0] | |||
); | |||
const Guitar1_St2 = new VF.Stave(Guitar1_St1.width + Guitar1_St1.x, Guitar1_St1.y, nStaveWidth).setContext(ctx); | const Guitar1_St2 = new VF.Stave(Guitar1_St1.width + Guitar1_St1.x, Guitar1_St1.y, nStaveWidth).setContext(ctx); |
2024年4月19日 (金) 18:06時点における版
VexFlow 使い方に戻る。
概要
タブ譜 ミュート
コードは以下のとおりです。
<div id="yonet202404Mid_Output01"></div>
<script>
VexFlow 使い方に戻る。