[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: TAB-problem
From: |
bb |
Subject: |
Re: TAB-problem |
Date: |
Thu, 28 Dec 2017 16:02:34 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 |
OK. You sent two versions. I will check it. Thank you!
Am 28.12.2017 um 16:00 schrieb bb:
> As there got lost my original mail, I have to add that I only want
> "cleftext" or "test" or whatever text defined in the code only once at
> the beginning of every TAB line. NOT every time the clef changes!
>
> Am 28.12.2017 um 15:54 schrieb bb:
>> Thank you for answering. Your code has exactly the problem I wanted to
>> overcome. There is a "cleftext" every time the clef changes!
>> I minimized my example code due to your expectations.
>>
>> Regards
>>
>> begin ##################
>> \version "2.19.65"
>>
>> D-Dorian = \relative c {
>> \clef "bass_8"
>> c1 |
>> \clef "treble_8"
>> c1|
>> \clef "bass_8"
>> c1
>> \bar "|."
>> }
>> <<
>> \new Staff {\D-Dorian }
>> \new TabStaff {
>> \override Staff.Clef #'stencil = #ly:text-interface::print
>> \omit Staff.ClefModifier
>> \override Staff.Clef #'text =
>> test
>> \D-Dorian
>> }
>> >>
>> end ######################
>>
>>
>> Am 28.12.2017 um 15:22 schrieb Malte Meyn:
>>> Am 28.12.2017 um 14:21 schrieb bb:
>>>> I attach an example code. (Sorry, my skills are just not developed
>>>> enough to shorten the code essential.)
>>> Here is a much smaller example. It’s not minimal but near. How to
>>> build such an example? Well, just leave everything out that has
>>> nothing to do with the problem. In your case that is:
>>>
>>> • layout things like set-global-staff-size or indent = 0
>>> • complicated music (triplets, rests, extra barlines)
>>> • \tabFullNotation
>>> • instrument tweaks (stringTunings, minimumFret etc.)
>>> • transpositions (btw the clefs should do that correctly)
>>> • complicated markup for the clef
>>>
>>> How to find out what things aren’t necessary? Just delete them and see
>>> if the problem persists.
>>>
>>> The following example contains also a possible solution: Set the clef
>>> stencil to ##f (\omit is a shorthand for that) and only set the
>>> stencil for the first occurence.
>>>
>>> %%%%%%%%%%%%%%%%%%%%%%%%%%
>>> \version "2.19.65"
>>>
>>> D-Dorian = \relative {
>>> \clef "bass_8"
>>> c1
>>> \clef "treble_8"
>>> c
>>> \clef "bass_8"
>>> c
>>> }
>>>
>>> <<
>>> \new Staff { \D-Dorian }
>>> \new TabStaff \with {
>>> \omit Clef
>>> \omit ClefModifier
>>> \override Clef.text = "cleftext"
>>> } {
>>> \once \override TabStaff.Clef.stencil = #ly:text-interface::print
>>> \D-Dorian
>>> }
>>> _______________________________________________
>>> lilypond-user mailing list
>>> address@hidden
>>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>> _______________________________________________
>> lilypond-user mailing list
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user