Hi,

trying to write a function to construct and mix/remix some music via
`make-sequential-music' I noticed the following boiled down problem.

The \xyz-function below should return a whole note for { b }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\version "2.14.2"
\version "2.15.43"

xyz =
#(define-music-function (parser location) ()
(make-sequential-music (list
        #{ a1 #}
                #{ b #})))

\new Voice { \xyz }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Instead a cryptic log-message is printed:

GNU LilyPond 2.15.43

/home/harm/lilypond-git/build/out/share/lilypond/current/scm/music-functions.scm:35:14:
In procedure ly:music-property in expression (ly:music-property mus
(quote types)):
/home/harm/lilypond-git/build/out/share/lilypond/current/scm/music-functions.scm:35:14:
Wrong type argument in position 1 (expecting Music): (#<procedure
embedded-lilypond (parser lily-string filename line closures)> parser
" a1 " "various-tests.ly" 95 (list))

(with "2.14.2" the { b } defaults to a quater.)

Intended is that the duration should change only if explicit forced.


What am I missing?


Regards,
  Harm

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to