Yeah, I don't think Voice supports instrumentName; my bad. I'd recommend replacing the \new Voice with a \new Staff. Aside from working properly with certain \with properties, I personally think it makes more sense. It's certainly more consistent with the piano staff, at least.

I would also recommend using \new for creating new contexts, and only use \context for referring to existing ones. You can use \with {instrumentName} on the PianoStaff as well, by the way.

Oh, and please reply to the list as well. In Thunderbird, it's [Reply List] instead of [Reply]; it's probably something similar in other clients.

On 04/04/17 19:27, Mike Dean wrote:
Stumbled across it:

<<
    \context Staff = "mel" { \melody }
    <<
      \set Staff.instrumentName = "Melody" >>
     \context PianoStaff <<
    \set PianoStaff.instrumentName = #"Piano  "
    \new Staff = "upper" \upper
    \new Staff = "lower" \lower
  >>



Mike Dean

On Tue, Apr 4, 2017 at 1:22 PM, Mike Dean <dean...@aquinas.edu
<mailto:dean...@aquinas.edu>> wrote:


    On Tue, Apr 4, 2017 at 1:00 PM, <caag...@gmail.com
    <mailto:caag...@gmail.com>> wrote:

        \with { instrumentName = "Melody" }


    Thanks..
    However, I did not succeed in getting the name to print:

    Inline image 1

    I was looking at the Staff headword snippet [0.02458] for an idea,
    but I am not understanding it correctly...Would I need to put things
    in a \context Staff command:

    <<
        \context Staff = "melody" <<
          \set Staff.instrumentName = "Melody" >>
         \context PianoStaff <<
        \set PianoStaff.instrumentName = #"Piano  "
        \new Staff = "upper" \upper
        \new Staff = "lower" \lower
      >>


    Mike Dean



_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to