Robert,

Here's what I came up with that should do what you need. It is a
modification of the RhythmicStaff context with your settings as I
understood them:

%<---------------------------- SNIP ------------------------------

\version "2.18.2"

scale = #-3
\layout {
  \context{
    \type "Engraver_group"
    \name "RhythmicLine"
    \alias "Staff"

    \override VoltaBracket.staff-padding = #3
    \override Stem.neutral-direction = #UP
    \override Beam.neutral-direction = #UP

    \consists "Output_property_engraver"
    \consists "Font_size_engraver"
    \consists "Separating_line_group_engraver"
    \consists "Dot_column_engraver"
    \consists "Pitch_squash_engraver"
    \consists "Axis_group_engraver"

    \accepts "Voice"
    \defaultchild "Voice"

    \override TupletNumber.font-size = \scale
    \override Stem.font-size = \scale
    \override Flag.font-size = \scale
    \override NoteHead.font-size = \scale
    \override Rest.font-size = \scale
    \override NoteHead.style = #'slash

    squashedPosition = #0
    \override VerticalAxisGroup.staff-staff-spacing =
      #'((basic-distance . 0) (minimum-distance . 2) (padding . 1))

    createSpacing = ##t

    \description "A context like @code{RhythmicStaff} but for printing
rhythms.
  Pitches are ignored; the notes are printed as slashes without any staff
lines."

  }
  \context {
    \Score
    \accepts "RhythmicLine"
  }
}

\score{
  <<
    \new RhythmicLine { \repeat unfold 2 { c4. r8 c4. r8 } }
    \new Staff \new Voice { \repeat unfold 2 { c'4 d' e' f' } }
  >>
}

%<---------------------------- SNIP ------------------------------

HTH,
Abraham

On Wed, Mar 25, 2015 at 9:02 AM, Paul Morris [via Lilypond] <
ml-node+s1069038n173653...@n5.nabble.com> wrote:

>  Paul Morris wrote
>   \context { \Staff \accepts "RhythmicLine" }
>
> Ah-ha! this should be
>
>   \context { \Score \accepts "RhythmicLine" }
>
> since RhythmicLine is a kind of staff context (rather than a kind of voice
> context).  Then \remove works as expected.
>
> -Paul
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://lilypond.1069038.n5.nabble.com/Creating-new-context-3-Questions-tp173645p173653.html
>  To start a new topic under User, email ml-node+s1069038n...@n5.nabble.com
> To unsubscribe from Lilypond, click here
> <http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2&code=dGlzaW1zdC5saWx5cG9uZEBnbWFpbC5jb218Mnw4MzU3Njg3MDU=>
> .
> NAML
> <http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Creating-new-context-3-Questions-tp173645p173655.html
Sent from the User mailing list archive at Nabble.com.
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to