I noticed that the Frescobaldi midi file produces the hidden notes. How to avoid this?
1 Answer
From the comments I could get the information that this question is about a glissando where the endnote is not printed. Another way not to print notes, apart from \hideNotes
, would be to use a silent note s
. However, this cannot be used here, since a glissando to an s
is not possible and the glissando would instead be printed to the next printed note.
You essentially want the MIDI to be different from what is printed. For this you can use the \tag
command and create two alternative ways to represent the glissando part, one for the printed matter and another for the MIDI output. You can then even fake the glissando with a row of very short notes.
theMusic =
{
c'4 c'
\tag #'glissando { \afterGrace c'2\glissando { \hideNotes c,8 \unHideNotes } }
\tag #'midigliss { c'32 b a g f e d c b, a, g, f, e, d, c,16 }
c'4 c'
}
\score{
\removeWithTag #'midigliss \theMusic
\layout{ }
}
\score{
\removeWithTag #'glissando \theMusic
\midi{ }
}
Printed output:
s
note. It would be easier to help you if you could provide an example.