Thank you for your valuable suggestions!
I took the music function by Pierre-Luc and modified as follows:
artificialHarmonicMod = #(define-music-function
(stopped touched result duration)
(ly:music? ly:music? ly:pitch? ly:duration?)
#{
<<
{
\voiceOne \stemDown
<$stopped $touched \harmonic>$duration
}
\new Voice
{ \voiceTwo \once \omit Stem \once \omit Flag \parenthesize $result 32 ^\flageolet }
>> \oneVoice \stemNeutral
#})
\new Staff {
\relative c' {
\artificialHarmonicMod cis_~ fis cis'' 4
\artificialHarmonicMod cis,, gis' gis'' 4
}
}
In this way it is possible to put ties between common notes, for example.
Is there a way to insert an optional argument in the music function? I would have the possibility to express a post-event, like tremolo or glissando.
Thank you
Rip_Mus