X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fharp-pedals.scm;h=9365f0a034f42294cc47dfe290c738a77fb0841f;hb=e2e1656c9d0897fb45a215bdcb96b146100c33e2;hp=a6c93774d3a8a581af2666d5f67bf828ec4db495;hpb=5b30a1793b07afeeed877ce97471e6a4a0d69169;p=lilypond.git diff --git a/scm/harp-pedals.scm b/scm/harp-pedals.scm index a6c93774d3..9365f0a034 100644 --- a/scm/harp-pedals.scm +++ b/scm/harp-pedals.scm @@ -132,6 +132,7 @@ spacing after the divider). stencils))) ;; Parse the harp pedal definition string into list of directions (-1/0/1), #\o and #\| +;; Whitespace is removed from definition string before the procedure applies. (define (harp-pedals-parse-string definition-string) "Parse a harp pedals diagram string and return a list containing 1, 0, -1, #\\o or #\\|" (map (lambda (c) @@ -141,7 +142,7 @@ spacing after the divider). ((#\-) 0) ((#\| #\o) c) (else c))) - (string->list definition-string))) + (string->list (remove-whitespace definition-string)))) ;; Analyze the pedal-list: Return (pedalcount . (divider positions))