Eclats de vers : Opus : Musica : template

Retour à l’accueil

Table of Contents

1. Pavillon

Le résultat :

pavillon.png

Le fichier source :

% vim: set expandtab shiftwidth=2 softtabstop=2:

\version "2.24.3"

% included files {{{1

\include "global/global.glob.ly"
\include "melody/melody.mld.ly"

% header {{{1

\header {
  title = "pavillon"
  subtitle="chamber"
  composer = "composer"
  poet = "poet"
  %piece = "piece"
}

% layout {{{1

\layout {
  %\enablePolymeter
  \override Score.BarNumber.break-visibility = ##(#t #t #t)
  \context {
    \Score
    measureBarType = #","
    %barNumberVisibility = #(every-nth-bar-number-visible 8)
    barNumberVisibility = #(modulo-bar-number-visible 8 0)
  }
  \context {
    \Staff
    \RemoveEmptyStaves
    \consists "Merge_rests_engraver"
  }
}

% view only the beg/end {{{1

%showFirstLength = R2.*8
%showLastLength = R2.*8

% voices {{{1

% flutes {{{2

% soprano {{{3

voiceFluteSoprano = \relative c'' {
  \keytime
  \tempo 2. = 50
  \anacrusis % bar structure 0
}

% alto {{{3

voiceFluteAlto = \relative c' {
  \keytime
  \anacrusis % bar structure 0
}

% organ {{{2

% right {{{3

voiceOrganRight = \relative c'' {
  \keytime
  \anacrusis % bar structure 0
}

% left {{{3

voiceOrganLeft = \relative c {
  \keytime
  \anacrusis % bar structure 0
}

% strings {{{2

% soprano {{{3

voiceStringSoprano = \relative c'' {
  \keytime
  \anacrusis % bar structure 0
}

% alto {{{3

voiceStringAlto = \relative c' {
  \keytime
  \anacrusis % bar structure 0
}

% tenor {{{3

voiceStringTenor = \relative c {
  \keytime
  \anacrusis % bar structure 0
}

% bass {{{3

voiceStringBass = \relative c, {
  \keytime
  \anacrusis % bar structure 0
}

% harpsichord {{{2

% right {{{3

voiceHarpsichordRight = \relative c'' {
  \keytime
  \anacrusis % bar structure 0
}

% left {{{3

voiceHarpsichordLeft = \relative c {
  \keytime
  \anacrusis % bar structure 0
}

% lutes {{{2

% treble {{{3

voiceLuteTreble = \relative c' {
  \keytime
  \anacrusis % bar structure 0
}

% bass {{{3

voiceLuteBass = \relative c, {
  \keytime
  \anacrusis % bar structure 0
}

% vibraphone {{{2

voiceVibraphone = \relative c' {
  \keytime
  \anacrusis % bar structure 0
}

% drums {{{2

voiceDrums = \drummode {
  \keytime
  \anacrusisDrums % 0
}

% instruments {{{1

% flutes {{{2

instrumentFlutes = \new Staff \with {
  instrumentName = "flutes"
  shortInstrumentName = "fls"
  midiInstrument = "flute"
  midiMinimumVolume = #1.0
  midiMaximumVolume = #1.5
} { % \clef french
    \clef treble
    << \voiceFluteSoprano \\ \voiceFluteAlto >> }

% organ {{{2

instrumentOrgan = \new GrandStaff \with {
  instrumentName = "organ"
  shortInstrumentName = "org"
  connectArpeggios = ##t
} <<
  \new Staff = "treble" \with {
    midiInstrument = "reed organ"
    midiMinimumVolume = #1.5
    midiMaximumVolume = #2.0
  } { \clef treble
      %\showStaffSwitch
      \voiceOrganRight }
  \new Staff = "bass" \with {
    midiInstrument = "reed organ"
    midiMinimumVolume = #1.5
    midiMaximumVolume = #2.0
  } { \clef bass
      %\showStaffSwitch
      \voiceOrganLeft }
>>

% strings {{{2

instrumentStrings = \new StaffGroup \with {
  instrumentName = "strings"
  shortInstrumentName = "st"
} <<
  \new Staff = "treble" \with {
    midiInstrument = "violin"
    midiMinimumVolume = #1.0
    midiMaximumVolume = #1.5
  } { \clef treble
      << \voiceStringSoprano \\ \voiceStringAlto >> }
  \new Staff = "bass" \with {
    midiInstrument = "cello"
    midiMinimumVolume = #1.0
    midiMaximumVolume = #1.5
  } { \clef bass
      << \voiceStringTenor \\ \voiceStringBass >> }
>>

% harpsichord {{{2

instrumentHarpsichord = \new GrandStaff \with {
  instrumentName = \markup \column { harpsi- chord }
  shortInstrumentName = \markup \column { hp cd }
  connectArpeggios = ##t
} <<
  \new Staff = "treble" \with {
    midiInstrument = "harpsichord"
    midiMinimumVolume = #1.5
    midiMaximumVolume = #2.0
  } { \clef treble
      %\showStaffSwitch
      \voiceHarpsichordRight }
  \new Staff = "bass" \with {
    midiInstrument = "harpsichord"
    midiMinimumVolume = #1.5
    midiMaximumVolume = #2.0
  } { \clef bass
      %\showStaffSwitch
      \voiceHarpsichordLeft }
>>

% lutes {{{2

instrumentLutes = \new StaffGroup \with {
  instrumentName = "lutes"
  shortInstrumentName = "lts"
} <<
  \new Staff = "treble" \with {
    midiInstrument = "acoustic guitar (nylon)"
    midiMinimumVolume = #1.5
    midiMaximumVolume = #2.0
    % -- 3rd line G clef
    %clefGlyph = #"clefs.G"
    %clefPosition = #0
    %clefTransposition = #0
    %middleCPosition = #-4
    %middleCClefPosition = #-4
  } { \clef soprano
      \voiceLuteTreble }
  \new Staff = "bass" \with {
    midiInstrument = "acoustic bass"
    midiMinimumVolume = #1.5
    midiMaximumVolume = #2.0
  } { \clef subbass
      \voiceLuteBass }
>>

% vibraphone {{{2

instrumentVibraphone = \new Staff \with {
  instrumentName = \markup \column { vibra- phone }
  shortInstrumentName = "vb"
  midiInstrument = "vibraphone"
  midiMinimumVolume = #1.0
  midiMaximumVolume = #1.5
} { \clef treble \voiceVibraphone }

% drums {{{2

instrumentDrums = \new DrumStaff \with {
  instrumentName = "drumkit"
  shortInstrumentName = "dk"
} { \clef percussion \voiceDrums }

% book {{{1

\book {
  \markup \column {
    \vspace #1
    \line { winds = 2 flutes, 2 bassoons }
    \line { strings = 2 violins, 2 cellos }
    \line { lutes = lute, archlute }
    \vspace #1
  }
  \score {
    <<
      \instrumentFlutes
      \instrumentOrgan
      \instrumentStrings
      \instrumentHarpsichord
      \instrumentLutes
      \instrumentVibraphone
      \instrumentDrums
    >>
    \layout { }
    \midi {
      \context {
        \Score
        %midiChannelMapping = #'instrument
        %\enablePolymeter
      }
    }
  }
  \paper {
    system-separator-markup = \slashSeparator
  }
}

Author: chimay

Created: 2024-01-17 mer 12:01

Validate