Replacing default MIDI instrument equalization: Difference between revisions

No edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
The default MIDI instrument equalizer can be replaced by setting the <code>instrumentEqualizer</code> property in the <code>Score</code> context to a user-defined Scheme procedure that uses a MIDI instrument name as its argument along with a pair of fractions indicating the minimum and maximum volumes respectively to be applied to that specific instrument.
The default MIDI instrument equalizer can be replaced by setting the <code>instrumentEqualizer</code> property in the <code>Score</code> context to a user-defined Scheme procedure that uses a MIDI instrument name as its argument along with a pair of fractions indicating the minimum and maximum volumes, respectively, to be applied to that specific instrument.


The following example sets the minimum and maximum volumes for flute and clarinet respectively.&quot;
The following example sets the minimum and maximum volumes for flute and clarinet.


<lilypond version="2.24">
<lilypond version="2.24">
Line 8: Line 8:
#(set! my-instrument-equalizer-alist
#(set! my-instrument-equalizer-alist
   (append
   (append
     '(
     '(("flute" . (0.7 . 0.9))
      ("flute" . (0.7 . 0.9))
       ("clarinet" . (0.3 . 0.6)))
       ("clarinet" . (0.3 . 0.6)))
     my-instrument-equalizer-alist))
     my-instrument-equalizer-alist))
Line 46: Line 45:
</lilypond>
</lilypond>


[[Category:Midi]]
[[Category:Scheme]]
[[Category:Scheme]]
[[Category:Midi]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]][[Category:Snippet]]
[[Category:Snippet]]