[email protected] writes: > On 2014/06/14 06:58:52, dak wrote: >>> On 2014/06/06 09:29:03, Mark Polesky wrote: >>> ... Ideally, if the user has already >>> modified some of those values, I'd like to base the new scaled values > on >>> the user's choices, and not base them on the LilyPond default values. >>> If that's possible at all, I don't know how to do that. > >> If you do a read-modify-write on properties, you have to use > \applyMusic >> for that. > > David, > I'm sorry to say that I'm unable to figure this out on my own. > \applyMusic is completely undocumented and the few occurrences in the > source code are not illustrative enough for me. Within an \applyMusic > construct, how do I access a given grob-property value, and then > override it -- temporarily?
It would have helped if I had written the correct command to use. It is, of course, \applyContext. The documentation does not help much, but one illustrative read/modify/write use is in scm/music-functions.scm in add-grace-property and remove-grace-property. > https://codereview.appspot.com/103890046/ -- David Kastrup _______________________________________________ lilypond-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-devel
