X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fmidi.scm;h=4888ee3a81ed49712e32d293f046b892d7bc5079;hb=8b77ad1750c202c78f4ea81844f7c93ef40aa400;hp=7f26bea0dcbc013ccb67c87bea63f5f136067151;hpb=1528c75809ebc59d93018dbf59559436f75f082b;p=lilypond.git diff --git a/scm/midi.scm b/scm/midi.scm index 7f26bea0dc..4888ee3a81 100644 --- a/scm/midi.scm +++ b/scm/midi.scm @@ -1,6 +1,6 @@ ;;;; This file is part of LilyPond, the GNU music typesetter. ;;;; -;;;; Copyright (C) 2000--2011 Jan Nieuwenhuizen +;;;; Copyright (C) 2000--2012 Jan Nieuwenhuizen ;;;; ;;;; LilyPond is free software: you can redistribute it and/or modify ;;;; it under the terms of the GNU General Public License as published by @@ -284,8 +284,7 @@ (define-public (alterations-in-key pitch-list) "Count number of sharps minus number of flats." - (* (apply + (map cdr pitch-list)) 2)) - + (apply + (map (lambda (p) (round (* (cdr p) 2))) pitch-list)) ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;