How to play

From song select to the results screen, then the settings worth knowing. Each step shows the screen you’ll see.

Recorded with beatcode record, playing Heroes Tonight (♩=128, 3:28) by Janji (feat. Johnning) through Spotify, with the bundled Rust charts. A small bot that reads the screen did the hitting, so the scores aren’t a person’s. Song: Janji - Heroes Tonight (feat. Johnning) [NCS Release]. Music provided by NoCopyrightSounds. Free Download/Stream: http://ncs.io/ht Watch: http://youtu.be/3nQNiWdeH2Q

01Pick a song and a chart

Run beatcode with no arguments. Songs are top left, charts bottom left, and the code of the selected chart is on the right. Press / on songs to find one: typing filters by title and artist, and the last row searches all of Spotify (or YouTube Music). Rest on a song for 0.4 seconds and a preview plays: its loudest 30 seconds with Spotify, from a third of the way in otherwise. A searches everywhere for the artist of the song under the cursor.

The bundled source has three songs in each of Rust, Python, Go, TypeScript, JavaScript, Ruby and PHP. Your local git repos and GitHub repos are other sources; switch with [ and ].

beatcode
Tab
Move between songs, charts and code
↑↓
Pick
/
Find a song (on songs)
A
Find more by this artist (on songs)
←→
Language
Space
Play the selected pair now
Enter
On charts, choose what the lower right shows, then play
Esc
Back, or quit from the song list
The song select screen: the songs are filtered by Heroes, leaving one, Heroes Tonight by Janji and Johnning (3:28), and a last row that searches all of Spotify. NORMAL and 4 lanes are highlighted, and the cover art of Heroes Tonight is on the right.
Songs filtered with / and Heroes. The right side shows the cover art of the song under the cursor. The chart is fizzbuzz.rs, the first bundled Rust chart.

02Check your keys

The ready screen lists which key plays which kind of token. Press a lane’s key and it lights up, so you can check your keys arrive.

Turn your Japanese input method off first. With it on, the keys never reach the game.

DFJK
The four lanes: keyword, identifier, operator and bracket, literal
↑↓
Scroll speed, x0.5 to x4.0
Space/Enter
Start a four-beat count-in
Esc
Back to song select
The ready screen: Heroes Tonight — Janji, Johnning and 0:00 / 3:28 at the top, the glowing beatcode logo over the lanes, the key legend D keyword, F identifier, J operators and brackets, K literals, and Space / Enter to start. The panel shows NOTES 0/519 and BPM 128.
The lanes are labelled KW, ID, OP and LIT across the top. The bundled Rust charts follow one another until the song ends ([1/3] at the top), so starting from the 15-line fizzbuzz.rs the song comes to 519 notes.

03Hit each token on the line

Tokens fall down their lanes. Press the lane’s key as each one reaches the judgment line. The code on the right lights up as you play it, and the combo counts up in the middle of the lanes.

PERFECT is within ±50 ms and scores 2, GREAT within ±110 ms scores 1, and anything later is a MISS. Esc pauses and asks whether to quit the song.

DFJK
Hit
Esc
Pause
Twelve seconds of play, with the song: turn the sound on with the speaker button. The code on the right lights up as each token is hit. The sound is what beatcode record recorded while the song played. Song: Janji - Heroes Tonight (feat. Johnning) [NCS Release]. Music provided by NoCopyrightSounds. Free Download/Stream: http://ncs.io/ht Watch: http://youtu.be/3nQNiWdeH2Q

04Read the results

The rank runs from AAA down to F, from your share of the maximum score. The graph shows the score over the song, the strip below it each judgment in time, and the box on the left the best five plays of the same song and chart.

After 30 notes or more, the bottom line shows your average timing. Press o to shift judgment by that much and keep it.

e rates how the play felt (◎ ○ △) and y says why (S off the song, C dull chart, M my playing). They are kept with the play and shown in the history.

r
Play it again
f
Favorite this combination
e
How it felt: ◎ → ○ → △ → none
y
Why: S → C → M → none
o
Shift judgment by your average timing
x
Share a result card on X
R
Open this chart’s ranking
q
Back to song select
The results screen for Heroes Tonight: rank AAA, score 1036 of 1038 (99.8%), PERFECT 518, MISS 1, combo 502 of 519, with the score graph and a strip of judgments on the right and the ranking at the lower left.
AAA at 99.8% — the bot missed one note. Each slice of the strip stacks its judgments by share, MISS at the bottom, then GREAT, then PERFECT, so the red rises where the misses pile up.

