lilypond-devel
[Top][All Lists]
Advanced

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

lily-guile: Attempt to determine tonality of transposed scale


From: Han-Wen Nienhuys
Subject: lily-guile: Attempt to determine tonality of transposed scale
Date: Sun, 25 May 2003 19:49:18 +0200

address@hidden writes:
> I get an odd warning message when compiling files with a \midi{} section and
> a key signature:
> Interpreting music...warning: lily-guile: Attempt to determine tonality of 
> transposed scale
> 
> The dvi looks ok, and the midi sounds ok, so it isn't a big deal, but
> very little turned up when I tried searching for that string in the
> archives.  Has anybody else seen this warning?  Do I just have a wierd version
> of guile?
> 
> This is with a recent CVS compile.


this is coming from


        (define-public (major-key pitch-list)
          "Characterise the key as major if the alteration of the 
        third scale note is the same as that of the main note.
        Note: MIDI cannot handle other tonalities than major/minor.
        "
          ;; This charactersition is only true for a scale that starts at `c'.
          (if (not (equal? (car pitch-list) '(0 . 0)))
              (begin
                (ly:warn "Attempt to determine tonality of transposed scale")
                #t)
              (eq? (cdr (list-ref pitch-list 4)) (cdr (list-ref pitch-list 6))))
          )

This an algorithm which seems completely bogus to me. I think we
should scrap it. How about simply outputting everything as a major scale?


-- 

Han-Wen Nienhuys   |   address@hidden   |   http://www.xs4all.nl/~hanwen 




reply via email to

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