Lowest and highest pitch as chord: Difference between revisions
Created page with "This code returns the lowest and the highest pitch of a music expression as chord. The duration of the chord can be chosen arbitrarily. You can easily change the chord to a fixed duration. <lilypond version="2.26.0" > %% This snippets returns the lowest and the highest pitch %% of a music expression als chord %% the duration of the chord is passed as argument myambitus = #(define-music-function (mus dur)(ly:music? ly:duration?) (let* ( (alle-pitches..." |
mNo edit summary |
||
| Line 1: | Line 1: | ||
This code returns the lowest and the highest pitch of a music expression as chord. | This code returns the lowest and the highest pitch of a music expression as chord. | ||
The duration of the chord can be chosen arbitrarily. | The duration of the chord can be chosen arbitrarily as input parameter. | ||
You can easily change the chord to a fixed duration. | You can easily change the chord to a fixed duration. You can even chose different durations for the pitches in the chord. | ||
<lilypond version="2.26.0" > | <lilypond version="2.26.0" > | ||