[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Batch-apply tremolo markings? (Frescobaldi)
From: |
Malte Meyn |
Subject: |
Re: Batch-apply tremolo markings? (Frescobaldi) |
Date: |
Mon, 4 Jun 2018 20:44:40 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
Am 04.06.2018 um 19:46 schrieb Ben:
but I wonder if it's possible to write a simple function to basically
'turn on add :32 tremolo to notes until turned off' - that would keep
the code much cleaner, although I know it's somewhat limited in it's
usability. But, just brainstorming here.
How about the following code? Works only for single notes, not for
chords; but that could be changed.
\version "2.19.81"
addTremolos =
#(define-music-function (number music) (integer? ly:music?)
(music-map
(lambda (mus)
(if (eq? 'NoteEvent
(ly:music-property mus 'name))
(let ((art (ly:music-property mus 'articulations '())))
(ly:music-set-property!
mus
'articulations
(cons
(make-music
'TremoloEvent
'tremolo-type number)
art))))
mus)
music))
\addTremolos 16 {
b r a
}
- Batch-apply tremolo markings? (Frescobaldi), Ben, 2018/06/04
- Re: Batch-apply tremolo markings? (Frescobaldi), Lukas-Fabian Moser, 2018/06/04
- Re: Batch-apply tremolo markings? (Frescobaldi), Ben, 2018/06/04
- Re: Batch-apply tremolo markings? (Frescobaldi), Lukas-Fabian Moser, 2018/06/04
- Re: Batch-apply tremolo markings? (Frescobaldi), Ben, 2018/06/04
- Re: Batch-apply tremolo markings? (Frescobaldi), Ben, 2018/06/04
- Re: Batch-apply tremolo markings? (Frescobaldi),
Malte Meyn <=
- Re: Batch-apply tremolo markings? (Frescobaldi), Ben, 2018/06/04
- Re: Batch-apply tremolo markings? (Frescobaldi), Aaron Hill, 2018/06/04
- Re: Batch-apply tremolo markings? (Frescobaldi), Ben, 2018/06/04
- Re: Batch-apply tremolo markings? (Frescobaldi), Thomas Morley, 2018/06/04
- Re: Batch-apply tremolo markings? (Frescobaldi), Aaron Hill, 2018/06/04
- Re: Batch-apply tremolo markings? (Frescobaldi), Thomas Morley, 2018/06/04
- Re: Batch-apply tremolo markings? (Frescobaldi), David Kastrup, 2018/06/05
- Re: Batch-apply tremolo markings? (Frescobaldi), Karlin High, 2018/06/04