A single staff can carry more than one voice. LilyPond’s \\ separator splits simultaneous lines, with stems pointing in opposite directions.

Match the target by writing two voices — a top melody and a bottom counterline — on the same staff.

LilyPond manual reference

Target

Your Result

Click Check to compile and compare