[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dynamic and midi velocity
From: |
Philippe Hezaine |
Subject: |
Re: dynamic and midi velocity |
Date: |
Thu, 18 Feb 2010 10:27:03 +0100 |
User-agent: |
Thunderbird 2.0.0.23 (X11/20100124) |
Philippe Hezaine a écrit :
miquel parera a écrit :
Hello.
I want translate the dynamics of one note (\pppp, \ff etc) to midi
velocity values (0-127) I'ts possible?
Thanks.
Look at midi.scm in /usr/share/Lilypond
HTH.
...or put this in a .ly file and call it with an \include (Thanks to
Nicolas Sceaux):
#(define my-dynamic-absolute-volume
(let ((absolute-volume-alist '(("sf" . 1.00)
("fffff" . 0.95)
("ffff" . 0.91)
("fff" . 0.83)
("ff" . 0.75)
("f" . 0.67)
("mf" . 0.60)
("mp" . 0.53)
("p" . 0.46)
("pp" . 0.39)
("ppp" . 0.32)
("pppp" . 0.25)
("ppppp" . 0.12))))
(lambda (s)
(let ((entry (assoc s absolute-volume-alist)))
(if entry
(cdr entry))))))
You have to add a \context in midi block in your .ly file like this:
\midi {
\context {
\Score
dynamicAbsoluteVolumeFunction = #my-dynamic-absolute-volume
}
}
Notice the values are scm values.
Have fun.
--
Phil.
- dynamic and midi velocity, miquel parera, 2010/02/17
- Re: dynamic and midi velocity, Tim Reeves, 2010/02/18
- Re: dynamic and midi velocity, Bertalan Fodor (LilyPondTool), 2010/02/18
- Re: dynamic and midi velocity, Francisco Vila, 2010/02/18
- Re: dynamic and midi velocity, Brett McCoy, 2010/02/18
- Re: dynamic and midi velocity, Peter Chubb, 2010/02/18
- Re: dynamic and midi velocity, Brett McCoy, 2010/02/18
- Re: dynamic and midi velocity, Philippe Hezaine, 2010/02/19
- Re: dynamic and midi velocity, peter, 2010/02/19
- Re: dynamic and midi velocity, Bertalan Fodor, 2010/02/18
- Re: dynamic and midi velocity, David Santamauro, 2010/02/19