vexflow
vexflow copied to clipboard
Feature Request: Instrument parameter when initialising tabstave
As it stands, initialising a tabstave by default generates a 6-string stave with standard guitar tuning. To get a bass tab, one has to use tabstave.setNumLines(4) , and also set the tuning; This is cumbersome. For 7 and 8 string tabs, one cannot even enter notes on the 7 and 8 strings before defining a tuning. One should be able to do things like "instrument = bass" or "instrument = banjo" which would set the correct number of strings as well as the standard tuning for that instrument.
May I create an "instrument" class that handles this?