percussion-style

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

percussion-style

Andreas Rittershofer
I can do what I want, but I cannot get the "percussion-style".

I use Lilypond 2.4.5 and I always get a full staff with five lines.

drei = \drummode
{
    cl8[ cl16 cl16] r16 cl8[ \set stemLeftBeamCount = #1 \set
stemRightBeamCount = #2 cl16 cl16] r16 cl8[ cl16 cl16] r16 cl16]
}

\score
{
  <<
    \new DrumStaff \with { drumStyleTable = #percussion-style }
    <<
      \drei
    >>
  >>

}


What is wrong here?

mfg ar

--
E-Learning in der Schule:
http://www.dbg-metzingen.de/Menschen/Lehrer/Q-T/Rittershofer/E-Learning/



_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: percussion-style

Mats Bengtsson-6
If you click on the example in the manual, you will notice
that you have to specify the number of lines manually.
As an alternative, you might want to use a RhythmicStaff
instead of a DrumStaff, see the section on "Showing melody rhythms"
in the manual.

  /Mats

Citerar Andreas Rittershofer <[hidden email]>:

> I can do what I want, but I cannot get the "percussion-style".
>
> I use Lilypond 2.4.5 and I always get a full staff with five lines.
>
> drei = \drummode
> {
>     cl8[ cl16 cl16] r16 cl8[ \set stemLeftBeamCount = #1 \set
> stemRightBeamCount = #2 cl16 cl16] r16 cl8[ cl16 cl16] r16 cl16]
> }
>
> \score
> {
>   <<
>     \new DrumStaff \with { drumStyleTable = #percussion-style }
>     <<
>       \drei
>     >>
>   >>
>
> }
>
>
> What is wrong here?
>
> mfg ar
>
> --
> E-Learning in der Schule:
> http://www.dbg-metzingen.de/Menschen/Lehrer/Q-T/Rittershofer/E-Learning/
>
>
>
> _______________________________________________
> lilypond-user mailing list
> [hidden email]
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>



_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: percussion-style

Andreas Rittershofer
Am Montag, den 04.07.2005, 11:41 +0200 schrieb Mats Bengtsson:
> If you click on the example in the manual, you will notice
> that you have to specify the number of lines manually.
> As an alternative, you might want to use a RhythmicStaff
> instead of a DrumStaff, see the section on "Showing melody rhythms"
> in the manual.

Now I added the following line:
 \override StaffSymbol #'line-count= #1

But this also does not work:

drei = \drummode
{
    cl8[ cl16 cl16] r16 cl8[ \set stemLeftBeamCount = #1 \set
stemRightBeamCount = #2 cl16 cl16] r16 cl8[ cl16 cl16] r16 cl16]
}

\score
{

    \new DrumStaff \with
    {
      drumStyleTable= #percussion-style
      \override StaffSymbol #'line-count= #1
    }
    <<
      \drei
    >>
}

I get the following error message:

guaguanco_perc.ly:35:44: Fehler: syntax error, unexpected SCM_T,
expecting '=':
      \override StaffSymbol #'line-count= #1


guaguanco_perc.ly:40:0: Fehler: syntax error, unexpected '}':

}


What am I doing wrong here?

mfg ar

--
E-Learning in der Schule:
http://www.dbg-metzingen.de/Menschen/Lehrer/Q-T/Rittershofer/E-Learning/



_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: percussion-style

Mats Bengtsson-6
It seems that you need a space before the "=", for some
silly reason.

   /Mats

Citerar Andreas Rittershofer <[hidden email]>:

> Am Montag, den 04.07.2005, 11:41 +0200 schrieb Mats Bengtsson:
> > If you click on the example in the manual, you will notice
> > that you have to specify the number of lines manually.
> > As an alternative, you might want to use a RhythmicStaff
> > instead of a DrumStaff, see the section on "Showing melody rhythms"
> > in the manual.
>
> Now I added the following line:
>  \override StaffSymbol #'line-count= #1
>
> But this also does not work:
>
> drei = \drummode
> {
>     cl8[ cl16 cl16] r16 cl8[ \set stemLeftBeamCount = #1 \set
> stemRightBeamCount = #2 cl16 cl16] r16 cl8[ cl16 cl16] r16 cl16]
> }
>
> \score
> {
>
>     \new DrumStaff \with
>     {
>       drumStyleTable= #percussion-style
>       \override StaffSymbol #'line-count= #1
>     }
>     <<
>       \drei
>     >>
> }
>
> I get the following error message:
>
> guaguanco_perc.ly:35:44: Fehler: syntax error, unexpected SCM_T,
> expecting '=':
>       \override StaffSymbol #'line-count= #1
>
>
> guaguanco_perc.ly:40:0: Fehler: syntax error, unexpected '}':
>
> }
>
>
> What am I doing wrong here?
>
> mfg ar
>
> --
> E-Learning in der Schule:
> http://www.dbg-metzingen.de/Menschen/Lehrer/Q-T/Rittershofer/E-Learning/
>
>
>
> _______________________________________________
> lilypond-user mailing list
> [hidden email]
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>



_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: percussion-style

Jan Nieuwenhuizen
Mats Bengtsson writes:

> It seems that you need a space before the "=", for some
> silly reason.

Yes.  The reason is not so silly, if you know how it works.

After encountering a hash (#) in the input, LilyPond hands the input
stream to GUILE, to parse one scheme expression.

In Scheme, identifiers can consist of (almost) any character.

>  \override StaffSymbol #'line-count= #1

In this case, the expression that is parsed is the name of an
identifier, called "line-count=".  Then, LilyPond after receiving an
identifier, wants an equal sign.

Jan.

--
Jan Nieuwenhuizen <[hidden email]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org


_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user