lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Extracting voices from score with rehearsalnumbers,repeats, etc.?


From: Martin Lejeune
Subject: Extracting voices from score with rehearsalnumbers,repeats, etc.?
Date: Fri, 4 Sep 2015 18:05:32 +0200

Hi List,
I try to extract single voices from my written score.
Copying all related informations like rehearsal letters (boxed barnumbers), repeats, etc.  is very boring. 
All these informations are written into one part (bass) and of course all other voices are without this marks.

Is there any syntax to define it into the \global part of the score?
I tried definition for boxed barnumbers, without success.
As an example I modified the jazzband template from the manual.
Thank you in advance!!

Best regards 
Martin

PS:


\version "2.18.2"
#(set-default-paper-size "a4" ' landscape)
\header {
  title = "New Music"
  subtitle = "template"
  composer = "xxx"
  meter = "uptempo"
  piece = "Swing"
  tagline = \markup {
    \column {
      "© 8/2015"
    }
  }
}

%#(set-global-staff-size 16)
\include "nederlands.ly"

%%%%%%%%%%%% Some macros %%%%%%%%%%%%%%%%%%%

sl = {
  \override NoteHead.style = #'slash
  \hide Stem
}
nsl = {
  \revert NoteHead.style
  \undo \hide Stem
}
crOn = \override NoteHead.style = #'cross
crOff = \revert NoteHead.style


%% insert chord name style stuff here.

jazzChords = { }

%%%%%%%%%%%% Keys'n'thangs %%%%%%%%%%%%%%%%%

global = { \time 4/4\tempo 4 = 220 }


Key = { \key c\major }

% ############ Horns ############


% ------ Alto Saxophone ------
alto = \transpose c a \relative c' {
  \Key
 \repeat unfold 8 {c1} c1
}
altoHarmony = \transpose c' a {
  \jazzChords
}
altoSax = {
  \global
  \set Staff.instrumentName = #"Alto Sax"
  \set Staff.shortInstrumentName = #"as"
  
  \clef treble
  <<
    \alto
  >>
}


% ------ Trombone ------
tbone = \relative c {
  \Key
 
 \repeat unfold 8 {c1} c1

  
}
tboneHarmony = \chordmode {
  \jazzChords
   
}
trombone = {
  \global
  \set Staff.instrumentName = #"Trombone"
  \set Staff.shortInstrumentName = #"trb"
  \clef bass
  <<
    \tbone
  >>
}

% ############ Rhythm Section #############

% ------ Guitar ------
gtr = \relative c'' {
  \Key 
 \repeat unfold 8 {c1} c1

}

 

gtrHarmony = \chordmode {
  \jazzChords
 %1
   \mark \markup \box\bold  "1"
 c1:6 | 
   
}
guitar = {
  \global
  \set Staff.instrumentName = #"Guitar"
  \set Staff.shortInstrumentName = #"g"
  \clef treble
  <<
    \gtr
  >>
}

%% ------ Piano ------
rhUpper = \relative c''
{
  \voiceOne 
  \Key
 \repeat unfold 8 {c1} c1
}

rhLower = \relative c' {
  \voiceTwo
  \Key
 \repeat unfold 8 {c1} c1
}

lhUpper = \relative c' {
  \voiceOne 
  \Key
  \repeat unfold 8 {c1} c1
}
lhLower = \relative c {
  \voiceTwo
  \Key
 \repeat unfold 8 {c1} c1
   
}

PianoRH = {
  \clef treble
  \global
  \set Staff.midiInstrument = #"acoustic grand"
  <<
    \new Voice = "one" \rhUpper
    \new Voice = "two" \rhLower
  >>
}
PianoLH = {
  \clef bass
  \global
  \set Staff.midiInstrument = #"acoustic grand"
  <<
    \new Voice = "one" \lhUpper
    \new Voice = "two" \lhLower
  >>
}

piano = {
  <<
    \set PianoStaff.instrumentName = #"Piano"

    \new Staff = "upper" \PianoRH 
    \new Staff = "lower" \PianoLH
     \set Staff.shortInstrumentName = #"p"
  >>
}

% ------ Bass Guitar ------
Bass = \relative c {
  \Key
\bar "[|:"  \repeat unfold 8 {c1} \bar ":|]"  \mark \markup \box\bold  "9" c1
  
}
bass = {
  \global
  \set Staff.instrumentName = #"Bass"
   \set Staff.shortInstrumentName = #"b"
  \clef bass
  <<
    \Bass
  >>
}

% ------ Drums ------
up = \drummode {
  \voiceOne
 hh4 <hh sn> 
  hh4 <hh sn>  
}
down = \drummode {
  \voiceTwo
  bd4 s8 s4 bd4
s8 s4.

  
}

drumContents = {
  \global
  <<
    \set DrumStaff.instrumentName = #"Drums"
    \new DrumVoice \up
    \new DrumVoice \down
  >>
}

%%%%%%%%% It All Goes Together Here %%%%%%%%%%%%%%%%%%%%%%

\score {
  
  <<
    \new StaffGroup = "horns" <<
     
        \new ChordNames = "altochords" \altoHarmony
      \new Staff = "altosax" \altoSax
       \new ChordNames = "tbonechords" \tboneHarmony
      \new Staff = "trombone" \trombone
    >>

    \new StaffGroup = "rhythm" <<
      \new ChordNames = "gtrchords" \gtrHarmony
      \new Staff = "guitar" \guitar
      \new PianoStaff = "piano" \piano
      
      \new ChordNames = "gtrchords" \gtrHarmony
      \new Staff = "bass" \bass
      \new DrumStaff \drumContents
    >>
  >>
  \layout {

    \context { \Staff \RemoveEmptyStaves }
   
    \context {
      \Score
       \remove "Bar_number_engraver"
      \override BarNumber.padding = #3
      \override RehearsalMark.padding = #2
      skipBars = ##t
    }
  }
  \midi { }
}

Attachment: Jazz Sextett Template.ly
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]