lilypond-devel
[Top][All Lists]
Advanced

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

Microtonal key signatures fix


From: Graham Breed
Subject: Microtonal key signatures fix
Date: Mon, 21 Feb 2011 15:02:33 +0400

There's a long standing problem with unequally tempered key
signatures.  If the accidentals aren't halves, the MIDI production
fails.  I've worked out a fix.  Here's the diff from my system:

*** scm/midi.scm        2011/02/20 20:32:26     1.1
--- scm/midi.scm        2011/02/20 20:33:01
***************
*** 277,283 ****
  (define-public (alterations-in-key pitch-list)
    "Count number of sharps minus number of flats"

!   (* (apply + (map cdr pitch-list)) 2))



--- 277,283 ----
  (define-public (alterations-in-key pitch-list)
    "Count number of sharps minus number of flats"

!   (round (* (apply + (map cdr pitch-list)) 2)))



Sometimes this puts the wrong key signature in MIDI, but that's not
something I care about at all.  Rietveld shows the relevant code
hasn't changed.  It has moved to line 284.  At the weekend I'll look
at how to submit a snippet to show where the problem comes from.


                              t'other Graham



reply via email to

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