lilypond-user
[Top][All Lists]
Advanced

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

Re: smart rhythmic notation, can it be done?


From: Stefan Thomas
Subject: Re: smart rhythmic notation, can it be done?
Date: Fri, 24 Aug 2012 09:06:36 +0200

Dear Gilles,
sorry, I get the error-message
smartrhyhtms.ly:11:15: error: unknown escaped string: `\samePitch'
I've used Your file and the version for 2.14. of extractMusic.ly

2012/8/24 Gilles <address@hidden>

is it possible to get an automatism for smart rhythmic notation.
You can use patterns
http://lsr.dsi.unimi.it/LSR/Item?id=654
but perhaps it is not what you wished

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include "extractMusic.ly"

% the following would be fastly written, bad looks bad:
   Music= \relative c'' { c16 b8 a g f e d16\bar"||" }
% the following looks good, but would be more work to do
   smartlynotatedMusic = \relative c'' { c16 b8 a16 ~ a g8 f16 ~ f e8 d16
\bar"||" }
% the following needs to prepare a pattern only once.
   patI = { c8 \samePitch { c16 ~ c}}
   patMusic = \relative c''{ c16 \cPI { b a g f e } d16 }


\score {
   \new Staff {
   \time 3/4
   \Music
   \break
   \smartlynotatedMusic
   \break
   \patMusic

   } }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Gilles

NB
For version 2.14 :
http://gillesth.free.fr/Lilypond/extractMusic/extractMusic2.14.ly
For 2.15 :
http://gillesth.free.fr/Lilypond/extractMusic/extractMusic.ly
Doc :
http://gillesth.free.fr/Lilypond/extractMusic/extractMusic-doc.pdf


reply via email to

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