Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tab() with trackbind only returns two phrases #35

Closed
ratnanil opened this issue Jan 27, 2020 · 1 comment
Closed

tab() with trackbind only returns two phrases #35

ratnanil opened this issue Jan 27, 2020 · 1 comment

Comments

@ratnanil
Copy link

If multiple tracks are bound together with trackbind() and then passed to tab() (via score()), only the first two phrases are printed in the sheet. Is 2 the maximum number of phrases?

library(tabr)
e1 <- p("e2","1*1", 6) %>%
  track(voice = 1)
e2 <- p("e3","1*1", 3)%>%
  track(voice = 2)
e3 <- p("e4","1*1", 1)%>%
  track(voice = 3)


trackbind(e1,e2,e3,id = rep(1,3))%>%
  score() %>%
  tab("test.pdf", midi = FALSE)

returns this:

grafik

@leonawicz
Copy link
Owner

You can have any number of tracks (in this context, tracks is basically equivalent to sets of staves like your pair of staves above).

But a single track like in your example only supports up to two voices. You would have to bump at least one of those three voices to its own track.

Voice IDs 1 and 2 also determine if note stems point up or down.

reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants