]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/midi.scm
*** empty log message ***
[lilypond.git] / scm / midi.scm
index 0f85275124583d08a11f37ec725eb334b0c378a8..be4b3dc720807a9541bea7cb82e06a18bd6f01f5 100644 (file)
@@ -2,11 +2,17 @@
 ;;;
 ;;;  source file of the GNU LilyPond music typesetter
 ;;; 
-;;; (c) 2000--2001 Jan Nieuwenhuizen <janneke@gnu.org>
+;;; (c)  2000--2003 Jan Nieuwenhuizen <janneke@gnu.org>
 
 
+
+;;;;;;;;;;;;;;;;;;
+;;; TODO:
+
+;; this is broken: we should not ever export variables from Scheme.
+
 ;; define factor of total volume per dynamic marking
-(define absolute-volume-alist '())
+(define-public absolute-volume-alist '())
 (set! absolute-volume-alist
       (append 
       '(
        (cdr entry))))
 
 ;; define factors of total volume of minimum and maximum volume
-(define instrument-equalizer-alist '())
+(define-public instrument-equalizer-alist '())
 (set! instrument-equalizer-alist
       (append 
        '(
-        ("flute" . (0 . 0.7))
+        ("flute" . (0 . 0.07))
         ("oboe" . (0 . 0.7))
         ("clarinet" . (0 . 0.7))
         ("bassoon" . (0 . 0.6))
@@ -280,15 +286,3 @@ returns the program of the instrument
 (define-public (accidentals-in-key pitch-list)
   "Count number of sharps minus number of flats"
   (apply + (map cdr pitch-list)))
-
-(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)))))