Eclats de vers : Opus : Musica : template

Retour à l’accueil

Table of Contents

1. Petit chambre avec harpe et quatuor à vent

Le résultat :

recep.png

Le fichier source :

% vim: set fdm=indent:

% ------------ headers ------------

%\version "2.24.0"

\language "english"

\header {
  title = "réception"
  subtitle="chambre avec harpe et quatuor à vent"
  composer = "composer"
  poet = "poet"
  %piece = "piece"
}

\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 ------------

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

% ------------ melodies ------------

\include "include/mel.ly"

% ------------ voices ------------

voiceWindSoprano = \fixed c'' {
  \global
  \tempo 2. = 50
  % Music follows here.
  \anacrusis

}

voiceWindAlto = \fixed c' {
  \global
  % Music follows here.
  \anacrusis

}

voiceWindTenor = \fixed c {
  \global
  % Music follows here.
  \anacrusis

}

voiceWindBass = \fixed c, {
  \global
  % Music follows here.
  \anacrusis

}

voiceStringSoprano = \fixed c'' {
  \global
  % Music follows here.
  \anacrusis

}

voiceStringAlto = \fixed c' {
  \global
  % Music follows here.
  \anacrusis

}

voiceStringTenor = \fixed c {
  \global
  % Music follows here.
  \anacrusis

}

voiceStringBass = \fixed c, {
  \global
  % Music follows here.
  \anacrusis

}

voiceKeyboardRight = \fixed c'' {
  \global
  % Music follows here.
  \anacrusis

}

voiceKeyboardLeft = \fixed c {
  \global
  % Music follows here.
  \anacrusis

}

voiceHarpTreble = \fixed c'' {
  \global
  % Music follows here.
  \anacrusis

}

voiceHarpBass = \fixed c {
  \global
  % Music follows here.
  \anacrusis

}

voiceVibraphone = \fixed c' {
  \global
  % Music follows here.
  \anacrusis

}

voiceDrums = \drummode {
  \global
  % Music follows here.
  \anacrusisDrums

}

% ------------ instruments ------------

instrumentWinds = \new StaffGroup \with {
  instrumentName = "winds"
  shortInstrumentName = "wd"
} <<
  \new Staff = "treble"
  << \clef french
     \new Voice \with {
       midiInstrument = "flute"
       midiMinimumVolume = #1.0
       midiMaximumVolume = #1.5
     } { \voiceOne \voiceWindSoprano }
     \new Voice \with {
       midiInstrument = "oboe"
       midiMinimumVolume = #1.0
       midiMaximumVolume = #1.5
     } { \voiceTwo \voiceWindAlto }
  >>
  \new Staff = "bass"
  << \clef varbaritone
     \new Voice \with {
       midiInstrument = "english horn"
       midiMinimumVolume = #1.0
       midiMaximumVolume = #1.5
     } { \voiceOne \voiceWindTenor }
     \new Voice \with {
       midiInstrument = "bassoon"
       midiMinimumVolume = #1.0
       midiMaximumVolume = #1.5
     } { \voiceTwo \voiceWindBass }
  >>
>>

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 >> }
>>

instrumentKeyboard = \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
      \voiceKeyboardRight }
  \new Staff = "bass" \with {
    midiInstrument = "harpsichord"
    midiMinimumVolume = #1.5
    midiMaximumVolume = #2.0
  } { \clef bass 
      %\showStaffSwitch
      \voiceKeyboardLeft }
>>

instrumentHarp = \new GrandStaff \with {
  instrumentName = "harp"
  shortInstrumentName = "hp"
} <<
  \new Staff = "treble" \with {
    midiInstrument = "orchestral harp"
    midiMinimumVolume = #1.5
    midiMaximumVolume = #2.0
  } { \clef treble \voiceHarpTreble }
  \new Staff = "bass" \with {
    midiInstrument = "orchestral harp"
    midiMinimumVolume = #1.5
    midiMaximumVolume = #2.0
  } { \clef bass \voiceHarpBass }
>>

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

instrumentDrums = \new DrumStaff \with {
  instrumentName = "drums"
  shortInstrumentName = "dm"
} { \clef percussion \voiceDrums }

% ------------ book ------------

\book {
  \markup \column {
    \vspace #1
    \line { winds = flute, oboe, english horn, bassoon }
    \line { strings = 2 violins, 2 cellos }
    \vspace #1
  }
  \score {
    <<
      \instrumentWinds
      \instrumentStrings
      \instrumentKeyboard
      \instrumentHarp
      \instrumentVibraphone
      \instrumentDrums
    >>
    \layout { }
    \midi {
      \context {
        \Score
        %midiChannelMapping = #'voice
        %\enablePolymeter
      }
      \context {
        \Staff
        \remove "Staff_performer"
      }
      \context {
        \Voice
        \consists "Staff_performer"
      }
    }
  }
  \paper {
    system-separator-markup = \slashSeparator
  }
}

Author: chimay

Created: 2023-11-20 lun 18:10

Validate