Re: hide Stuff

2020-01-13 Thread Malte Meyn




Am 13.01.20 um 16:02 schrieb bb:

I need the Stuff only for midi output and want to hide it from the pdf.
Is it possible?

regards


Yes, you can use several \score blocks or the \tag command.



Re: hide Stuff

2020-01-14 Thread bb


Am 14.01.20 um 11:36 schrieb bb:
> Thanks for reply. Works only partially.
>
> 1st there stays a Staff artefact
>
> 2nd ther is no midi sound for the hidden notes
>
> I need the midi sound, but not the grafics.
>
> Is there a solution?
>
> \version "2.19.2"
>   metronome = \tag #'A  {\relative c''' {{c4 c c c}}}
> \score  {  <<
>   \new Voice = "first"{ c' d e f g }
>   %\new Staff {\metronome}
>   \new Staff {  \removeWithTag #'A \metronome}
>
>     >>
>   \layout { }
>   \midi { }
> }
>



Re: hide Stuff

2020-01-14 Thread Malte Meyn

Please keep all conversation on the list.

Am 14.01.20 um 11:36 schrieb bb:

Thanks for reply. Works only partially.

1st there stays a Staff artefact


This is because you tagged only the music inside the staff, not the 
staff itself.



2nd ther is no midi sound for the hidden notes

I need the midi sound, but not the grafics.

Is there a solution?


You’ll need two scores for both of the following solutions:

Either you don’t put \metronome into the \layout score.

\version "2.19.83"

metronome = { 4 4 4 4 }
music = \relative { c' d e f }

\score {
  \new Staff \music
  \layout { }
}

\score {
  <<
\new Staff \metronome
\new Staff \music
  >>
  \midi { }
}


Or you use the same score for both \score blocks and remove the 
metronome by using \tag.


\version "2.19.83"

metronome = { 4 4 4 4 }
music = \relative { c' d e f }
everything = <<
  \tag metronome \new Staff \metronome
  \new Staff \music
>>

\score {
  \everything
  \layout { }
}

\score {
  \removeWithTag metronome \everything
  \midi { }
}




Re: hide Stuff

2020-01-14 Thread bb
Thank you very much for the detailed examples. I think I can make it now.

regards