AFAIK midiInstrument goes in the Staff context, and you can use it like:

%% CODE BEGIN

\version "2.11.37"

Notes = \new Staff \relative {
  \set Staff.midiInstrument = "recorder"
  c4 d2 e4 |
  f1
}

%% For Visual output
\score {
  \Notes
}

%% For midi output
\score {
  \Notes
  \midi{}
}

%% CODE END
...
Notes =
2008/1/26, Thomas Spuhler <[EMAIL PROTECTED]>:
>
> Lilypond doesn't like my midi section:
>
>   \midi {
>         \context {
>                 \Score
>                 tempoWholesPerMinute = #(ly:make-moment 90 4)
>                 }
>                 \set Staff.midiInstrument =  "recorder"
>         }
>
>
> I get:
> score.ly:20:16: error: syntax error, unexpected \set
>
>                 \set Staff.midiInstrument =  "recorder"
>
> I actually took it from a sample and changed the instrument. recorder is
> in
> the list of the manual.
> When deleting the  \set Staff.midiInstrument =  "recorder" line, it
> compiles.
>
> --
> Thomas
>
>
> _______________________________________________
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>



-- 
Daniel Tonda C.
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to