OpenAI

Verified interview challenge

Convert beat tracks into music notation

Turn a sequence of sounding and silent beats into a compact musical representation.

Unlock with Full Access

The challenge

Begin by rendering one instrument's beat track as duration tokens. Later parts extend the output to several instruments and introduce explicit rests. Preserve the timing and ordering of each track as the representation changes, using the specified token rules rather than a music library.

What you'll practise

  • Run encoding

    Convert consecutive beats into the required duration representation.

  • Representation changes

    Extend the renderer while keeping multiple tracks and silence correctly aligned.

Your coding workspacePreview
Current partFurther parts unlock as you progress
solution.pyPython 3.13
# Build on your implementation

# Run checks for the current part

# Full starter code included
Current-part checks

Run your code to see results.

The complete sequence, starter code and checks are included with Full Access.