lilypond-user
[Top][All Lists]
Advanced

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

Re: Possible feature request for 'q' shorthand or tie syntax


From: Gilles
Subject: Re: Possible feature request for 'q' shorthand or tie syntax
Date: Thu, 20 Sep 2012 22:32:19 +0200
User-agent: Opera Mail/12.02 (Win64)

Le Thu, 20 Sep 2012 12:46:14 +0200, Stefan Thomas <address@hidden> a écrit:

\include "changepitch.ly"
 AV = { c8 c4 }
 av = #(define-music-function (parser location x) (ly:music?)
 #{
 \context Voice << { \changePitch \AV { $x $x } } { s8 ~ s8 } >>
 #})
 \new Staff \relative c' {
 c4. \av es f4 fis4 \av fis g4
 }

In changePitch.ly, there is a special function called \samePitch which can be used for ties
[ It is shortly described in chapter 6 and 7 of changePitch-doc.pdf at
  http://gillesth.free.fr/Lilypond/changePitch/   ]

%%%%%%%%%%%%%
\include "changePitch.ly"

av = #(define-music-function (parser location x) (ly:music?)
 #{
  \changePitch \samePitch { c8 ~ c4 } $x
 #})

\new Staff \relative c' {
   c4. \av es f4
   fis4. \av fis g4
}
%%%%%%%%%%%%%
This example should work with any number of ties, but of course, will produce music with the rhythm you set as pattern.

--
Gilles



reply via email to

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