Need a link to answer how to set up percussion staves properly

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

Need a link to answer how to set up percussion staves properly

Jay Hamilton, Sound and Silence
Running this on winxp-pro

Below you will find the file - so far.  What I keep on getting is errors
about the percussion staffs but I can't find in the manual-pdf how to set
up the score properly.  Please direct me to the link so I can correct
whatever errors I'm having.
Thanks
Jay

\version "2.8.4"
\header {
  title = "Wax"
  composer = "Jay Hamilton"

  copyright = "CC lic.#2.5 some rights reserved Jay Hamilton 2006"

}
global = {
#(set-global-staff-size 19)
 \key f \major
\time 4/4
\override Staff.TimeSignature #'style = #'() }
Flute = \relative c' {
\set Staff.instrument = #"Flute"
\set Staff.midiInstrument = "Flute"
\clef treble

r1
}

Clarinet = \relative c' {
\set Staff.instrument = #"Clarinet in C"
\set Staff.midiInstrument = "Clarinet"
\clef treble
r1

}

Alto  = \relative c' {
\set Staff.instrument = #"Alto Sax"
\set Staff.midiInstrument = "Alto Sax"
\clef treble
r1

}

Trumpet = \relative c {
\set Staff.instrument = #"Trumpet in C"
\set Staff.midiInstrument = "Trumpet"
\clef treble
r1
}


\new RhythmicStaff
woodblock = \relative c {
\set Staff.instrument = #"Woodblock"
\set Staff.midiInstrument = "woodblock"
\override Staff.StaffSymbol #'line-count = 1
r1
}

\new RhythmicStaff
 Ride = \relative c {
\set Staff.instrument = #"Ride Cymbal"
\set Staff.midiInstrument = "Ride"
\override Staff.StaffSymbol #'line-count = 1
r1
}
\new RhythmicStaff
 tom = \relative c {
\set Staff.instrument = #"Floor Tom"
\set Staff.midiInstrument = "Melodic Tom"
\override Staff.StaffSymbol #'line-count = 1
r1
}
\new RhythmicStaff
bass = \relative c {
\set Staff.instrument = #"Bass Drum"
\set Staff.midiInstrument = "bass drum"
\override Staff.StaffSymbol #'line-count = 1

}


Violin = \relative c {
        \set Staff.instrument = #"Violin"
        \set Staff.midiInstrument = "violin"
        \clef treble

}

Viola = \relative c' {
\set Staff.instrument = #"Viola"
\set Staff.midiInstrument = "viola"
\clef alto
r1
}


Cello = \relative c {
\set Staff.instrument = #"Cello"
\set Staff.midiInstrument = "Cello"
\clef bass
r1
}

Contrabass = \relative c {
\set Staff.instrument = #"Contrabass"
\set Staff.midiInstrument = "contrabass"
\clef "F_8"
r1

}
\score {
<<
\context StaffGroup = A <<
        \new Staff \Flute
        \new Staff \Clarinet
        \new Staff \Alto
        \new Staff \Trumpet
        >>

\context StaffGroup = B
        <<
        \new RhythmicStaff
        \new RhythmicStaff
        \new RhythmicStaff
        \new RhythmicStaff
        >>
\context StaffGroup = C
        <<
        \new Staff \Violin
        \new Staff \Viola
        \new Staff \Cello
        \new Staff \Contrabass
        >>
        >>
        \layout { }
\midi {\tempo 4=112 }
}



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

Re: Need a link to answer how to set up percussion staves properly

Kieren MacMillan
Hi, Jay:

> What I keep on getting is errors about the percussion staffs

You should try to define all the different staffs consistently -- in  
your case, you were using \new RhythmicStaff in both the definition  
of the percussion variables (parts) and instantiation of their  
respective staves (within the score).

Compare my modified version, below.

Best regards,
Kieren.

___________________________

\version "2.8.4"
\header
{
        title = "Wax"
        composer = "Jay Hamilton"
        copyright = "CC lic.#2.5 some rights reserved Jay Hamilton 2006"
}

global =
{
        #(set-global-staff-size 19)
        \key f \major
        \time 4/4
        \override Staff.TimeSignature #'style = #'()
}

flute = \relative c'
{
        \set Staff.instrument = #"Flute"
        \set Staff.midiInstrument = "Flute"
        \clef treble
        r1
}

clarinet = \relative c'
{
        \set Staff.instrument = #"Clarinet in C"
        \set Staff.midiInstrument = "Clarinet"
        \clef treble
        r1
}

alto  = \relative c'
{
        \set Staff.instrument = #"Alto Sax"
        \set Staff.midiInstrument = "Alto Sax"
        \clef treble
        r1
}

trumpet = \relative c
{
        \set Staff.instrument = #"Trumpet in C"
        \set Staff.midiInstrument = "Trumpet"
        \clef treble
        r1
}

woodblock = \relative c
{
        \set Staff.instrument = #"Woodblock"
        \set Staff.midiInstrument = "woodblock"
        \override Staff.StaffSymbol #'line-count = 1
        r1
}

ride = \relative c
{
        \set Staff.instrument = #"Ride Cymbal"
        \set Staff.midiInstrument = "Ride"
        \override Staff.StaffSymbol #'line-count = 1
        r1
}

tom = \relative c
{
        \set Staff.instrument = #"Floor Tom"
        \set Staff.midiInstrument = "Melodic Tom"
        \override Staff.StaffSymbol #'line-count = 1
        r1
}

