lilypond-user
[Top][All Lists]
Advanced

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

Re: : Re: transpose range


From: Gianmaria Lari
Subject: Re: : Re: transpose range
Date: Fri, 30 Jun 2017 10:34:09 +0200

Dear Peter,

I only spent one hour on it and I have not been able to make it working as I need. It is not clear to me the value I have to set to set the instrument range  from c, to b,.

But I think that when I will have more time I should be able to modify your code for that.

* * *

By the way this is a part of your code:

      ((equal? instrument "basso" )
       (if  (< pt -26)  (begin (set! o (+ o 1))) )
       (if  (< pt -24)  (begin (set! o (+ o 1))) )
       (if  (< pt -18)  (begin (set! o (+ o 1))) )

       (if  ( > pt 52/2)  (begin (set! o (- o 1))) )
       (if  ( > pt 41/2)  (begin (set! o (- o 1))) )
       (if  ( > pt 29/2)  (begin (set! o (- o 1))) )
       )
 
I'm not sure to understand how does it work but I wonder if wouldn't be possible to check if the note is higher than the instrument upper bound and if yes just set the note octave to the upper allow octave? And the opposite in case the note is lower than the lower bound....

Thank you Peter for you help.
Gianmaria

reply via email to

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