lilypond-user
[Top][All Lists]
Advanced

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

Re: improving Janek's \dynamic function (for combo dynamics)


From: Thomas Morley
Subject: Re: improving Janek's \dynamic function (for combo dynamics)
Date: Sun, 27 Aug 2017 10:52:20 +0200

2017-08-27 10:40 GMT+02:00 Thomas Morley <address@hidden>:

> #(define (split-string strg char-pair)
> ;; split a string at all occurrences of both characters in char-pair
> ;; remark: with guilev2 string-split accepts a char-set as second argument
>   (append-map
>     (lambda (s) (string-split s #\}))
>     (string-split strg #\{)))

Ofcourse this should be:
#(define (split-string strg char-pair)
;; split a string at all occurrences of both characters in char-pair
;; remark: with guilev2 string-split accepts a char-set as second argument
  (append-map
    (lambda (s) (string-split s (car char-pair)))
    (string-split strg (cdr char-pair))))



reply via email to

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