I'm a greenhorn, trying out Lilypond, first by writing small piano pieces, now 
attempting a woodwind quartet. Starting from the string q. template, making a 
few small adjustments, I get a working, compiling ly file, with piano voices 
then, of course, as they are the midi instrument default. Naturally I did 
attempt to put in the real instruments then , by including lines like

\set Staff.midiInstrument = #"clarinet"

in the score section of the ly file (see attached file). When I limit myself to 
including such a line for only one instrument things work out well, leaving the 
three other ones as a piano accompaniment as it were. However, if I try to 
include several or all of the four instruments, only one of them seems to work, 
the default piano sounding the other three. - What am I missing?

It seems to me there is some information from earlier compilation events sits 
as a residual when I attempt new compilation, after fiddling with the ly code, 
and of course it shouldn't.

Well, bug or feature? Or is this particular coder particularly stupid?

Regards, Torbjorn


BEGIN:VCARD
VERSION:2.1
N:Högvall;T
FN:T Högvall
TEL;HOME;VOICE:0640-720 70
ADR;HOME:;;Rönnöfors 4289;Offerdal;;830 51
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:R=F6nn=F6fors 4289=0D=0AOfferdal 830 51
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20080913T084317Z
END:VCARD
\header
  { title = "Lilypond test"
    subtitle = "TH woodwind q 01"
    composer = "T Hogvall"
    copyright = "Copyright Torbjorn Hogvall 2008"
  } 

\version "2.10.33"

global= { \time 4/4 }

flute = \new Voice
  { \relative c''
    { \set Staff.instrumentName = "Flute"
      %\set midiInstrument = #"flute"
      c2 g e1
      \bar "|."
    }
  }
clarinet = \new Voice 
  { \relative c''
    { \set Staff.instrumentName = "Clarinet"
      %\set midiInstrument = #"clarinet"
      g8 a b c
      b4 e4 c1
      \bar "|." 
    }
  }
oboe = \new Voice 
  { \relative c' 
    { \set Staff.instrumentName = "Oboe"
      %\set midiInstrument = #"oboe"
      %\clef alto
      e2 d c1
      \bar "|." 
    }
  }
bassoon = \new Voice 
  { \relative c
    { \set Staff.instrumentName = "Bassoon "
      %\set midiInstrument = #"bassoon"
      \clef bass
      c2 b a1
      \bar "|."}}
      "|."
    }
  }

\score 
  { \new StaffGroup 
    << \new Staff << \global \flute >>
       %\set Staff.midiInstrument = #"flute"
       \new Staff << \global \clarinet >>
       \set Staff.midiInstrument = #"clarinet"
       \new Staff << \global \oboe >>
       %\set Staff.midiInstrument = #"oboe"
       \new Staff << \global \bassoon >>
       %\set Staff.midiInstrument = "bassoon"
    >>
    \layout { }
    \midi { }
  }
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to