lilypond-user
[Top][All Lists]
Advanced

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

Re: articulate.ly script


From: Aaron Hill
Subject: Re: articulate.ly script
Date: Mon, 19 Oct 2020 00:02:53 -0700
User-agent: Roundcube Webmail/1.4.9

On 2020-10-18 11:45 pm, Andrew Bernard wrote:
OK. So, how do you tell it legato? Slurs? I am new to this area. And
of course the visual output with rests is not musically correct, is it
(not that it matters).

The documentation for \articulate is within the script itself. See this excerpt:

%%% Technical Details:
% * Any note not under a slur or phrasing slur, and not marked with an
% explicit articulation, is shortened by ac:normalFactor (default 7/8).
%   (Shortening a note means replacing the note with a note of a smaller
% duration, and a rest to make up for the difference between the durations
%   of the original and the shortened note.)
% * Notes marked with articulations are shortened by factors specific to the
%   articulation as follows:
%     staccato       not under a slur: ac:staccatoFactor (default 1/2)
%                    under a slur: ac:portatoFactor (default 3/4)
%     staccatissimo  ac:staccatissimoFactor (default 1/4)
%     portato        ac:portatoFactor (default 3/4)
% tenuto ac:tenutoFactor (default 1/1 - by default, notes marked
%                                     tenuto are not shortened)

You can redefine any of the ac:*Factor values to customize the effects. So, let us say you never want "normal" notes to be shortened:

%%%%
\version "2.20.0"
\include "articulate.ly"

#(define ac:normalFactor '(1 . 1))
\articulate { c'2 d'4 e' f'1 }
%%%%

Alternately, you would add slurs or use \tenuto to keep the length full.

While \articulate could be used for printed music, it is largely intended for MIDI output. This pattern would be common:

%%%%
\version "2.20.0"
\include "articulate.ly"

music = { c'2 d'4 e' f'1 }
\score { \music \layout {} }
\score { \articulate \music \midi {} }
%%%%

You can use tags to mark things for MIDI only:

%%%%
\version "2.20.0"
\include "articulate.ly"

music = { c'2\tag #'midi ( d'4 e' f'1 \tag #'midi ) }
\score { \removeWithTag #'(midi) \music \layout {} }
\score { \articulate \music \midi {} }
%%%%


-- Aaron Hill



reply via email to

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