Pandeiro notation I'd like to emulate

Is there a way to emulate either of these two single-line staves and any similar notation? I run into trouble with the shortened stems attached to the beams.

Enter a note on the other side of the line and then hide its notehead (as mentioned in my reply to your previous post about Pandeiro notation). When part of a group of beamed notes, a note of a different pitch will have a stem of a different length. When you hide the notehead, the stem will keep its original length.