[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
duration-problem while using make-sequential-music
From: |
Thomas Morley |
Subject: |
duration-problem while using make-sequential-music |
Date: |
Mon, 6 Aug 2012 02:23:26 +0200 |
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
- duration-problem while using make-sequential-music,
Thomas Morley <=