lilypond-user
[Top][All Lists]
Advanced

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

RE: : Re: transpose range


From: Peter Gentry
Subject: RE: : Re: transpose range
Date: Mon, 26 Jun 2017 12:35:59 +0100

You will need to modify the attach file (instrument_ranges.ly) since you are only interested in one instrument.

 

A numeric pitch can be constructed from three components of the lilypond pitch p

 

  1. The octave o obtained from  (ly:pitch-octave p)) 
  2. The note n obtained from (ly:pitch-notename p)) 
  3. The semitone  a  obtained from the alteration  (* 4 (ly:pitch-alteration p))  note alteration is in quarter tone steps

 

The numeric pitch (op) is calculated by (define op (+ (* 14 o) (* n 2) (/ a 2)))  “op is a unique number representing the pitch of the note”

 

The procedure contains the instrument ranges as numeric pitches derived as above.

 

See ;; clarinet range e to f#'  -1 2 0  to 2 3 0  (-10 to 35)

 

The current pitch is compared with the ranges and the octave increased/decreased as needed to bring the pitch into the range.

 

The note head and colour is modified to make all the changes visible on the score.

 

You can prune the procedure or add your instrument.

 

To call the procedure              

 

At top of the music file

 

  \include "./instrument_ranges.ly"  (assumes the file is in the includes folder specified in Frescobaldi properties)

 

In a score block

 

\score {

              {

                \naturalizeInstrumentRange "flute" {

                \include "Boufill_Op8No3_Cc_M2_L1.ly" } }  (or sequential music)

              }

            } % end of score block

 

I hope this helps.

 

From: Gianmaria Lari [mailto:address@hidden
Sent: 25 June 2017 16:25
To: Peter Gentry <address@hidden>
Cc: Lilypond <address@hidden>
Subject: Re: : Re: transpose range

 

Yes, I'm very much interested. I will use it with left hand bass note for standard bass accordion notation; for that we use only one octave range so jump are normal.

 

Have a look to the attached file in case you want understand better....

 

Thanks a lot, g.

 

 

 

On 25 June 2017 at 13:58, Peter Gentry <address@hidden> wrote:

Yes there is a way but it has disadvantages.

 

Often the result is awkward jumps. I indicate changed notes by note head style and colour so that it is easier to edit the results.

 

If you are still interested let me know and I will send you the scheme procedure and an example. I allow for different instruments having different ranges.

 

Attachment: instrument_ranges.ly
Description: Text Data


reply via email to

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