lilypond-user
[Top][All Lists]
Advanced

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

Re: TabStaff answer


From: Rob Torop
Subject: Re: TabStaff answer
Date: Mon, 27 Mar 2017 18:08:36 -0400

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> 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:lilypond-user-request@gnu.org>>
> Date: Sun, Mar 26, 2017 at 4:58 PM
> Subject: lilypond-user Digest, Vol 172, Issue 145
> To: <address@hidden <mailto:address@hidden>>
>
>
> Send lilypond-user mailing list submissions to
>         address@hidden <mailto:address@hidden>
>
> 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
>         address@hidden <mailto:lilypond-user-request@gnu.org>
>
> You can reach the person managing the list at
>         address@hidden <mailto:lilypond-user-owner@gnu.org>
>
> 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>)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 26 Mar 2017 20:49:53 +0000
> From: Rob Torop <address@hidden <mailto:address@hidden>>
> To: "address@hidden <mailto:address@hidden>"
> <address@hidden <mailto:address@hidden>>
> Message-ID:
>
> <CAJW=A+d7dvsOB4h3TV=Y133fn1wMaddress@hiddengmail.com
> <mailto:Y133fn1wMRk7wQ9UDmK%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>
> -------------- 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: address@hidden <mailto:address@hidden>
> To: address@hidden <mailto:address@hidden>
> Subject: Re:
> Message-ID: <053d1047-2f66-219e-0baa-address@hidden
> <mailto:053d1047-2f66-219e-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>
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>>
>
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden <mailto:address@hidden>
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
> ------------------------------
>
> End of lilypond-user Digest, Vol 172, Issue 145
> ***********************************************

reply via email to

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