-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Montag, 5. Januar 2009 22:53:26 schrieb chip:
> trumpet = {
>   \global
>   \set Staff.instrumentName = #"Trumpet 1"
>   \set Staff.shortInstrumentName = #"Tpt 1"       ~~~~~~~ I set this so
> it shows on all the score pages
>   \set
>   \clef treble
>   <<
>     \trpt
>  >>
> }
[...]
> \book { \score { << \new Staff = "trumpet" \with { \remove
> shortInstrumentName } \trumpet >> } }

You can't unset shortInstrumentName here, since \trumpet will later set it 
again... (also, you'd have to use \unset rather than \remove to unset a 
variable like shortInstrumentName)

However, you can remove the engraver, i.e. the internal program part that is 
responsible for reading the shortInstrumentName setting and generating the 
appropriate graphical object for it; Lilypond consists of lots of such small 
independent modules (engravers), where each is responsible for one small part 
of the output. That way it is simple to turn of some output by simply removing 
the engraver.:

\book { \score { << \new Staff = "trumpet" \with { \remove
Instrument_name_engraver } \trumpet >> } }

Attached is the file from you mail, where I only changed shortInstrumentName 
to Instrument_name_engraver (and commented/removed lines that referred to 
definitions you deleted).

Cheers,
Reinhold

- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, [email protected], http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFJYoRLTqjEwhXvPN0RApMmAJ9zsZwRQa2ZEjQrzR/lnQAF4KoVdQCgucHn
E1NhZvaum+k6TbzvquAfOSs=
=stjg
-----END PGP SIGNATURE-----
% LilyPond
\include "english.ly"
\version "2.12.0"
\header{
    title = "Que Bien Te Miras"
    composer = "Recorded by: Rudy Palacias"
    arranger = "Transcribed by: Chip Wiegand"
}
global = { \time 4/4 \key g \major \tempo 4=107
  #(override-auto-beam-setting '(end 1 8 * *) 1 4 'Staff)
  #(override-auto-beam-setting '(end 1 8 * *) 2 4 'Staff)
  #(override-auto-beam-setting '(end 1 8 * *) 3 4 'Staff)
  %\override Score.BarNumber #'break-visibility = #'#(#f #f #f)
  %\override Score.BarNumber #'break-visibility = #end-of-line-invisible 
  %\override Score.BarNumber #'self-alignment-X = #-1
  \override Glissando #'thickness = #3
  \override Glissando #'style = #'zigzag
  \override Glissando #'minimum-length = #6
  \override Glissando #'springs-and-rods = #ly:spanner::set-spacing-rods
  \override MultiMeasureRest #'expand-limit = 1
  \set Score.skipBars = ##t 
  \numericTimeSignature
}
\paper {
top-margin = 0.1\cm
page-top-space = 0.1\cm
ragged-bottom = ##t
left-margin = 20\mm
line-width = 175\mm
}
% ------ Trumpet 1------
trpt = \relative c' {
\partial 8*3 fs8 fs e-.
a8 a-. a8.-. a16 a8-. fs g a-.
% ===== all the rest of the notes removed to condense it here ===
}

trumpet = {
  \global
  \set Staff.instrumentName = #"Trumpet 1"
  \set Staff.shortInstrumentName = #"Tpt 1"   %    ~~~~~~~ I set this so it shows on all the score pages
  \clef treble
  <<
    \trpt
  >>
}
 
% ------ Trumpet 2------
% ====  a whole bunch of notation removed to condense it here ====

\book { \score {
        << \new Staff = "trumpet" \trumpet
%              \new Staff = "trumpetb" \trumpetb
%              \new Staff = "alto" \altosax
%              \new Staff = "altob" \altosaxb
%              \new Staff = "tenor" \tenorsax
%              \new Staff = "bari" \barisax
%              \new Staff = "trombone" \trombone
%          \new Staff = "tromboneb" \tromboneb
        >> } }
\book { \score { << \new Staff = "trumpet" \with { \remove Instrument_name_engraver } \trumpet >> } }
\layout { \context { \Score } }
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to