lilypond-user
[Top][All Lists]
Advanced

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

Re: midi set instrument problem


From: Daniel Tonda
Subject: Re: midi set instrument problem
Date: Sat, 26 Jan 2008 17:03:52 -0600

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 <address@hidden>:
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
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user



--
Daniel Tonda C.
reply via email to

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