The command
\set Staff.midiInstrument = "violin"
tries to set the property midiInstrument in a Staff context, but since you
don't have any Staff context but a ChordNames context, the command won't
do anything. Try
\new ChordNames{
...
\set ChordNames.midiInstrument = "violin"
...
}
instead.
/Mats
Manuel wrote:
Mats Bengtsson <mats.bengtsson <at> ee.kth.se> writes:
Could you please send a small example to the mailing list that
illustrates what you
tried to do.
/Mats
Sure. Here are the first four measures of a song I'm trying to tab. Notice
that the first 2 measures use a single note (a) as the chord. The midi file
plays it as violin.
In the 3rd and 4th measure, I'm using chords a and e and the midi file plays
these with the piano instrument instead of the violin.
---------------------------START----------------------------------------------
\header{
title = "I Want You"
composer = "Elvis Costello"
}
\version "2.7.39"
\parallelMusic #'(harmonyIntro melodyIntro textIntro) {
\transpose c c, { { a1 a }}|
\relative c'' { cis4. a8 d4. cis8 b8 a2 r4
a8 }|
\lyricmode { Oh my ba- by ba- by
I }|
\transpose c c, {\chordmode { a1
e }}|
\relative c'' { a8 b8 cis8 d8 b'4. cis8 b4. s4. s16
cis16( b16 a16) }|
\lyricmode { love you more than I can tell
I }|
}
\score {
{
<<
\new ChordNames {
\harmonyIntro
\set Staff.midiInstrument = "violin"
}
\new Staff <<
\new Voice = "melodyIntro" {
\set Staff.midiInstrument = "violin"
\melodyIntro
}
\new Lyrics \lyricsto "melodyIntro" \textIntro
>>
>>
}
\layout { }
\midi { \tempo 4=80 }
}
----------------------------------END----------------------------------------
-Manuel
_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond
--
=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond