Song file format

PocketSeq 1.0 · iPhone & iPad

PocketSeq imports songs from BeatLens analysis files: JSON with formatVersion 1. Any tool, or you, can write one to give PocketSeq a song with bars, chords, sections and tempo.

1Opening a file

Name the file .json (or .beatlens). Open it from the Files app, AirDrop or Mail and choose PocketSeq, or tap + › Import from BeatLens… in the library. PocketSeq shows what it found and the style it suggests before it creates the song. The file is read on your device.

2A complete example

Eight bars of 4/4 at 120 BPM, a verse and a chorus:

{
  "formatVersion": 1,
  "exportedBy": "My chord tool",
  "song": {"title": "Sunday Morning", "artist": "Me"},
  "bpm": 120,
  "meter": {"beatsPerBar": 4},
  "bars": [0, 2, 4, 6, 8, 10, 12, 14],
  "durationSeconds": 16,
  "key": {"tonic": "C", "mode": "major"},
  "chordSheet": {
    "sections": [
      {"label": "Verse", "bar": 0},
      {"label": "Chorus", "bar": 4}
    ],
    "chords": [
      {"symbol": "C", "bar": 0, "beat": 0},
      {"symbol": "Am7", "bar": 1, "beat": 0},
      {"symbol": "Fmaj7", "bar": 2, "beat": 0},
      {"symbol": "G7sus4", "bar": 3, "beat": 0},
      {"symbol": "G7", "bar": 3, "beat": 2},
      {"symbol": "F", "bar": 4, "beat": 0},
      {"symbol": "G", "bar": 5, "beat": 0},
      {"symbol": "Em7", "bar": 6, "beat": 0},
      {"symbol": "A7", "bar": 6, "beat": 2},
      {"symbol": "Dm7", "bar": 7, "beat": 0},
      {"symbol": "G/B", "bar": 7, "beat": 2}
    ]
  }
}

3Fields

Every field is optional; PocketSeq skips any field it cannot read and ignores fields it does not know, so files can carry more. Times are in seconds from the start of the song.

FieldTypeMeaning
formatVersionnumber1.
exportedBystringThe app that wrote the file. BeatLens writes "BeatLens".
song.title, song.artiststringThe song name (falls back to title).
bars[number]Time of the first beat of every bar. One entry = one bar in PocketSeq (up to 999). Tempo comes from the bar length.
beats[number]Time of every beat; used to work out beats per bar when meter is missing.
bpm, durationSecondsnumberWithout bars, PocketSeq splits the song into 4/4 bars from these two.
meter.beatsPerBarnumber4 → 4/4, 3 → 3/4, 6 → 6/8, 12 → 12/8, 2 → 2/2, 5 → 5/4. Others import as 4/4.
key.tonic, key.modestringFor example "A", "F#" or "B♭", and "major" or "minor".
keyChanges[{start, end, tonic, mode}]Used only when there are no chords: each key's tonic chord is placed where the key starts.
chordSheet.chords[{symbol, bar, beat}]bar is an index into bars (from 0), beat counts from 0 in the bar. Use start (seconds) instead when you have no bars.
chordSheet.sections[{label, bar}]Section headings. Two or more set the Pt row, see below.
chordSheet.transposenumberSemitones the chord sheet was transposed in BeatLens; the import screen offers to apply it.
sections[{start, end}]Song sections without names, used when the chord sheet has fewer than two headings.
instrumentActivity{vocal|drum|bass|other: [{t, v}]}Level 0–1 over time. Picks a lighter style, mutes drums or bass the song does not have, and tells Main A from Main B by energy.

A file needs either bars (two or more) or bpm with durationSeconds, and must look like a song analysis: exportedBy set to "BeatLens", or bars, beats or bpm present.

4Chord symbols

Write chords the usual way: C, Am, F#m7, B♭maj7, G7sus4, Bdim7, Am7(b5), C6/9, and slash chords such as G/B. Sharps and flats can be #/♯ or b/♭. PocketSeq has 26 chord types; a chord outside them, such as B♭maj13, is played as the nearest type and listed on the import screen. Power chords (A5) follow the key. A repeated chord is merged with the one before it.

5How sections become the Pt row

Headings are matched by name, in English or Vietnamese, ignoring case and accents:

  • Intro, prelude → INTRO
  • Verse, pre-chorus, bridge, interlude → MAIN A
  • Chorus, refrain, hook, solo → MAIN B
  • Outro, ending, coda → MAIN A, with ENDING on the last bars

A FILL is added in the bar before each new section. Other names are sorted into A or B by energy.