まくんの音楽ノート

自由気ままに音楽とプログラミング

VexTabで複数の声部を扱う

VexTabについて.

公式チュートリアルには載っていませんが,voiceを使うことで複数の声部を扱えるようです.

options tab-stems=true
tabstave notation=false tablature=true key=G time=4/4
voice
    notes :8 (2/2.2/3.2/4) ##
    notes :8 (2/2.2/3.2/4) (2/2.2/3.2/4) (2/2.2/3.2/4) (2/2.2/3.2/4) (2/2.2/3.2/4) (2/2.2/3.2/4) |
    notes :4 ##
voice
    notes :q 0/5 0/6 0/5 0/6 |
    notes :q 0/5 0/5 :8 0/5 0/5

この結果は以下のようになります.

options tab-stems=true tabstave notation=false tablature=true key=G time=4/4 voice notes :8 (2/2.2/3.2/4) ## notes :8 (2/2.2/3.2/4) (2/2.2/3.2/4) (2/2.2/3.2/4) (2/2.2/3.2/4) (2/2.2/3.2/4) (2/2.2/3.2/4) | notes :4 ## voice notes :q 0/5 0/6 0/5 0/6 | notes :q 0/5 0/5 :8 0/5 0/5

最初のoptions tab-stems=trueは,TAB譜の中に符尾を付ける設定をするオプションです. falseに設定するか,省略することで符尾は表示されなくなります.

小節線は両方の声部にきちんと付けるときれいに仕上がります.
片方だけ書くと,もう片方の声部の位置が変になります.

最後にプレイグラウンドを配置しておくのでいろいろやってみてください.

options tab-stems=true tabstave notation=false tablature=true key=G time=4/4 voice notes :8 (2/2.2/3.2/4) ## notes :8 (2/2.2/3.2/4) (2/2.2/3.2/4) (2/2.2/3.2/4) (2/2.2/3.2/4) (2/2.2/3.2/4) (2/2.2/3.2/4) | notes :4 ## voice notes :q 0/5 0/6 0/5 0/6 | notes :q 0/5 0/5 :8 0/5 0/5