4

I need to set a rhythm-only piece in lilypond without staff lines. The following almost works but it puts the bar lines in the wrong place. It thinks I'm in 4/4 when I set it to 3/4.

\score {
\new Staff   \with {
  \time 3/4
  \override StaffSymbol #'transparent = ##t
  \override Clef #'transparent = ##t
  }
\relative c'' { b4 b4. b8 | b4. b8 b4 }
}
  • I must say I do not recognise that form of notation... Is it a form of script parsed by a piece of software? – KeizerHarm Dec 19 '19 at 22:44
  • It's in lilypond. Sorry I didn't make that clear in the original post. – Stephanie Dec 19 '19 at 23:50
3

Just move the time signature declaration into the right spot, and it works:

\score {
\new Staff   \with {
  \override StaffSymbol #'transparent = ##t
  \override Clef #'transparent = ##t
  }
\relative c'' { \time 3/4 b4 b4. b8 | b4. b8 b4 }
}

When I am making a rhythm, I usually do it a slightly different way:

By using DrumStaff, you get a percussion clef (which may or may not be what you want).

By using drummode and bd (bass drum), the midi file (if you are generating one) will sound like a bass drum which can be useful.

\version "2.19.83"

\score{

    \new DrumStaff \with {
        \override StaffSymbol.line-count = #0
        \override BarLine.bar-extent = #'(-2 . 2) } {
            \time 3/4
            \drummode {
                bd4 4. 8 | 
                4. 8 4 |
            }
    }

    \layout {}

    \midi {}
}
| improve this answer | |
  • Thank you! I thought I had tried that, but apparently not in this combination. I tried a variety of different ways to get rid of the staff, but this was the only one that let me keep the bar lines. – Stephanie Dec 20 '19 at 1:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.