Re: Is there a better way of assigning an instrument name to Voice?

2017-04-04 Thread Mike Dean
>From caagr98:
<<
  \new Staff = "mel" \with { instrumentName = "Melody" } \melody
  \new PianoStaff \with { instrumentName = "Piano" } <<
\new Staff = "upper" \upper
\new Staff = "lower" \lower
  >>
>>
Cobbling items from Item 1.6 in the Notation manual [0.02458] and Piano
template (simple) [0.11905]

Mike Dean

On Tue, Apr 4, 2017 at 1:46 PM, Mike Dean  wrote:

> Somewhere in the LSR is a snippet to shrink the size of the melody line
>
> Mike Dean
>
> On Tue, Apr 4, 2017 at 1:39 PM, Mike Dean  wrote:
>
>> After trial by errors and caagr98's (thanks much!!!) help:
>>
>> <<
>> \new Staff = "mel" { \melody }
>> <<  \set Staff.instrumentName = "Melody" >>
>>  \new PianoStaff <<
>> \set PianoStaff.instrumentName = #"Piano  "
>> \new Staff = "upper" \upper
>> \new Staff = "lower" \lower
>>   >>
>> >>
>>
>> (
>>
>> Mike Dean
>>
>> On Tue, Apr 4, 2017 at 12:56 PM, Mike Dean  wrote:
>>
>>> < < \new Voice = "mel" { \melody }
>>>* \set Voice.instrumentName = #"Melody"*
>>>  \new 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


Re: Is there a better way of assigning an instrument name to Voice?

2017-04-04 Thread caagr98

<<
  \new Staff = "mel" \with { instrumentName = "Melody" } \melody
  \new PianoStaff \with { instrumentName = "Piano" } <<
\new Staff = "upper" \upper
\new Staff = "lower" \lower
  >>
>>

That *should* work.

You forgot to reply-list again.

On 04/04/17 19:47, Mike Dean wrote:

Still had struggles getting the output correct with "\with"

Mike Dean

On Tue, Apr 4, 2017 at 1:41 PM, > wrote:

Still not using \with?

On 04/04/17 19:39, Mike Dean wrote:

After trial by errors and caagr98's (thanks much!!!) help:

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



(

Mike Dean

On Tue, Apr 4, 2017 at 12:56 PM, Mike Dean 
>> wrote:

< < \new Voice = "mel" { \melody }
   *\set Voice.instrumentName = #"Melody"*
 \new 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



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





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


Re: Is there a better way of assigning an instrument name to Voice?

2017-04-04 Thread Mike Dean
Somewhere in the LSR is a snippet to shrink the size of the melody line

Mike Dean

On Tue, Apr 4, 2017 at 1:39 PM, Mike Dean  wrote:

> After trial by errors and caagr98's (thanks much!!!) help:
>
> <<
> \new Staff = "mel" { \melody }
> <<  \set Staff.instrumentName = "Melody" >>
>  \new PianoStaff <<
> \set PianoStaff.instrumentName = #"Piano  "
> \new Staff = "upper" \upper
> \new Staff = "lower" \lower
>   >>
> >>
>
> (
>
> Mike Dean
>
> On Tue, Apr 4, 2017 at 12:56 PM, Mike Dean  wrote:
>
>> < < \new Voice = "mel" { \melody }
>>* \set Voice.instrumentName = #"Melody"*
>>  \new 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


Re: Is there a better way of assigning an instrument name to Voice?

2017-04-04 Thread caagr98

Still not using \with?

On 04/04/17 19:39, Mike Dean wrote:

After trial by errors and caagr98's (thanks much!!!) help:

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




(

Mike Dean

On Tue, Apr 4, 2017 at 12:56 PM, Mike Dean > wrote:

< < \new Voice = "mel" { \melody }
   *\set Voice.instrumentName = #"Melody"*
 \new 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



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


Re: Is there a better way of assigning an instrument name to Voice?

2017-04-04 Thread Mike Dean
After trial by errors and caagr98's (thanks much!!!) help:

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

(

Mike Dean

On Tue, Apr 4, 2017 at 12:56 PM, Mike Dean  wrote:

> < < \new Voice = "mel" { \melody }
>* \set Voice.instrumentName = #"Melody"*
>  \new 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


Re: Is there a better way of assigning an instrument name to Voice?

2017-04-04 Thread caagr98
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 > wrote:


On Tue, Apr 4, 2017 at 1:00 PM, > 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


Re: Is there a better way of assigning an instrument name to Voice?

2017-04-04 Thread caagr98

You can use a \with block:

\new Voice = "mel" \with { instrumentName = "Melody" } { \melody }

On 04/04/17 18:56, Mike Dean wrote:

< < \new Voice = "mel" { \melody }
   *\set Voice.instrumentName = #"Melody"*
 \new 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



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


Is there a better way of assigning an instrument name to Voice?

2017-04-04 Thread Mike Dean
< < \new Voice = "mel" { \melody }
   * \set Voice.instrumentName = #"Melody"*
 \new 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