[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: voiceOne & voiceTwo settings
From: |
Bainos |
Subject: |
Re: voiceOne & voiceTwo settings |
Date: |
Thu, 5 Jul 2007 05:24:20 -0700 (PDT) |
Yeah! :p
Finally i Solved!
Althought I don't know if this is the best way..
I created two new contexts..
It was difficult for me to understand from the manual how to create
a new context and I don't understand very well the use of "\aias"..
In the following code I use "\alias Voice" even if I usually use DrumVoice.
With DrumVoice it doesn't work.. why?
Also i had to add a lot of plugins and i suppose I have to add some others
(i.e. if I need grace notes), but the only thing I want is to add only two
properties to an existing context, not rewrite the whole context..
This is the code..
Could it be usefull to make a snippet?
> \layout{
> \context {
> \name binoVoiceUp
> \type "Engraver_group"
> \consists "Drum_notes_engraver"
> \consists "Stem_engraver"
> \consists "Auto_beam_engraver"
> \consists "Rest_engraver"
> \override Beam #'positions = #'(4 . 4)
> \override Rest #'extra-offset = #'(0 . -2.0)
> \alias Voice
> }
> \context {
> \name binoVoiceDown
> \type "Engraver_group"
> \consists "Drum_notes_engraver"
> \consists "Stem_engraver"
> \consists "Auto_beam_engraver"
> \consists "Rest_engraver"
> \override Beam #'positions = #'(-6 . -6)
> \override Rest #'extra-offset = #'(0 . 2.0)
> \alias Voice
> }
> \context {
> \DrumStaff
> \accepts "binoVoiceUp"
> \accepts "binoVoiceDown"
> }
> }
>
>
>
> Aup = \drummode {
> sn4 sn8 bd16 sn16 r8 sn8 sn4
> }
>
> Adown = \drummode {
> bd16 bd8 bd16 r8 bd8 bd16 bd bd8 bd16 bd8 bd16
> }
>
> \markup {\raise #-5 "with default context"}
>
> \new DrumStaff {<<
> \new DrumVoice { \voiceOne \Aup }
>>>}
>
> \new DrumStaff {<<
> \new DrumVoice { \voiceTwo \Adown }
>>>}
>
> \markup {\raise #-5 "with redefined context"}
>
> \new DrumStaff {<<
> \new binoVoiceUp { \voiceOne \Aup }
>>>}
>
> \new DrumStaff {<<
> \new binoVoiceDown { \voiceTwo \Adown }
>>>}
>
Bainos
\version "2.10.25" on winXP
--
View this message in context:
http://www.nabble.com/voiceOne---voiceTwo-settings-tf4026535.html#a11445484
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.