Eclats de vers : Opus : Musica : Templates

Retour à l’accueil

Table of Contents

1. Claviers

Le résultat :

clav.png

La source :

% vim: set fdm=indent:

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

%\version "2.24.0"

\language "english"

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

\layout {
  %\enablePolymeter
  \override Score.BarNumber.break-visibility = ##(#t #t #t)
  \context {
    \Score
    %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.*1
%showLastLength = R2.*8

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

\include "include/mel.ly"

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

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

}

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

}

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

}

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

}

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

}

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

}

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

}

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

}

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

}

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

}

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

instrumentOrgan = \new GrandStaff \with {
  instrumentName = "organ"
  shortInstrumentName =  "org"
} <<
  \new Staff = "treble" \with {
    midiInstrument = "flute"
    midiMinimumVolume = #1.0
    midiMaximumVolume = #1.0
  } { \clef treble 
      %\showStaffSwitch
      \voiceOrganRight }
  \new Staff = "bass" \with {
    midiInstrument = "bassoon"
    midiMinimumVolume = #1.0
    midiMaximumVolume = #1.0
  } { \clef bass 
      %\showStaffSwitch
      \voiceOrganLeft }
>>

instrumentViolaOrganista = \new GrandStaff \with {
  instrumentName = \markup \column { viola orga- nista }
  shortInstrumentName = \markup \column { va org }
} <<
  \new Staff = "treble" \with {
    midiInstrument = "violin"
    midiMinimumVolume = #1.0
    midiMaximumVolume = #1.0
  } { \clef treble 
      %\showStaffSwitch
      \voiceViolaOrganistaRight }
  \new Staff = "bass" \with {
    midiInstrument = "cello"
    midiMinimumVolume = #1.0
    midiMaximumVolume = #1.0
  } { \clef bass 
      %\showStaffSwitch
      \voiceViolaOrganistaLeft }
>>

instrumentPiano = \new GrandStaff \with {
  instrumentName = "piano"
  shortInstrumentName = "pn"
} <<
  \new Staff = "treble" \with {
    midiInstrument = "acoustic grand"
    midiMinimumVolume = #1.5
    midiMaximumVolume = #2.0
  } { \clef treble 
      %\showStaffSwitch
      \voicePianoRight }
  \new Staff = "bass" \with {
    midiInstrument = "acoustic grand"
    midiMinimumVolume = #1.5
    midiMaximumVolume = #2.0
  } { \clef bass 
      %\showStaffSwitch
      \voicePianoLeft }
>>

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 = #1.5
  } { \clef treble 
      %\showStaffSwitch
      \voiceHarpsichordRight }
  \new Staff = "bass" \with {
    midiInstrument = "harpsichord"
    midiMinimumVolume = #1.5
    midiMaximumVolume = #1.5
  } { \clef bass 
      %\showStaffSwitch
      \voiceHarpsichordLeft }
>>

instrumentVibraphone = \new Staff = "vibraphone" \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 {
  \score {
    <<
      \instrumentOrgan
      \instrumentViolaOrganista
      \instrumentPiano
      \instrumentHarpsichord
      \instrumentVibraphone
      \instrumentDrums
    >>
    \layout { }
    \midi {
      \context {
	\Score
	%midiChannelMapping = #'instrument
	%\enablePolymeter
      }
    }
  }
  \paper {
    system-separator-markup = \slashSeparator
  }
}

Author: chimay

Created: 2023-05-10 mer 16:49

Validate