Hi Abraham, Paul & Simon,

Thanks a lot to all of you for your great help & explanations!
I have been away from my computer since my mail and will only be able to go 
over my code tomorrow, but from what I see in your replies, I'm sure all will 
work great!

I'm also glad I was wrong about the remove command, because it's so intuitive 
that it *should* work there ... Maybe it was that mix of typos and 
misunderstandings that kept it from doing anything. 

Thanks again, 
Cheers, Robert 

______

Truth does not change according to our ability to stomach it.
-- Flannery O'Connor

> On 25 Mar 2015, at 16:44, Abraham Lee <[email protected]> wrote:
> 
> Oh, and in case it wasn't clear, this new context definition doesn't inherit 
> ANYTHING. It's a totally new context. You'll notice there are no \remove 
> statements (like for accidentals, clefs, etc.) Since \RhythmicLine doesn't 
> \accept certain engravers, there's no need to \remove them. :-)
> 
> - Abraham
> 
>> On Wed, Mar 25, 2015 at 9:30 AM, tisimst <[email protected]> wrote:
>> 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] <[hidden 
>>> email]> 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 [hidden email] 
>>> To unsubscribe from Lilypond, click here.
>>> NAML
>> 
>> 
>> View this message in context: Re: Creating new context: 3 Questions
>> Sent from the User mailing list archive at Nabble.com.
>> 
>> _______________________________________________
>> lilypond-user mailing list
>> [email protected]
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> _______________________________________________
> lilypond-user mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/lilypond-user
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to