简体   繁体   中英

Vexflow 5 string banjo

I have been working with vexflow to make guitar tabs, but want to use it for a 5 string banjo. I can see there is a banjo setting in the Tuning, which does work, but it still prints 6 strings in tab. Is there anyway to make it show just the 5 strings?

tabstave notation=true key=C tuning=standardBanjo

notes 1-2-1-3/1|1-1-2-2/1

You can set the number of lines (strings) using the StaveOptions.num_lines property

const stave = new TabStave(10, 40, 400, { num_lines: 5 });

// or

system.addStave({
  voices: [...],
  options: { num_lines: 5 },
})

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM