Using make-music, you can add various stuff to notes. In this example tenuto lines are added to the notes, and tied notes are disregarded.
make-music