Eclats de vers : Opus : Musica : Templates

Retour à l’accueil

Table of Contents

1. Septuor à cordes

Le résultat :

cord.png

La source :

% vim: set fdm=indent:

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

%\version "2.24.0"

\language "english"

\header {
  title = "septuor à cordes"
  subtitle="strings"
  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 ------------

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

}

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

}

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

}

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

}

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

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

}

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

}

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

instrumentViolin = \new Staff \with {
  instrumentName = "violin"
  shortInstrumentName = "vn"
  midiInstrument = "violin"
  midiMinimumVolume = #1.0
  midiMaximumVolume = #1.5
} { \clef treble
    %\override Staff.StaffSymbol.line-count = #7
    << \voiceSoprano \\ \voiceMezzo >> }

instrumentViola = \new Staff \with {
  instrumentName = "viola"
  shortInstrumentName = "va"
  midiInstrument = "viola"
  midiMinimumVolume = #1.0
  midiMaximumVolume = #1.5
} { \clef alto
    %\override Staff.StaffSymbol.line-count = #7
    << \voiceAlto \\ \voiceCounter >> }

instrumentCello = \new Staff \with {
  instrumentName = "cello"
  shortInstrumentName = "vc"
  midiInstrument = "cello"
  midiMinimumVolume = #1.0
  midiMaximumVolume = #1.5
} { \clef varbaritone
    %\override Staff.StaffSymbol.line-count = #7
    << \voiceTenor \\ \voiceBarytone >> }

instrumentContrabass = \new Staff \with {
  instrumentName = \markup \column { contra- bass }
  shortInstrumentName = "cb"
  midiInstrument = "contrabass"
  midiMinimumVolume = #1.0
  midiMaximumVolume = #1.5
} { \clef bass
    %\override Staff.StaffSymbol.line-count = #7
    \voiceBass }

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

\book {
  \score {
    <<
      \new StaffGroup <<
	\instrumentViolin
	\instrumentViola
	\instrumentCello
	\instrumentContrabass
      >>
    >>
    \layout { }
    \midi {
      \context {
	\Score
	%midiChannelMapping = #'instrument
	%\enablePolymeter
      }
    }
  }
  \paper {
    system-separator-markup = \slashSeparator
  }
}

Author: chimay

Created: 2023-04-13 jeu 09:49

Validate