Wish you all a very good day to start with.
I am working on an arrangement, what has a lot of broken chords in the bassline). Something like this:
Now I want to give this another rhythm: 3 quarters in stead of 6 eights.
First measure would then be: c4 bes f
I am wondering if there is a trick, tool, tip to make this a bit easier, Now I have to all manually. Best I can think of is to make something with regex find replace.
\version "2.24.2"
% Slurred pattern with 8th notes:
patI = #(define-music-function (p1 p2 p3) (ly:pitch? ly:pitch?
ly:pitch? )
#{ $p1 8 ( $p2 $p3 $p2 $p1 $p2 ) #} )
%% Uncomment next lines for pattern with quarter notes:
%patI = #(define-music-function (p1 p2 p3) (ly:pitch? ly:pitch?
ly:pitch? )
% #{ $p1 4 ( $p2 $p3 ) #} )
% The corresponding staccato version:
patII = #(define-music-function (p1 p2 p3) (ly:pitch? ly:pitch?
ly:pitch? )
#{ $p1 8-. $p2 -. $p3 -. $p2 -. $p1 -. $p2 -. #} )
%% Uncomment next lines for pattern with quarter notes:
%patII = #(define-music-function (p1 p2 p3) (ly:pitch? ly:pitch?
ly:pitch? )
% #{ $p1 4-. $p2 -. $p3 -. #} )
\fixed c {
\clef bass
\key f \major
\time 3/4
\patI c bes f' |
\patI c bes es' |
\patI c a f' |
\after 4 \dim \patI c a f' |
<> \> \patI c bes f' |
\patI c bes es' |
<>\p \patII c, as, es |
}
/Mats