[Top][All Lists]

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

Re: "programming error: Couldn't find type"

From: Anders Kaseorg
Subject: Re: "programming error: Couldn't find type"
Date: Wed, 19 Apr 2006 16:43:15 -0400

On Wed, 2006-04-19 at 18:57 +0200, Mats Bengtsson wrote:
> What did you expect the example to do?

Nothing--but it came from reducing the following code, which worked in
2.6 and 2.7 (at least up to 2.7.40, I think) for writing a MIDI file
with one channel per voice instead of one channel per staff. I admit
that I don't entirely understand it.

\version "2.6.0"

\score {
  \new StaffGroup <<
    \new Staff <<
      \key c\major \time 4/4
      \new Voice { \voiceOne \set Voice.midiInstrument = "violin"
                   e''2 f''4 d'' e''1 }
      \new Voice { \voiceTwo \set Voice.midiInstrument = "violin"
                   g'2 a'4 g' g'1 }
    \new Staff <<
      \clef bass \key c\major \time 4/4
      \new Voice { \voiceOne \set Voice.midiInstrument = "viola"
                   c'2 c'4 b c'1 }
      \new Voice { \voiceTwo \set Voice.midiInstrument = "cello"
                   c2 f,4 g, c1 \bar "|." }
  \midi {
    \tempo 4=120
    \context {
      \type "Performer_group_performer"
      \name Staff
      \accepts Voice
    \context {
      \type "Staff_performer"
      \name Voice
      \consists "Key_performer"
      \consists "Tempo_performer"
      \consists "Time_signature_performer"
      \consists "Span_dynamic_performer"
      \consists "Dynamic_performer"
      \consists "Tie_performer"
      \consists "Piano_pedal_performer"
      \consists "Note_performer"
      \consists "Beam_performer"
      \consists "Slur_performer"
      \consists "Melisma_translator"
  \layout { }


reply via email to

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