Automatically creating a drone part from a given melody
…create a "drone part" to go with a melody (for example, for a MIDI file of bagpipe … …drone pitch and a melody, and returns the melody as follows: (1) the pitch of each note … …a continuous drone sound, (3) rests in the melody are mirrored by rests in the drone part.
…also: scm/define-music-types.scm dronify = #(define-music-function (drone-pitch melody) (ly:pitch? ly:music?) (let ((artics '()) (prev-note-or-rest #{ #})) (music-map (… …R1 | c8 c c a c,2 } \score { << \melody \dronify g \melody >> \layout {} \midi {} }