Guides
Importing community charts
Play community charts (song.ini with notes.chart or notes.mid, and .sng files) from a songs folder on your PC.
On this page
Riffover can play charts from the community chart format: a folder per song with a song.ini and a notes.chart or notes.mid, or a single .sng file that packs the same files. Point Riffover at the folder that holds them (Settings → Songs folder) and every chart in it shows up on the setlist. Play the same song in your music app and the chart plays along, like a learned song.
Only the charts are read. The audio stems, album art and videos in those folders are never opened, copied or uploaded: the music comes from your music app.
Code: game/src/Charts/Import/ (engine-free, unit tested in game/tests/Riffover.Tests/Import/), game/src/Main.Import.cs (settings entry and background scan), SongLibrary (setlist and matching).
Using it#
- Settings → Songs folder → Choose… and pick the folder. Subfolders are searched too, so a folder of packs works.
- The scan runs in the background. When it's done, a toast says how many charts were found and how many were skipped (the reason for each skipped song is in the log,
[import] skipped …). - On the setlist, pick an imported song and play it in your music app, as with a learned song.
On the Songs folder row, Enter rescans and ◀ ▶ switch to adding another folder or removing them all. Riffover also rescans at startup. A rescan only converts songs whose song.ini, notes.chart, notes.mid or .sng changed (by size and modified time), so it's quick when nothing did. Removing the folders takes imported charts off the setlist; your files and your scores are left alone. To drop one song, delete it from the songs folder and rescan (Forget on the setlist explains this instead of deleting, since the next scan would bring it back).
What's read#
song.ini#
The [song] section (any case). Keys are case-insensitive; key = value with or without spaces. UTF-8 with or without a BOM, UTF-16 (with a BOM, or detected from the zero bytes) and Latin-1 are all read. Comments (;, #), junk lines and other sections are skipped. Rich-text tags like <color=#FF0000> are stripped from names.
| Key | Used for |
|---|---|
name, artist, album |
Title, artist and album; matched against your music app's now playing |
charter (or frets when there's no charter) |
Shown as "Charted by …" |
song_length (ms) |
The song's length, for matching (see below) |
delay (ms) |
Shifts every note and beat; higher = later notes. Overrides the .chart Offset |
preview_start_time, diff_guitar, diff_drums … |
Read, not used yet |
everything else (pro_drums, icon, loading_phrase …) |
Ignored |
Without a song.ini, the .chart's [Song] section (Name, Artist, Album, Charter, Length) is used, then the folder name (Artist - Title).
notes.chart#
[Song]:Resolution(ticks per beat, 192 if missing),Offset(seconds; applied whensong.inihas nodelay).[SyncTrack]:Btempo changes (thousandths of a BPM).TStime signatures andAanchors are read past: the beat grid has a beat everyResolutionticks, and Riffover draws a bar line every 4 beats whatever the time signature.[ExpertSingle],[HardSingle],[MediumSingle],[EasySingle]: lead guitar,N lane tick length.DoubleGuitar(co-op) is used when there's no lead part.[ExpertDrums]…: drums.Sphrases (star power, face-off) andEevents (sections, solos) are ignored.
Ticks become seconds through the tempo map exactly as for notes.mid (both go through MidiChart.Build), and sustains follow the same rule: a note held a third of a beat or less is a plain note. A .chart and the equivalent .mid give the same chart (there's a test for it).
notes.mid#
Community MIDI files keep each instrument in a named track. Guitar is read from PART GUITAR (or the older T1 GEMS) and drums from PART DRUMS; every other track (PART BASS, PART RHYTHM, PART KEYS, PART VOCALS, EVENTS, BEAT, VENUE …) is ignored, so their notes can't leak into guitar. A file with no PART tracks at all (older single-track packs, like the free catalog's) is read whole as guitar, as before. Notes 60-64 / 72-76 / 84-88 / 96-100 are Easy / Medium / Hard / Expert. If a folder has both files, notes.mid is used, and notes.chart is tried when the MIDI has no guitar or drum part.
.sng#
The open .sng container format (the "SngFileFormat" spec): a SNGPKG header, version, a 16-byte XOR mask, the song.ini keys as metadata, a file index, then the files, each byte masked with mask[i % 16] ^ (i & 0xFF) (i counted from the start of that file). Riffover reads the header and index, then unmasks only notes.mid or notes.chart; the audio inside is never read.
How notes map#
| Source | Riffover |
|---|---|
| Guitar frets 0-4 (green to orange) | Guitar lanes 0-4 |
Guitar open notes (.chart lane 7, .mid note below the difficulty's green) |
Dropped. Riffover has no open lane, and putting them on a fret would ask you to hold a fret the charter meant to be open. Songs that lean on opens will feel sparse in places. (Older .mid files that mark opens with a SysEx flag on a green note play them as green) |
| Forced HOPO / strum flags, tap notes | Ignored: Riffover decides HOPOs from note spacing, the same for every chart, and plays tap notes as ordinary notes |
| Star power phrases | Ignored. Riffover's Surge phrases are its own |
| Drums 0 kick, 1 red, 2 yellow, 3 blue, 4 green (4-lane) | Drum lanes 0-4, no lengths |
5-lane drums' green (.chart lane 5, .mid 101) |
Blue (lane 3) |
| Double kick (expert+), cymbal / accent / ghost markers, pro drums | Ignored |
| Bass, rhythm, keys, 6-fret, pro guitar, vocals | Not imported: Riffover has no such instrument yet |
A difficulty the chart doesn't have plays the nearest one it does, like any hand-made chart.
Matching the song in your music app#
An imported chart is keyed like any other (TrackKeys: normalized artist + title + length). Its length is song_length (else the .chart's Length); the last note is never used as the length, because songs run on past it.
- With a length, it matches your app's song within the usual 2 seconds, and failing that, within 10 seconds (
SongLibrary.ImportedToleranceSec).song_lengthis the length of the audio the charter used, which often has a little more or less silence than the version your app plays. Any chart within 2 seconds is preferred over a looser imported match. - Without one, it matches on artist and title alone (the length shows as 0:00 on the setlist).
Which chart plays when you have two#
Imported charts live in user://imported/, apart from learned and downloaded charts in user://charts/, so importing never overwrites a chart you learned. When both folders have a chart for the same song (same artist and title, lengths within 10 seconds), the setlist shows one (SongLibrary.Dedupe):
- A downloaded free song's chart wins over an imported one: it comes with its music.
- Against a learned chart, the newer one wins. Importing a chart for a song you learned before puts the hand-made chart in front. Learning the song again after that (F5 on the setlist) writes a new learned chart, which then wins; it's written to the learned chart's own file, never to the imported copy. Nothing is deleted, so removing the songs folder brings the learned chart back.
- Two imported copies of one song: the more recently imported one.
"Imported" means when that version of the source was first converted: an unchanged song keeps its date across rescans, and a changed one (the charter updated it) counts as new.
Sync#
Imported charts are timed to the audio the charter used. If your music app plays the same recording, notes line up the same as on a learned chart: delay and Offset are applied, and your audio offset and start delay in Settings apply as usual. If your app's version differs (a remaster with a longer intro, a radio edit, a different master), the chart will be early or late by that difference, and Riffover can't tell. There's no per-song offset yet.
Files#
user://imported/
index.json source path → fingerprint (sizes + modified times), chart file or the reason it was skipped, when it was imported
imported-<hash>.json a converted chart (chart format v2), named by a hash of its source pathA converted chart is a normal version 2 chart with provenance.origin: "authored", author from charter, source from the song's metadata and importedFrom set to the song folder or .sng. Imported charts aren't listed under DISCOVER's YOUR CHARTS: they're the community's, not yours to share. A songs folder that's missing at scan time (an unplugged drive) keeps its charts until it's back or removed from Settings. Bump ImportScanner.ConverterVersion when conversion changes, so every source converts again.