05Show it off on X

On the results screen, x draws a result card — a 1200×675 PNG with the rank, percentage, judgment counts, graph, difficulty, lanes and language — copies it to the clipboard and opens X’s post page with a draft. Paste the card with ⌘V, then post.

The draft has the rank and score, the chart’s gist URL, the beatcode URL, a ranking line (bc1:…; [share] rank = false in config.toml leaves it out) and #beatcode. A bundled, AI or Gist chart that isn’t published yet asks secret or public and goes to a gist first. The card is also kept in ~/.cache/beatcode/share/.

x
Make the card and open X (on the results screen)
⌘V
Paste the card into the post
A preview of the post from beatcode: Got AAA (99.8% 1036/1038) on "Heroes Tonight", the beatcode URL and #beatcode, with the result card attached showing the cover art, Heroes Tonight by Janji and Johnning, Spotify, NORMAL, 4 lanes, Rust, AAA, 99.8%, PERFECT 518, MISS 1, max combo 502 and the score graph.
The card is the one beatcode made for this play of Heroes Tonight through Spotify; the post around it is a preview, not a screenshot of X. This draft has no chart link, and no ranking server was set, so there’s no ranking line. Song: Janji - Heroes Tonight (feat. Johnning) [NCS Release]. Music provided by NoCopyrightSounds. Free Download/Stream: http://ncs.io/ht Watch: http://youtu.be/3nQNiWdeH2Q

06More lanes, harder charts

On song select, w switches between 4, 6 and 8 lanes, and d between NORMAL and HARD. More lanes split tokens into finer kinds.

HARD packs the same tokens into 16th notes. Two tokens written with no space between them in different lanes come down together, and string literals of 12 characters or more become hold notes.

With no song playing, --bpm N sets the tempo (100 by default).

beatcode src/main.rs --lanes 8 --hardbeatcode src/main.rs --bpm 140
SDFJKL
6 lanes: keyword, identifier and type, operator and punctuation, bracket, string, number and boolean
ASDFJKL;
8 lanes: keyword, identifier, type, operator, bracket, string, number and boolean, punctuation
w
Lanes 4 / 6 / 8
d
NORMAL / HARD
The ready screen on HARD with 8 lanes labelled KW, ID, TY, OP, brackets, STR, NUM and separators: A keyword, S identifier, D type, F operator, J bracket, K string, L numbers and booleans, ; separator. NOTES 0/1255.
HARD with 8 lanes: the same song now has 1255 notes instead of 519.
Playing on 8 lanes labelled KW, ID, TY, OP, brackets, STR, NUM and punctuation, with the lanes of the keys being pressed lit up.
Eight lanes. The lit columns are the keys being pressed.

07Play one again from history

Press p on song select to list finished plays, newest first. A ★ marks your best for that song and chart. Only plays on the current music provider (and silent ones) are listed.

Enter asks what the lower right shows while you play, then starts the same song, chart, difficulty and lanes again. Plays of a file given on the command line aren’t kept.

Each row shows the feel you gave it (◎ ○ △) and its reason (S C M); e and y change them here too. g publishes that play’s chart to a gist, and x makes its result card again for X.

p
Open the history (on song select)
Enter
Play the same song and chart
f
Favorite; Tab shows favorites only
/
Filter
e
How it felt: ◎ → ○ → △ → none
y
Why: S → C → M → none
g
Publish the chart to a gist
x
Share the result card on X
Esc
Back
The history screen with one row: just now, AAA 99.8%, N4, ★ □ ♫ Heroes Tonight, 519 notes, Rust fizzbuzz.rs, with its code on the right.
One play so far.
A dialog over the history: What should the lower right show while playing? Code is selected; the others are Cover art and Camera.
A song is playing, so Cover art can be picked too (with no song it’s dimmed).

08Connect music and more

beatcode setup asks in turn: where songs play, which AI writes charts, the combo voice, the display language, folders to skip when finding repos, and (with a ranking server set) the GitHub sign-in. Pick with ↑ ↓ and Enter, or skip one with Esc. beatcode setup music (or ai, voice, language, repos, rank) asks just that one.

Spotify needs Premium. YouTube Music works through the Pear Desktop app. Not now keeps playing Silent.

beatcode setup
↑↓
Pick
Enter
Choose
Esc
Skip this one
beatcode setup asking where songs play: Spotify (needs Premium, not connected yet), YouTube Music (drives the Pear Desktop app), or Not now.
The first question. Run beatcode setup music to ask just this one again.
More: AI charts, gists, config.toml and languages →