lilypond-user
[Top][All Lists]
Advanced

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

Re: Removing all dynamics from MIDI


From: Thomas Morley
Subject: Re: Removing all dynamics from MIDI
Date: Mon, 18 Apr 2022 11:32:07 +0200

Am Mo., 18. Apr. 2022 um 10:48 Uhr schrieb David Santamauro
<david.santamauro@gmail.com>:
>
>
> On Apr 17, 2022, at 11:53 AM, Lukas-Fabian Moser <lfm@gmx.de> wrote:
>
> Hi David,
>
> 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)
>
> You can just repeat those definitions from script-init.ly without the 
> midi-extra-velocity setting:
>
>
>
> For now, I just copied the file, removed all MIDI interpretations attached to 
> articulations and “include” the new file.
>
> Also notice that your version indication (\version 2.22.2) does not match the 
> source you seem to haved used for reference: If I'm not mistaken, the change 
> I made in the definition of articulation symbols switching from
>
>
>
>
> I just cloned the source for this exercise, but yes, my installation is 2.22.
>
> Thanks
>
>
>

Does

mus = \relative c { c''4\mp c-^ c-> c }

\musicMap
  #(lambda (m)
    (if (music-is-of-type? m 'articulation-event)
        (ly:music-set-property! m 'midi-extra-velocity 0))
    m)
  \mus

do the trick for articulations?

Cheers,
  Harm



reply via email to

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