After some digging, in note-performer.cc I found

velocity += from_scm (get_property (ev, "midi-extra-velocity"), 0);

After tracking this string throughout the source code, I finally found where 
the property is set: ly/script-init.ly

accent = #(make-articulation 'accent
           'midi-extra-velocity 20)

marcato = #(make-articulation 'marcato
            'midi-extra-velocity 40)

etc…

I tracked its inclusion through ly/declarations-init.ly and then ultimately to 
ly/init.ly. I have no idea where init.ly gets loaded so that’s about as far as 
I can take this. If someone could shed some light on this, I would be grateful.

thanks


> On Apr 16, 2022, at 12:11 PM, David Santamauro <[email protected]> 
> wrote:
> 
> Hi, it seems removing the Dynamic_performer doesn’t actually remove 
> performance of articulations. E.g.,
> 
> \version "2.22.2"
> 
> \include "english.ly <http://english.ly/>"
> 
> hits = \relative c { c''4\mp c-^ c-> c }
> 
> \score {
> 
>   \hits
> 
>   \layout {}
>   \midi   {
>     \context {
>       \Voice \remove "Dynamic_performer"
>     }
>   }
> }
> 
> The score (attachment)
> <Screen Shot 2022-04-16 at 12.04.55 PM.png>
> 
> The midi events (attachment)
> <Screen Shot 2022-04-16 at 12.06.13 PM.png>
> 
> How can I get the MIDI to contain only the midi events as pitches and 
> durations, i.e., absolutely no interpretation of dynamics or articulations?
> 
> thanks
> 

Reply via email to