Thanks, it works now! But the doc about extractMusic is also very interesting! Thanks
2012/8/24 Stefan Thomas <kontrapunktste...@gmail.com> > 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 <gilles.thiba...@free.fr> > >> >> is it possible to get an automatism for smart rhythmic notation. >>> >> You can use patterns >> http://lsr.dsi.unimi.it/LSR/**Item?id=654<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<http://gillesth.free.fr/Lilypond/extractMusic/extractMusic2.14.ly> >> For 2.15 : >> http://gillesth.free.fr/**Lilypond/extractMusic/**extractMusic.ly<http://gillesth.free.fr/Lilypond/extractMusic/extractMusic.ly> >> Doc : >> http://gillesth.free.fr/**Lilypond/extractMusic/**extractMusic-doc.pdf<http://gillesth.free.fr/Lilypond/extractMusic/extractMusic-doc.pdf> >> > >
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user