「VexFlow タブ譜 ミュート」の版間の差分
(同じ利用者による、間の1版が非表示) | |||
609行目: | 609行目: | ||
const Guitar1_Tab_St1_notes_1 = [ | const Guitar1_Tab_St1_notes_1 = [ | ||
new VF.StaveNote({ keys: [" | new VF.StaveNote({ keys: ["f/5"], duration: "2r" }), | ||
new VF.StaveNote({ keys: [" | new VF.StaveNote({ keys: ["c/5"], duration: "4r" }), | ||
new VF.StaveNote({ keys: [" | new VF.StaveNote({ keys: ["c/5"], duration: "8r" }), | ||
new VF.StaveNote({ keys: [" | new VF.StaveNote({ keys: ["e/5"], duration: "16", stem_direction: -1 }), | ||
new VF.StaveNote({ keys: [" | new VF.StaveNote({ keys: ["e/5"], duration: "16", stem_direction: -1 }), | ||
]; | ]; | ||
const Guitar1_Tab_St1_notes_2 = [ | const Guitar1_Tab_St1_notes_2 = [ | ||
654行目: | 654行目: | ||
var formatterGuitar1_Tab_St1 = new VF.Formatter().joinVoices([Guitar1_Tab_St1_Voice_1, Guitar1_Tab_St1_Voice_2]); | var formatterGuitar1_Tab_St1 = new VF.Formatter().joinVoices([Guitar1_Tab_St1_Voice_1, Guitar1_Tab_St1_Voice_2]); | ||
formatterGuitar1_Tab_St1.format([Guitar1_Tab_St1_Voice_1, Guitar1_Tab_St1_Voice_2], nStaveWidth - 40 - 10); | formatterGuitar1_Tab_St1.format([Guitar1_Tab_St1_Voice_1, Guitar1_Tab_St1_Voice_2], nStaveWidth - 40 - 10); | ||
Guitar1_Tab_St1_Voice_1.draw(ctx, | Guitar1_Tab_St1_Voice_1.draw(ctx, Guitar1_Tab_St1_1); | ||
Guitar1_Tab_St1_Voice_2.draw(ctx, | Guitar1_Tab_St1_Voice_2.draw(ctx, Guitar1_Tab_St1_1); | ||
Guitar1_Tab_St1_beam_1.setContext(ctx).draw(); | Guitar1_Tab_St1_beam_1.setContext(ctx).draw(); | ||
662行目: | 662行目: | ||
Guitar1_Tab_St1_notes_1, | Guitar1_Tab_St1_notes_1, | ||
[ 3, 4, 3], | [ 3, 4, 3], | ||
[ | [0.8, 0.8, -2] | ||
); | ); | ||
2024年4月19日 (金) 18:54時点における最新版
VexFlow 使い方に戻る。
概要
タブ譜 ミュート
コードは以下のとおりです。
<div id="yonet202404Mid_Output01"></div>
<script>
VexFlow 使い方に戻る。