Arcane Spell Files

Arcane Spell Files are an open-source file-format that details precise timing information of musical tracks, for usage in lighting & visual applications for live events, video rendering, pyrotechnics, etc...

It is the primary file format of Arcane Desktop, and allows for quick exchange and sharing of timing information, without the need to share full showfiles.

Timecode Toolbox Screenshot

Spell Data

Spells are designed to be used across many different applications, and contain enough data to easily identify which tracks they are applicable to. As such, they contain the following data:

Matchers

Matchers are information that applications can use to determine if a particular track is something a given spell represents, and are akin to metadata. Each spell can have multiple matchers, but it's most common for only 1 to be defined.

Each matcher contains:

  • A track length (in milliseconds)
  • An offset in milliseconds (usually 0)
  • (optionally) An array of known track titles.
  • (optionally) An array of known track artists.
  • (optionally) An array of known track albums.

The offset can be used in cases where the same track can appear in multiple compositions, or cuts, and is otherwise the same.

For example, you may have a sample of an original track, that starts at 20 seconds into the original track and lasts for 30 seconds. In this case, an additional matcher could have:

  • Length: 30_000ms
  • Offset: 20_000ms

This spell file could then be used for both the original track and the sample.

Beat Grids

Spells usually have 1 beat grid, but can have 0 or more than 1.

Each beat grid defines:

  • the timestamp of the first & last downbeats
  • the beats per bar
  • the total number of bars

This allows for flexibility for use with different time signatures.

For tracks with variable tempos, you can expect multiple beat grids, where the transition period has a number of sequential 1-bar beat grids.

In Arcane Desktop, beat grids are also used within the Spell Editor to make spell creation easier, offering features like aligning cues and envelopes to grids / sub-grids, and allowing for easily repeating sections over beats or bars, including variable ones.

Layers

Layers contain the actual important timing data that make spell files useful.

Each layer can be given a name, and is either:

  • A CUE layer - containing a collection of markers, where each marker has a timestamp, label and color.

  • An ENVELOPE layer - where:

    • The layer has a type, e.g. percussion, melody, bass, vocals or other.
    • Each item has a start & end time, and an envelope that tracks how the amplitude / intensity of that item changes over time; allowing elements like the attack, decay, sustain, and release to be accurately represented, and then used when connecting to real visual outputs.

The idea with this approach is that envelope data can then be used to accurately control fader values (or other visual elements), with much more precision that you typically get with simple markers.

There is no limitation to how many layers of each type a spell can have, it is entirely up to you. For example you could have 10 different percussion layers, and 2 vocal layers... or just a single percussion layer with some cue markers.

To illustrate this, below is an example of 5 layers of a spell that is playing in a loop. It consists of:

  • 1 cue layer: with a DROP and BREAKDOWN marker added.
  • 2 percussion layers - A bass and snare, where the envelopes start at 100% and decay to 0% over time.
  • 1 bass layer - where the envelope gradually increases, stays at 100% and then gradually decreases.
  • 1 other layer - representing "beep" noises, where the envelope is 100% for the entire duration of each event.
DROPBREAKDOWNMain SectionsDROP00:07.000
Bass Drums
Snare Drums
Bass
Beep

Conversion to Other Formats

It's possible to convert Spell files to other formats from Arcane Desktop, see Exporting Spells for more details.

Usage & Source Code

The Spell file format is open-source and licensed under MIT, meaning that you can use it in both personal and commercial projects.

Interested in how you can use Spell Files in your own applications? Take a look at the GitHub repository for usage instructions: github.com/ArcaneWizards/spells

Supported Applications