I debugged a little more. If the staff is the only staff in a movement, it
works as expected.

Pete

On Wed, 10 Feb 2021, 13:05 silentkeystr...@googlemail.com, <
silentkeystr...@googlemail.com> wrote:

> Thanks for this! I tried the RhythmicStaff as you suggested but it seemed
> to break my lilypond code. I ended up with this diff showing that the staff
> never got closed
>
> https://pastebin.com/7S8SnZq9
>
> What did I do wrong?
>
> Pete
>
> On Wed, 10 Feb 2021, 11:20 Richard Shann, <rich...@rshann.plus.com> wrote:
>
>> On Wed, 2021-02-10 at 09:51 +0000, silentkeystr...@googlemail.com via
>> User *and* developer discussion of Denemo wrote:
>> > I tried using the drum clef as I couldn't find the RhythmClef. In the
>> > examples, the BaroqueLuteTab has a RhythmStaff, can I use this?
>>
>> Hmm, even though I recall creating the Baroque Lute Tab example I had
>> managed to forget about the existence of RhythmicStaff in LilyPond.
>>
>> Looking at the command:
>> Command: Tablature
>> Converts to tablature notation (print only)
>> Location: Object Menu ▶ Staffs/Voices ▶ Staff Properties ▶ Tablature
>> Internal Name: TabStaff
>>
>> I see that it can be customized to create RhythmicStaff instead: I
>> right clicked on the command and got the script into the Scheme Window
>> and then changed TabStaff to RhythmicStaff througout.
>> This gives the script
>>
>> 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><
>> ;;;RhythmicStaff
>> (let ((tag "RhythmicStaff"))
>>         (ToggleDirective "staff" "postfix" tag " \\new RhythmicStaff
>> <<\n"  DENEMO_OVERRIDE_LILYPOND)
>>         (ToggleDirective "voice" "postfix" tag "\n" (logior
>> DENEMO_OVERRIDE_GRAPHIC DENEMO_OVERRIDE_LILYPOND))
>>         (ToggleDirective "clef" "postfix" tag "{} \n"  (logior
>> DENEMO_OVERRIDE_GRAPHIC DENEMO_OVERRIDE_LILYPOND)))
>> 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><
>>
>> Then executing the Scheme on a new blank staff gets you the Rhythmic
>> staff you are looking for.
>> So I'll try and get round to making that a staff type available in the
>> Denemo menu (you can do that yourself, or put the script in a palette
>> button to do the same thing).
>>
>> Let me know if this works for you.
>>
>> Richard
>>
>>

Reply via email to