[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
music function not duplicating manual "equivalent"
From: |
Kieren MacMillan |
Subject: |
music function not duplicating manual "equivalent" |
Date: |
Fri, 4 Jun 2010 12:13:55 -0400 |
Hey all!
Can anyone explain what's going wrong here? [The scores are intended/expected
to have identical output, i.e., the first version.]
Is it the q "function" that's messing me up, or my \split function?
Thanks,
Kieren.
_________________
\version "2.13.22"
\include "english.ly"
qTheMusic = \relative c' {
<< { \voiceOne <bf' d ef! a>2 ~ q8 d, a' bf } \context Voice = "2" {
\voiceTwo <d, ef g>2 ~ q8 d4. } >> \oneVoice
}
\score { \new Staff \qTheMusic }
split =
#(define-music-function
(parser location upper lower)
(ly:music? ly:music?)
#{
<< { \voiceOne $upper }
\context Voice = "2" { \voiceTwo $lower }
>> \oneVoice
#})
qTheMusicAgain = \relative c' {
\split { <bf' d ef! a>2 ~ q8 d, a' bf } { <d, ef g>2 ~ q8 d4. }
}
\score { \new Staff \qTheMusicAgain }
- music function not duplicating manual "equivalent",
Kieren MacMillan <=