lilypond-user
[Top][All Lists]
Advanced

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

Can a music function see an active DynamicLineSpanner?


From: Simon Albrecht
Subject: Can a music function see an active DynamicLineSpanner?
Date: Mon, 28 Sep 2015 21:55:32 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0

Hello,

is it possible to know within a music function whether a DynamicLineSpanner is currently playing in the particular voice?
Test file:
%%%%%%%%%%%%
\version "2.19.27"

dummy =
#(define-music-function (dyn) (ly:music?)
   (format #t "Is there an active DynamicLineSpanner already?")
   dyn)

{
  c''\<
  c''-\dummy \f
}
%%%%%%%%%%%%

TIA, Simon

Attachment: dls-playing?.ly
Description: Text Data


reply via email to

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