lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

filter the nth note


From: Stefan Thomas
Subject: filter the nth note
Date: Sun, 19 Jun 2022 10:58:52 +0200

Dear community,
I would like to do something like the following, but automatically, without typing all the music again:
allNotes= { c'8 g' e' g' d' g' f' g' c' g' e' g'   }
someNotes = { c' d' c' }
In other words: I would like to filter out every 4th note of allNotes, so that I could do in combination with changePitch (see https://github.com/gilles-th/arranger.ly/blob/master/changePitch.ly) the following:
patI = { c8 r r4 }
someNotes =  { \cPI { \someNotes s } }
Thanks for Your help,
Stefan

reply via email to

[Prev in Thread] Current Thread [Next in Thread]