lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TabStaff answer


From: caagr98
Subject: Re: TabStaff answer
Date: Tue, 28 Mar 2017 00:23:35 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

You could use \tag to remove the \set, or you could use <<>> to combine \solo with another staff containing only \set and spacer rests. I like using that technique to keep tempos and marks (structure) separate from the actual content.

Or, as David mentioned, you could just set Staff.minimumFret, which would be ignored by the normal Staff.

To clarify:

minfret = \tag fret \set TabStaff.minimumFret = ...
% (I think that needs to be a music function)
\new Staff { \removeWithTag fret \solo }
\new TabStaff \solo

--- or ---

\new Staff \solo
\new TabStaff << \solo { s1 \minfret 5 \s1 } >>



On 03/28/17 00:08, Rob Torop wrote:
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 <address@hidden
<mailto:address@hidden>> 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: <address@hidden
    <mailto:address@hidden>
    <mailto:address@hidden
    <mailto:address@hidden>>>
    > Date: Sun, Mar 26, 2017 at 4:58 PM
    > Subject: lilypond-user Digest, Vol 172, Issue 145
    > To: <address@hidden <mailto:address@hidden>
    <mailto:address@hidden <mailto:address@hidden>>>
    >
    >
    > Send lilypond-user mailing list submissions to
    >         address@hidden <mailto:address@hidden>
    <mailto:address@hidden <mailto:address@hidden>>
    >
    > To subscribe or unsubscribe via the World Wide Web, visit
    >         https://lists.gnu.org/mailman/listinfo/lilypond-user
    <https://lists.gnu.org/mailman/listinfo/lilypond-user>
    > or, via email, send a message with subject or body 'help' to
    >         address@hidden
    <mailto:address@hidden>
    <mailto:address@hidden
    <mailto:address@hidden>>
    >
    > You can reach the person managing the list at
    >         address@hidden
    <mailto:address@hidden>
    <mailto:address@hidden
    <mailto:address@hidden>>
    >
    > 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: (address@hidden <mailto:address@hidden>
    <mailto:address@hidden <mailto:address@hidden>>)
    >
    >
    > ----------------------------------------------------------------------
    >
    > Message: 1
    > Date: Sun, 26 Mar 2017 20:49:53 +0000
    > From: Rob Torop <address@hidden <mailto:address@hidden>
    <mailto:address@hidden <mailto:address@hidden>>>
    > To: "address@hidden <mailto:address@hidden>
    <mailto:address@hidden <mailto:address@hidden>>"
    > <address@hidden <mailto:address@hidden>
    <mailto:address@hidden <mailto:address@hidden>>>
    > Message-ID:
    >
    >
    <address@hidden
    <mailto:address@hidden>
    > <mailto:address@hidden
    <mailto:address@hidden>>>
    > 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
    
<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
    
<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: address@hidden <mailto:address@hidden>
    <mailto:address@hidden <mailto:address@hidden>>
    > To: address@hidden <mailto:address@hidden>
    <mailto:address@hidden <mailto:address@hidden>>
    > Subject: Re:
    > Message-ID: <address@hidden
    <mailto:address@hidden>
    > <mailto:address@hidden
    <mailto:address@hidden>>>
    > 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
    >> address@hidden <mailto:address@hidden>
    <mailto:address@hidden <mailto:address@hidden>>
    >> https://lists.gnu.org/mailman/listinfo/lilypond-user
    <https://lists.gnu.org/mailman/listinfo/lilypond-user>
    >>
    >
    >
    >
    > ------------------------------
    >
    > Subject: Digest Footer
    >
    > _______________________________________________
    > lilypond-user mailing list
    > address@hidden <mailto:address@hidden>
    <mailto:address@hidden <mailto:address@hidden>>
    > https://lists.gnu.org/mailman/listinfo/lilypond-user
    <https://lists.gnu.org/mailman/listinfo/lilypond-user>
    >
    >
    > ------------------------------
    >
    > End of lilypond-user Digest, Vol 172, Issue 145
    > ***********************************************



_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user




reply via email to

[Prev in Thread] Current Thread [Next in Thread]