【问题标题】:Cannot Find Voice找不到声音
【发布时间】:2018-02-28 23:34:07
【问题描述】:

我的代码可以编译,但有错误;它说:

warning: cannot find Voice `chorus'
chorusLyrics = \new Lyrics 
                           \lyricsto "chorus" {

所以我将整个代码最小化为:

\version "2.19.44"
\language "english"

\header {
    title = "debug"
}

signature = {
    \time 4/4  
    \key c \minor
    \autoBeamOff
}

chorus = \new Voice = "chorus" \relative c'' {
    \signature
    << { g f e f } \\ {e b e c } >> 
}

chorusLyrics = \new Lyrics \lyricsto "chorus" {
  This is de- bug
}

\score {
        <<
      \new Staff {  \chorus }
      \chorusLyrics
        >>
}

lilypond 版本是正确的。

输出不显示歌词;我花了几个小时试图弄清楚这一点。文档说您可以通过这种方式使用多种声音。我做错了什么?

以下是 Learning.pdf 文档的引述:

Here’s how we split the chords above into two voices and add both the
passing note and a slur: \key g \major % Voice "1" Voice "2" << { g4
fis8( g) a4 g } \\ { d4 d d d } >>

但是,如果我从大括号之间删除 \\,则所有内容都可以毫无问题地编译 - 完全没有错误。

【问题讨论】:

    标签: lilypond


    【解决方案1】:

    您的示例中有两个问题。 首先,您试图将歌词与 复音 段落相关联,据我所知,这是不可能的。 其次,结构不正确,请看下面编译好的例子。

    \version "2.19.44"
    \language "english"
    
    \header {
      title = "debug"
    }
    
    signature = {
      \time 4/4
      \key c \minor
      \autoBeamOff
    }
    
    upper = \relative c'' {
      \signature
      g4 f e f
    }
    
    lower = \relative c' {
      \signature
      e4 b e c
    }
    
    
    chorusLyrics = \lyricmode {
      This is de- bug
    }
    
    \score {
      <<
        \new Staff <<
        \new Voice = "chorus" { \voiceOne \upper }
        \new Voice { \voiceTwo \lower }
        >>
      \new Lyrics \lyricsto "chorus" { \chorusLyrics }
      >>
    }
    

    【讨论】:

    • 感谢模板;是的,我知道我可以用两种声音做到这一点;但我想让样本从文档中工作。如果我从卷曲之间删除 `\`,我的示例没有任何问题。
    猜你喜欢
    • 2012-09-22
    • 2013-05-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-10-06
    • 2013-02-09
    • 1970-01-01
    相关资源
    最近更新 更多