lilypond-user
[Top][All Lists]
Advanced

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

Re: Producing Strumming Pattern Examples


From: Pierre Perol-Schneider
Subject: Re: Producing Strumming Pattern Examples
Date: Sat, 8 Mar 2014 08:01:43 +0100

2014-03-08 5:44 GMT+01:00 Kevin Tough <address@hidden>:
Hi Pierre,

I think I like the "bow" symbols with the "->" thing the best. I've
tried colors by using Lilypond to output an *.svg (-dbackend=svg) and
edited in Inkscape. I have to change the file format anyways from *.pdf
to *.png because I imbed the images in Libre Office. Thanks for your
help. Here is my first template to create decent sized strumming
patterns.

\version "2.18.0"
% StrummingTemplate.ly

% For *.SVG Output use command line "lilypond -dbackend=svg
StrummingTemplate.ly
% Set output size larger for better resolution
#(set-global-staff-size 80)

StrUp = \rightHandFinger \markup\musicglyph #"scripts.upbow" %% You can
put whatever markup you need
StrDown = \rightHandFinger \markup\musicglyph #"scripts.downbow"

\new Staff
\with {
  \consists "Pitch_squash_engraver"
  squashedPosition = #0
}
\relative c'' {
  \numericTimeSignature \time 3/4
  \improvisationOn
  \set strokeFingerOrientations = #'(up)
 % \repeat unfold 4
  { c4\StrDown-> c8\StrDown c\StrUp c\StrDown c\StrUp }
}


Hi Kevin,
You don't need to use Inkscape to colorize objects.
see :  http://lilypond.org/doc/v2.18/Documentation/learning/visibility-and-color-of-objects#the-color-property
see also : http://www.lilypond.org/doc/v2.18/Documentation/notation/inside-the-staff#coloring-objects

here's a example with red and bold "bows" :

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.18.0"

strUp = \rightHandFinger \markup\musicglyph #"scripts.upbow"

strDown = \rightHandFinger \markup\musicglyph #"scripts.downbow"

redStrDown = \rightHandFinger \markup\with-color #red \musicglyph #"scripts.downbow"

magStrDown = \rightHandFinger \markup\magnify #1.1 \musicglyph #"scripts.downbow"

boldStrDown = \rightHandFinger \markup\combine

\path #0.2 #'((moveto 0 0)(lineto 0 1)(lineto 1.2 1)(lineto 1.2 0))

\override #'(line-cap-style . square)

\translate #'(.15 . .8) \path #0.4 #'((moveto 0 0)(lineto .8 0))


\layout {

indent = 0

}


\new Staff

\with {

\consists "Pitch_squash_engraver"

squashedPosition = #0

}

\relative c'' {

\improvisationOn

\set strokeFingerOrientations = #'(up)

c4\boldStrDown c8\strDown c\strUp c4\strDown c8\strDown c\strUp

c4\magStrDown c8\strDown c\strUp c4\strDown c8\strDown c\strUp

c4\redStrDown c8\strDown c\strUp c4\strDown c8\strDown c\strUp

}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Cheers,
~Pierre

reply via email to

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