2

I noticed that the Frescobaldi midi file produces the hidden notes. How to avoid this?

5
  • 2
    You can wrap the hidden note in a tag, followed by a pause of equal length in another tag. The first tag is for printed output, the second for MIDI output. See: music.stackexchange.com/q/94781/54798. Another way would be not to use a hidden note but a silent s note. It would be easier to help you if you could provide an example. Commented Dec 17, 2021 at 19:55
  • 1
    It seems odd that you want "notes" that are both hidden and silent, what are you using them for? Commented Dec 17, 2021 at 22:09
  • @ Elements in Space: \afterGrace gf2\glissando { \hideNotes af8 \unHideNotes }
    – Mahanidhi
    Commented Dec 18, 2021 at 9:37
  • @ jasper : you mean to add an s instead of the note? I tried but it doesn't work.
    – Mahanidhi
    Commented Dec 18, 2021 at 9:51
  • 3
    I think you need to edit your question and add a minimal working example. Otherwise it's very hard to know how to help you. lilypond.org/tiny-examples.html
    – ksnortum
    Commented Dec 18, 2021 at 14:36

1 Answer 1

4

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:

enter image description here

Not the answer you're looking for? Browse other questions tagged or ask your own question.