lilypond-user
[Top][All Lists]
Advanced

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

Re: : Re: transpose range


From: David Kastrup
Subject: Re: : Re: transpose range
Date: Mon, 26 Jun 2017 14:42:45 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

"Peter Gentry" <address@hidden> writes:

> 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”

Uh, that's pretty bad since it sees eis as equal to fes.  Anything wrong
with just using (ly:pitch-tones p) instead?

-- 
David Kastrup



reply via email to

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