lilypond-user
[Top][All Lists]
Advanced

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

ANN: new Spontini-Editor version (added "smart parts extracting" tools)


From: Paolo Prete
Subject: ANN: new Spontini-Editor version (added "smart parts extracting" tools)
Date: Mon, 11 Jan 2021 14:22:20 +0100

Hi everyone,

I just released a new version of the Spontini-Editor with new tools that allow you to automatically extract or include parts from a score.
Considering for example the following snippet, taken from:
http://lilypond.org/doc/v2.19/Documentation/learning/string-quartet

% START OF THE SNIPPET ----------------------------------

global= {
  \time 4/4
  \key c \major
}

%{__BLOCK__string-quartet-template_violinOne%}
violinOne = \new Voice \relative c'' {
  c2 d\mf
  e1
  \bar "|."
}
%{%}

%{__BLOCK__string-quartet-template_violinTwo%}
violinTwo = \new Voice \relative c'' {
  g2 f\mf
  e1
  \bar "|."
}
%{%}

%{__BLOCK__string-quartet-template_viola%}
viola = \new Voice \relative c' {
  \clef alto
  e2 d\mf
  c1
  \bar "|."
}
%{%}

%{__BLOCK__string-quartet-template_cello%}
cello = \new Voice \relative c' {
  \clef bass
  c2 b\mf
  a1
  \bar "|."
}
%{%}

\score {
  \new StaffGroup <<
    \new Staff << \global \violinOne >>
    \new Staff << \global \violinTwo >>
    \new Staff << \global \viola >>
    \new Staff << \global \cello >>
  >>
  \layout { }
  \midi { }
}

% END OF THE SNIPPET ------------------------------------


... it is now possible to replace "on the fly" any block included between% {__ BLOCK__blockname%} ...% {%} with included files that the editor will automatically generate, thus making the blocks "included":


% START OF THE SNIPPET ----------------------------------

global= {
  \time 4/4
  \key c \major
}

%{__BLOCK__string-quartet-template_violinOne%}
\include "string-quartet-template_violinOne.ly"
%{%}

%{__BLOCK__string-quartet-template_violinTwo%}
\include "string-quartet-template_violinTwo.ly"
%{%}

%{__BLOCK__string-quartet-template_viola%}
\include "string-quartet-template_viola.ly"
%{%}

%{__BLOCK__string-quartet-template_cello%}
\include "string-quartet-template_cello.ly"
%{%}

\score {
  \new StaffGroup <<
    \new Staff << \global \violinOne >>
    \new Staff << \global \violinTwo >>
    \new Staff << \global \viola >>
    \new Staff << \global \cello >>
  >>
  \layout { }
  \midi { }
}

% END OF THE SNIPPET ------------------------------------

At the same time, you can automatically replace each "included" block with the content of the corresponding included file, making the block inline again.
The complete example to refer to is the following:

https://github.com/paolo-prete/Spontini/blob/master/examples/string-quartet-template-example.ly

HTH,

Best
P

reply via email to

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