Lukas-Fabian Moser <[email protected]> writes: > Hi Kevin, > >> But right now, >> there's nothing other than constructing it by hand each time, for >> every chord. I think something would be better than nothing. > The problem has two parts: 1) Generate a sensible voicing for a given > chord; 2) create the arpeggio. (Maybe you intended to do 1) manually > anyway?) > > Here is a possible approach for 2) using LilyPond's (not ideal) > automatic voicings for 1): > > \version "2.24.0" > > arpeggiateChord = # > (define-music-function (chord) (ly:music?)
Just a warning: inventing unconventional formattings like this (putting # on a different line as the opening paren) carries the danger of keeping convert-ly (and syntax highlighters and syntax-sensitive editors) from recognizing the construct. -- David Kastrup
