- (filter-list (lambda (x) (cdr x)) alist)))
-
-
-(define-public (new-chord-name-brew-molecule grob)
- (let*
- (
- (ws (ly:get-grob-property grob 'word-space))
- (markup (ly:get-grob-property grob 'text))
- (molecule (interpret-markup grob
- (cons '((word-space . 0.0))
- (Font_interface::get_property_alist_chain grob))
- markup))
- )
-
- ;;
- ;; chord names aren't in staffs, so WS is in global staff space.
- (if (number? ws)
- (ly:molecule-combine-at-edge
- molecule
- X RIGHT (ly:make-molecule "" (cons 0 ws) '(-1 . 1) )
- 0.0)
- molecule)
- ))
-
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
-(define-public (set-chord-name-style sym)
- "Return music expressions that set the chord naming style. For
-inline use in .ly file"
-
- (define (chord-name-style-setter function exceptions)
- (context-spec-music
- (make-sequential-music
- (list (make-property-set 'chordNameFunction function)
- (make-property-set 'chordNameExceptions exceptions)))
- "ChordNames"
- )
- )
-
- (ly:export
- (case sym
- ((ignatzek)
- (chord-name-style-setter ignatzek-chord-names
- '()))
- ((banter)
- (chord-name-style-setter double-plus-new-chord->markup-banter
- chord::exception-alist-banter))
-
- ((jazz)
- (chord-name-style-setter double-plus-new-chord->markup-jazz
- chord::exception-alist-jazz))
- )))
-
-;; can't put this in double-plus-new-chord-name.scm, because we can't
-;; ly:load that very easily.
-(define-public (set-double-plus-new-chord-name-style style options)
- "Return music expressions that set the chord naming style. For
-inline use in .ly file"
-
- (define (chord-name-style-setter function)
- (context-spec-music
- (make-sequential-music
- (list (make-property-set 'chordNameFunction function)
-
- ;; urg , misuse of chordNameExceptions function.
- (make-property-set 'chordNameExceptions options)))
- "ChordNames"))
-
- (ly:export
- (case style
- ((banter)
- (chord-name-style-setter double-plus-new-chord->markup-banter))
-
- ((jazz)
- (chord-name-style-setter double-plus-new-chord->markup-jazz)))))