Docs
How Nusic reads your tracks, matches keys and grades every mix.
Enter your tracks
- Write one track per line: title, BPM, key and, if you like, its length as m:ss — for example “Second Wind, 124, 9A, 6:30”.
- Separate fields with commas, tabs, “|” or “;”. Fields are read from the end of the line, so a comma inside a title is fine.
- BPM is a number from 40 to 220 (“124” or “124 bpm”). Keys can be Camelot codes (1A–12B) or note names: Am, A minor, F#m, Gbm, Bb, C major.
- Lines that start with # and empty lines are skipped. A line with a missing or unreadable field is listed under the box with the reason; the rest of the set still works.
- Up to 60 tracks per set. The total length shows when every track has one.
Keys and the Camelot wheel
- The Camelot wheel numbers the 24 keys 1–12, with A for minor and B for major. A minor is 8A, C major is 8B.
- Same key (8A → 8A): always compatible.
- Relative key (8A → 8B): same number, other letter — the relative major or minor.
- Next on the wheel (8A → 7A or 9A, and 12 → 1): one step up or down with the same letter.
- Anything else is a key clash. It can still work over a short or percussive mix, so Nusic only marks it.
How mixes are graded
- Tempo change = (next BPM − current BPM) ÷ current BPM. Nusic also tries half and double time and keeps the smallest change.
- Smooth: compatible key and a tempo change of 3 % or less.
- Workable: compatible key within 6 %, or a key clash within 3 %.
- Rough: everything else — plan a longer blend, an effect or a cut.
Suggested running order
- Your first line stays first, so put your opener there.
- Each mix gets a cost: 0 for the same key, 1 for relative or next on the wheel, 4 for a clash, plus half the tempo change in percent.
- Nusic chains the cheapest next track each time, then reverses stretches of the set while that lowers the total cost.
- It is a suggestion from numbers only — energy, genre and the room are up to you. Choose “Keep my order” to check your own order instead.
Account and workspace
- Choose Sign up, then enter your name, email and a password with at least 8 characters, one letter and one number.
- You land in your workspace at /app. The planner there keeps your last list in this browser (localStorage); clearing site data removes it.
- Use Log out in the top bar when you are done on a shared device. To delete your account, email [email protected].
Account API
- POST /api/auth/signup with JSON { name, email, password } → 201 and a session cookie; 409 if the email is taken, 400 on invalid input.
- POST /api/auth/login with JSON { email, password } → 200 and a session cookie; 401 on a wrong password, 429 after too many tries.
- GET /api/auth/me → 200 with the signed-in user, or 401 when signed out. POST /api/auth/logout ends the session.
- Requests that change data must come from the same origin (cookie session, no API keys). The set planner itself has no API — it runs in your browser.
Nusic works only from the BPM and key you type. It does not listen to, stream or store music, and its order is a suggestion — the room is yours to read.