Oops
Your answer works but there is something else I'd like to be able to do
(not to be greedy ...). I like to embed lots of
\set TabStaff.minimumFret = ...
in music to force the tab to be where I want it. I find that with a small
number of hints like this, I can avoid having to specify the string number
with \ as in e\2 to get an e on the 5th fret of the B string.
What I would love to do is embed those minimumFret settings in the music,
but then do something like this
minfret = ...
getRidOfTabSettings =
solo = \relative c' {
% in the tab, it will be open high E string
e
% in the tab it will be the 5th fret of the B string
\minfret 5
e
}
\score {
<<
\new Staff { \getRidOfTabSettings \solo}
\new TabStaff \solo
>>
}
On Sun, Mar 26, 2017 at 6:35 PM <[email protected]> wrote:
> No problem, but I think you're supposed to reply to the list, not just me.
>
> On 03/27/17 00:33, Rob Torop wrote:
> > Thank you!
> >
> > ---------- Forwarded message ---------
> > From: <[email protected] <mailto:lilypond-user-request@
> gnu.org>>
> > Date: Sun, Mar 26, 2017 at 4:58 PM
> > Subject: lilypond-user Digest, Vol 172, Issue 145
> > To: <[email protected] <mailto:[email protected]>>
> >
> >
> > Send lilypond-user mailing list submissions to
> > [email protected] <mailto:[email protected]>
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> > https://lists.gnu.org/mailman/listinfo/lilypond-user
> > or, via email, send a message with subject or body 'help' to
> > [email protected] <mailto:lilypond-user-request@
> gnu.org>
> >
> > You can reach the person managing the list at
> > [email protected] <mailto:[email protected]>
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of lilypond-user digest..."
> >
> >
> > Today's Topics:
> >
> > 1. (Rob Torop)
> > 2. Re: ([email protected] <mailto:[email protected]>)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Sun, 26 Mar 2017 20:49:53 +0000
> > From: Rob Torop <[email protected] <mailto:[email protected]>>
> > To: "[email protected] <mailto:[email protected]>"
> > <[email protected] <mailto:[email protected]>>
> > Message-ID:
> >
> > <CAJW=A+d7dvsOB4h3TV=y133fn1wmrk7wq9udmk+5w094vfu...@mail.gmail.com
> > <mailto:y133fn1wmrk7wq9udmk%[email protected]>>
> > Content-Type: text/plain; charset="utf-8"
> >
> > I'm finding that when I use a TabStaff and also set some properties
> (either
> > or both of minimumFret and restrainOpenStrings), my first line has an
> extra
> > TabStaff! What can I do to get rid of it? Thanks!
> >
> > Here's what it looks like:
> >
> > [image: Screen Shot 2017-03-26 at 4.46.59 PM.png]
> >
> > And here's the code that generated this:
> >
> > \version "2.19"
> > \language "english"
> >
> > solo = \relative c' {
> >
> > % Either of both of the two settings will cause an extra "TAB" staff
> to
> > be rendered
> > \set TabStaff.minimumFret=#1
> > \set TabStaff.restrainOpenStrings = ##t
> >
> > c8 f e ef df c bf af
> > }
> >
> > \score {
> > <<
> > \new Staff \solo
> > \new TabStaff \solo
> > >>
> > }
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL:
> > <http://lists.gnu.org/archive/html/lilypond-user/
> attachments/20170326/79933346/attachment.html>
> > -------------- next part --------------
> > A non-text attachment was scrubbed...
> > Name: Screen Shot 2017-03-26 at 4.46.59 PM.png
> > Type: image/png
> > Size: 14569 bytes
> > Desc: not available
> > URL:
> > <http://lists.gnu.org/archive/html/lilypond-user/
> attachments/20170326/79933346/attachment.png>
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Sun, 26 Mar 2017 22:57:27 +0200
> > From: [email protected] <mailto:[email protected]>
> > To: [email protected] <mailto:[email protected]>
> > Subject: Re:
> > Message-ID: <[email protected]
> > <mailto:[email protected]>>
> > Content-Type: text/plain; charset=windows-1252; format=flowed
> >
> > You're setting options on the TabStaff while in the Staff context. Since
> > there is no TabStaff context at the moment, one is temporarily created.
> > You could fix it by setting the properties in a \with {} block on the
> > TabStaff insteadd.
> >
> > On 03/26/17 22:49, Rob Torop wrote:
> >> I'm finding that when I use a TabStaff and also set some properties
> >> (either or both of minimumFret and restrainOpenStrings), my first line
> >> has an extra TabStaff! What can I do to get rid of it? Thanks!
> >>
> >> Here's what it looks like:
> >>
> >> Screen Shot 2017-03-26 at 4.46.59 PM.png
> >>
> >> And here's the code that generated this:
> >>
> >> \version "2.19"
> >> \language "english"
> >>
> >> solo = \relative c' {
> >>
> >> % Either of both of the two settings will cause an extra "TAB" staff
> >> to be rendered
> >> \set TabStaff.minimumFret=#1
> >> \set TabStaff.restrainOpenStrings = ##t
> >>
> >> c8 f e ef df c bf af
> >> }
> >>
> >> \score {
> >> <<
> >> \new Staff \solo
> >> \new TabStaff \solo
> >> >>
> >> }
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> lilypond-user mailing list
> >> [email protected] <mailto:[email protected]>
> >> https://lists.gnu.org/mailman/listinfo/lilypond-user
> >>
> >
> >
> >
> > ------------------------------
> >
> > Subject: Digest Footer
> >
> > _______________________________________________
> > lilypond-user mailing list
> > [email protected] <mailto:[email protected]>
> > https://lists.gnu.org/mailman/listinfo/lilypond-user
> >
> >
> > ------------------------------
> >
> > End of lilypond-user Digest, Vol 172, Issue 145
> > ***********************************************
>
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user