bass = \relative c
{
        \set Staff.instrument = #"Bass Drum"
        \set Staff.midiInstrument = "Bass drum"
        \override Staff.StaffSymbol #'line-count = 1
}

violin = \relative c
{
        \set Staff.instrument = #"Violin"
        \set Staff.midiInstrument = "violin"
        \clef treble
        r1
}

viola = \relative c'
{
        \set Staff.instrument = #"Viola"
        \set Staff.midiInstrument = "viola"
        \clef alto
        r1
}

cello = \relative c
{
        \set Staff.instrument = #"Cello"
        \set Staff.midiInstrument = "Cello"
        \clef bass
        r1
}

contrabass = \relative c
{
        \set Staff.instrument = #"Contrabass"
        \set Staff.midiInstrument = "contrabass"
        \clef "F_8"
        r1
}

\score
{
        <<
                \new StaffGroup = A
                <<
                        \new Staff \flute
                        \new Staff \clarinet
                        \new Staff \alto
                        \new Staff \trumpet
                >>
                \new StaffGroup = B
                <<
                        \new RhythmicStaff \woodblock
                        \new RhythmicStaff \ride
                        \new RhythmicStaff \tom
                        \new RhythmicStaff \bass
                >>
                \new StaffGroup = C
                <<
                        \new Staff \violin
                        \new Staff \viola
                        \new Staff \cello
                        \new Staff \contrabass
                >>
        >>
        \layout { }
        \midi {\tempo 4=112 }
}


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

Re: Need a link to answer how to set up percussion staves properly

Markus Schneider-2
In reply to this post by Jay Hamilton, Sound and Silence
Jay,

maybe this points you in the right direction using DrumStaff and/or
RhythmicStaff.

Note the layout changes I added in the layout-block.

Here you can find more details for modifications in that manner:
http://lilypond.org/doc/v2.8/Documentation/user/lilypond-internals.html#DrumStaff
http://lilypond.org/doc/v2.8/Documentation/user/lilypond-internals.html#RhythmicStaff


Markus

%%%
\version "2.8.4"
\header {
  title = "Wax"
  composer = "Jay Hamilton"

  copyright = "CC lic.#2.5 some rights reserved Jay Hamilton 2006"

}
global = {
  #(set-global-staff-size 19)
  \key f \major
  \time 4/4
  \override Staff.TimeSignature #'style = #'()
}

Flute = \relative c' {
  \set Staff.instrument = #"Flute"
  \set Staff.midiInstrument = "Flute"
  \clef treble

  r1
}

Clarinet = \relative c' {
  \set Staff.instrument = #"Clarinet in C"
  \set Staff.midiInstrument = "Clarinet"
  \clef treble
  r1

}

Alto  = \relative c' {
  \set Staff.instrument = #"Alto Sax"
  \set Staff.midiInstrument = "Alto Sax"
  \clef treble
  r1

}

Trumpet = \relative c {
  \set Staff.instrument = #"Trumpet in C"
  \set Staff.midiInstrument = "Trumpet"
  \clef treble
  r1
}

woodblock = {
  \set Staff.instrument = #"Woodblock"
  \set Staff.midiInstrument = "woodblock"
  r1
}


Ride = {
  \set Staff.instrument = #"Ride Cymbal"
  \set Staff.midiInstrument = "Ride"
  r1
}

tom = {
  \set Staff.instrument = #"Floor Tom"
  \set Staff.midiInstrument = "Melodic Tom"
  r1
}

bassdr = {
  \set Staff.instrument = #"Bass Drum"
  \set Staff.midiInstrument = "bassdrum"
  r1
}


Violin = \relative c {
  \set Staff.instrument = #"Violin"
  \set Staff.midiInstrument = "violin"
  \clef treble
  r1
}

Viola = \relative c' {
  \set Staff.instrument = #"Viola"
  \set Staff.midiInstrument = "viola"
  \clef alto
  r1
}


Cello = \relative c {
  \set Staff.instrument = #"Cello"
  \set Staff.midiInstrument = "Cello"
  \clef bass
  r1
}

Contrabass = \relative c {
  \set Staff.instrument = #"Contrabass"
  \set Staff.midiInstrument = "contrabass"
  \clef "F_8"
  r1

}
\score { {
  <<
    \context StaffGroup = A
    <<
      \new Staff \Flute
      \new Staff \Clarinet
      \new Staff \Alto
      \new Staff \Trumpet
    >>

    \context StaffGroup = B
    <<
      \new RhythmicStaff \woodblock
      \new RhythmicStaff \Ride
      \new RhythmicStaff \tom
      \new RhythmicStaff \bassdr
    >>
    \context StaffGroup = C
    <<
      \new Staff \Violin
      \new Staff \Viola
      \new Staff \Cello
      \new Staff \Contrabass
    >>
    \context StaffGroup = D
    <<
      \new DrumStaff \woodblock
      \new DrumStaff \Ride
      \new DrumStaff \tom
      \new DrumStaff \bassdr
    >>
  >> }
  \layout {
    \context {
      \RhythmicStaff
        \consists Clef_engraver
        clefGlyph = #"clefs.percussion"
        clefPosition = #0
    }
    \context {
      \DrumStaff
        \override StaffSymbol #'line-count = #1
    }
  }
  \midi {\tempo 4=112 }
}
%%%





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