|
From: | Gilles THIBAULT |
Subject: | Re: improvement(s) on LSR 445 |
Date: | Sun, 3 Apr 2011 19:04:55 +0200 |
is it possible to only copy notes, i.e. pitches and durations, excluding Fingering, stroke fingers and string numbers?
2 solutions : 1- You filter the music. Here is an example of filtered music %%%%%%%%%%%%%%%%%%%%%%% deleteDynamics = #(define-music-function (parser location music) (ly:music?) (music-filter (lambda (evt) (not (memq (ly:music-property evt 'name) (list 'AbsoluteDynamicEvent 'CrescendoEvent 'DecrescendoEvent)))) music)) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% You just have to know the scheme name of the events you don't want. 2- In the "octavize.ly" line : 15 Replace (append notes transposed-notes not-notes) by (append notes transposed-notes) line 44-45 : Replace (append new-notes transposed-notes not-notes) by (append new-notes transposed-notes)The drawback of 2 is that things like slurs or accentuations etc will be deleted too. So, 1- is probably the better solution, and you can create an third function that will automate the octavation and the filter.
Gilles
[Prev in Thread] | Current Thread | [Next in Thread] |