David Kastrup <d...@gnu.org> writes: > shutterfreak <olivier.b...@gmail.com> writes: > >> shutterfreak wrote >>> On Sat, Nov 24, 2012 at 1:26 PM, Olivier Biot < >> >>> olivier.biot@ >> >>> >wrote: >>> >>> Dear all, >>> >>> Following up on my own request, I stumbled upon an insightful article >>> featuring Bach's prelude for piano (BWV 846): >>> http://news.lilynet.net/?The-LilyPond-Report-23#feature_story_prelude_1_in_scheme >>> >>> Based on this example I managed to create a first version, which however >>> only works with *absolute* pitches (see measure 1). >>> >>> How can I make it work with *relative* pitches (see measure 2)? > > Try something like (planning to commit this macro soonish) > #(defmacro-public make-relative (pitches last-pitch music) > >> So far I didn't find a way to make my arpeggio expansion work with >> notes in *relative pitch*. My bet is that I need to do some magic on >> "ly:pitch?" to get it to work, but I am clueless since I don't know >> what I should type as search keywords to get that information. Is >> there for example a relative-pitch-to-absolute-pitch checker routine >> that I could use? > > Sorry for taking so long. Designing a "user interface" and actually > coding this was not exactly trivial. Note that arpeggiate will work > fine _both_ when using \relative and when not using it.
Enthusiastically acclaimed (none of the reviewers pointed out anything he considered less than perfect), this macro has progressed into the LilyPond code base under the auspices of issue 3118 <URL:http://code.google.com/p/lilypond/issues/detail?id=3118> and will appear in version 2.17.11. -- David Kastrup _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user