A sound pack is eight pieces of your own, carried onto an FM-1 beside AISLING's eight (see Sound packs in the manual for putting one on). This page is how to make one: what a pack is made of, how to write it, how to hear it before it goes anywhere near an FM-1, and every setting a piece can have.
A pack is data, not code. It can only ask for what the firmware already has: its voices, its scales, its effects. You cannot break an FM-1 with a pack; the Packs page and the FM-1 each check it, and a pack that doesn't pass is refused before anything is written.
1 What you need
- The source. github.com/stephencummins/fm1-aisling: a clone, or its zip. The tools are in
tools/, the packs inpacks/. - Python 3 and a C compiler (on a Mac, the Xcode command line tools:
xcode-select --install). The pack builder compiles a small part of AISLING's engine to read its settings from, so a pack can only name what the engine has. - A text editor for the pack's file, which is JSON.
- Chrome or Edge, to hear the pack on the Packs page and put it on an FM-1.
To shape a piece's own sounds by ear there is also the plug-in (see Sounds of your own).
2 Start from a pack
The quickest way is to copy one that works and change it a piece at a time:
cp packs/saints-sinners.json packs/my-pack.json
python3 tools/make_pack.py packs/my-pack.json
The second line builds it: build/packs/my-pack.aispack is the pack itself, the file the Packs page takes, and it tells you how big it is (my-pack: 1382 bytes of 3840, level 2). Change a piece's name and a setting or two, build again, listen, and go on from there.
3 The pack
The file is one JSON object: the pack's own details, then its eight pieces.
{
"name": "My Pack",
"version": 1,
"needs": "1.6",
"sides": ["Light", "Dark"],
"about": "What the pack is, in a sentence or two, for the Packs page.",
"pieces": [ ... eight pieces ... ]
}
| Field | What it is |
|---|---|
name | The pack's name, as the FM-1 and the page show it: up to 19 plain characters (no accents). |
version | A number. Raise it when you change a pack that people already have. |
needs | The AISLING it needs, as the page shows it ("1.6"). Words only; the builder works out the real need (below). |
sides | The names the page gives the two screens, light and dark (Saints & Sinners has "Saint" and "Sinner"). |
about | A sentence or two for the Packs page. It isn't put on the FM-1. |
pieces | Exactly eight. |
The builder works out the pack's level: 2 if every piece uses AISLING's own voices (AISLING 1.5 or later plays it), 3 if any piece has a sound of its own (1.6 or later). An FM-1 with an older AISLING refuses the pack and the page says why.
4 A piece
{
"name": "Rain Window",
"icon": "M7 4v4M12 6v4M17 3v4M5 14h14M5 14v6h14v-6",
"side": "dark",
"about": "Rain on the glass, low pipes held in A minor, and a harp now and then.",
"recipe": {
"TEMPO": 66, "ROOT": "A", "MODE": "Minor",
"CHORD": 45, "CVOICE": "Pipes",
"SEQ": 55, "SVOICE": "Harp", "DENSITY": 18, "DECAY": 80,
"SEQ2": 0, "LEAD": 34, "LVOICE": "Voice", "LOCT": -1,
"NCHAR": "Rain", "CRACKLE": 20
}
}
| Field | What it is |
|---|---|
name | Up to 15 plain characters: the FM-1's screen shows it. |
icon | For the Packs page: an SVG path (its d) on a 24 by 24 grid, drawn as a line. Up to 400 characters. |
side | "light" (the light screen) or "dark". Saints & Sinners says "saint" and "sinner", which are the same. |
about | A line or two for the Packs page. Not put on the FM-1. |
recipe | The piece's settings (below). |
air | Optional: the Lead's first theme (below). |
patch | Optional: sounds of the piece's own (section 7). |
The recipe names only what the piece changes; everything else is as a new piece has it (the last column of Every setting). A key is the setting's name in the engine, in capitals (TEMPO, LVOICE); its value is a number, or the word the FM-1's screen shows for it ("Dorian", "Harp", "1/4."). Capitals don't matter in the words. A word or a number the setting doesn't have stops the build, and the builder says what it does have:
piece 6 (Rain Window): LVOICE has no value "Choir" (it has: Odyssey, Mini, Flute, Theremin, ...)
A key starting with _ is passed over, so "_note": "..." keeps a note to yourself anywhere in the file.
The air is the tune the Lead opens on and comes back to: up to 16 notes, each in semitones above the piece's root (-24 to 36), each with a length in sixteenths (1 to 255).
"air": { "notes": [3, 2, 3, 0], "lengths": [1, 1, 6, 8] }
A piece with no air has the Lead make up its own. A piece with the Lead at 0 never plays it.
5 Chords
A piece either lets AISLING walk its chords, or plays chords you write.
The walk is the default: AISLING moves from chord to chord in the piece's mode, every DRIFT (2 bars to 64, or Hold). PMODE (Play) sets how it moves, and whether the slots are walked or played in turn:
PMODE | |
|---|---|
| 0, 1, 2 | Endless: the walk writes the chords. 0 stays near home, 1 wanders, 2 goes anywhere. |
| 4, 5, 6 | Loop: the eight slots in turn, nothing new. (The same three characters, for any slot left to the walk.) |
Slots are written with three keys each, numbered 0 to 7: CR0 the root (a note name, "A", "Eb"), CQ0 its kind (Empty, Major, Minor, Sus2, Sus4, Dim, Aug) and CX0 its type (0 Triad, 1 6th, 2 7th, 3 Maj7, 4 9th, 5 11th, 6 Add9; a number). With PMODE 4 the piece plays slot 0, then slot 1, and round, each for one DRIFT:
"PMODE": 4, "DRIFT": "32 bars",
"CR0": "D", "CQ0": "Minor",
"CR1": "Eb", "CQ1": "Major"
Give every slot you use a kind: a slot with no kind is a gap, or (with a root other than C) a step left to the walk. The slots after the last one you write are gaps, and the loop goes round the ones before them.
6 Build it and hear it
python3 tools/make_pack.py packs/my-pack.json
writes build/packs/my-pack.aispack. The builder stops, and says why, on anything the FM-1 would refuse:
- not exactly eight pieces;
- a name too long, or with a character the screen can't show;
- a setting the engine hasn't got, or a value outside it;
- more than 3840 bytes, the most an FM-1 keeps for a pack (a pack of eight full pieces is usually under half that).
Hear it on the Packs page: "Add a pack from a file" takes the .aispack, checks it as the FM-1 would, and lists it with the others. Each piece plays in the browser on the same code the FM-1 runs, with no FM-1 attached. Change the file, build it again, and add it again to hear the change.
Put it on an FM-1 from the same page, as any pack (see Sound packs). Installing a new build of a pack that is already on the FM-1 replaces it. The page may then offer "Bring back my pieces", which puts back the pieces as they were left before: say no if you want to hear the new build.
Pass it on as the .aispack file, or with the page's "Copy a link to it", which puts the whole pack in a link.
From the command line (with the source built: ./build.sh), build/host/en_render writes a piece to a WAV, to listen to or measure:
build/host/en_render out.wav 240 pack=build/packs/my-pack.aispack piece=5
renders the sixth piece (they count from 0) for 240 seconds. mute=N silences layers to hear one alone: add 1 for the drone, 2 the Sequence, 4 the Lead, 24 Sequence 2, 32 the noise (so mute=59 leaves the Lead by itself).
7 Sounds of your own
Each piece can carry a sound of its own for any of its Drone, Sequence, Lead and Sequence 2: a Patch, sixteen numbers a layer, which travel in the pack with the piece (AISLING 1.6 or later). Set the layer's voice to "Patch" in the recipe (CVOICE for the Drone, SVOICE, LVOICE, S2VOICE), and give the piece a patch with that layer:
"patch": {
"seq": { "a": "sine", "b": "sine", "semi": 12, "level": 10, "cutoff": 12, "env": 10, "attack": 0 }
}
The layers are drone, seq, lead and seq2. Name only what you change; the rest is the layer's plain Patch.
| Field | Takes | What it does |
|---|---|---|
a | saw, pulse, sine, organ | The first oscillator's shape. |
width | 5 to 50 | A pulse's width. |
b | saw, pulse, sine, organ | The second oscillator's shape. |
semi | -24 to 36 | The second oscillator's pitch, in semitones over the first. |
cents | -50 to 50 | And in cents: a few apart is a slow beat. |
level | 0 to 100 | The second oscillator's level. |
fm | 0 to 100 | How much the second bends the first (frequency modulation): metal and glass. |
fm_env | 0 to 100 | How much of the FM follows the envelope: bright at the start, softening. |
sub | 0 to 100 | A sub-oscillator an octave down. |
noise | 0 to 100 | Noise in with the oscillators: breath, bow, rasp. |
cutoff | -36 to 36 | The filter, in semitones from where the piece's filter has it. |
res | 0 to 100 | The filter's resonance. |
env | 0 to 100 | How much the filter opens on each note. |
key | 0 to 100 | How far the filter follows the note's pitch. |
attack | 0 to 100 | How slowly each note comes in. |
gain | -24 to 12 | The layer's level, in dB. |
Two ways to find the numbers:
- By ear, in a DAW. AISLING's engine is also a plug-in (VST3, Audio Unit, or an app by itself: see the plug-in page). Load your pack, choose a piece, and shape each layer's Patch while it plays. "Save into the pack" writes the
.aispackwith the patches in it; "Copy as JSON" gives thepatchblock for your file. With an FM-1 on USB, "send to the fm-1" plays each patch on the FM-1 as you shape it. - By hand, in the file, building and listening as you go.
8 Making it sound good
What we learned making Saints & Sinners and Still Air:
- Watch the top end. Bright voices (Glass above all, then Dulcimer and the brighter synths) get shrill fast on small speakers and in headphones.
CUTOFFaround 30 to 40 darkens the Sequence; a Patch of sines withcutoff12 or below is softer than any of the built-in bright voices. A Lead an octave down (LOCT-1) is gentler. - Keep the Lead under the rest. A Lead at 30 to 45 sits in the music; much higher and it is out front. Slow it with
LATT(its attack),GLIDE, and a lowLDENS(how often it plays). - One idea a piece. A held choir, a bowed metal, two loops of different lengths (
SEQLEN16 againstSEQ2LEN11, so they never meet the same way twice), drops into a long echo, rain at a window. The eight work best different from each other. - Let the room do the work.
REVERB,SIZE,CLOUDand the echo (ECHO,ETIME,FEEDBACK,EBLUR) are most of what makes a piece ambient. A lowDENSITYwith a longDECAYleaves space for them. - Weather.
NCHARputs a bed under the piece (Wind, Surf, Space, Air, Tape, Rain, Fire, Curlew);CRACKLEsets how much. A little goes a long way: 5 to 30. - Level the eight. Listen to them one after another, at the same volume; a piece much louder or quieter than its neighbours is the first thing anyone notices.
- Try it on an FM-1 before you pass it on. The browser runs the same code, but a piece with every layer busy and Patches on all of them asks the most of the FM-1, and only the FM-1 says whether it keeps up.
9 Every setting
Every key a recipe can name: the name the FM-1's screen gives it, what it takes, and what a piece has if the recipe doesn't say. The words in the third column are the ones the recipe can use. The manual's layers and pages say what each does.
| Key | On the screen | Takes | Unless set |
|---|---|---|---|
CHORD | Chord | 0 to 100 | 60 |
SEQ | Sequence | 0 to 100 | 70 |
LEAD | Lead | 0 to 100 | 40 |
SEQ2 | Sequence 2 | 0 to 100 | 60 |
DENSITY | Density | 0 to 100 | 60 |
EVOLVE | Evolve | 0 to 100 | 40 |
DRIFT | Drift | 2 bars, 4 bars, 8 bars, 16 bars, 32 bars, 64 bars, Hold | 32 bars |
TAPA | Repeat A | 0 to 100 | 100 |
ECHO | Echo | 0 to 100 | 55 |
ETIME | Echo time | 1/8, 1/8., 1/4, 1/4., 1/2, 1 bar | 1/4. |
REVERB | Reverb | 0 to 100 | 35 |
FEEDBACK | Feedback | 0 to 100 | 60 |
CUTOFF | Cutoff | 0 to 100 | 45 |
DECAY | Decay | 0 to 100 | 35 |
SWEEP | Sweep | 0 to 100 | 50 |
MOTION | Motion | 0 to 100 | 50 |
TUNE | Tune | -50 to 50 | 0 |
MIDI | MIDI out | Off, On | On |
TEMPO | Tempo | 60 to 160 | 96 |
ROOT | Root | C, C#, D, Eb, E, F, F#, G, Ab, A, Bb, B | F |
MODE | Mode | Major, Dorian, Phrygian, Lydian, Mixolyd., Minor, Pent maj, Pent min, Hex maj, Hex min, Blues | Dorian |
SEQOCT | Seq oct | -2 to 2 | 0 |
CVOICE | Chord voice | Organ, Strings, Pipes, Harmonium, Glass, Choir, Patch | Organ |
SEQ2OCT | Seq2 oct | -2 to 1 | -1 |
SEQGRID | Grid | 8ths, 16ths | 8ths |
TRANS | Transpose | Parallel, Diatonic, Bed | Parallel |
TAPAT | Repeat A time | 1/8, 1/8., 1/4, 1/4., 1/2, 1 bar | 1/8. |
TAPB | Repeat B | 0 to 100 | 0 |
SEQLEN | Length | 3 to 16 | 8 |
CRACKLE | Atmosphere | 0 to 100 | 25 |
TAPBT | Repeat B time | 1/8, 1/8., 1/4, 1/4., 1/2, 1 bar | 1/4 |
SIZE | Size | 0 to 100 | 55 |
CLOUD | Cloud | 0 to 100 | 30 |
SVOICE | Seq voice | 2600, Moog, Synthi, Pulse, Glass, Harp, Bouzouki, Dulcimer, Patch | 2600 |
LVOICE | Lead voice | Odyssey, Mini, Flute, Theremin, Synthi, Chanter, Fiddle, Voice, Slide, Patch | Odyssey |
S2VOICE | Seq2 voice | 2600, Moog, Synthi, Pulse, Glass, Sub, Harp, Bouzouki, Dulcimer, Bodhran, Patch | Moog |
CATT | Attack | 0 to 100 | 40 |
CCOL | Colour | -50 to 50 | 0 |
CRES | Resonance | -50 to 50 | 0 |
DREL | Release | 0 to 100 | 50 |
PEDAL | Pedal | 0 to 100 | 70 |
SQREV | Seq reverb | 0 to 100 | 50 |
SQECHO | Seq echo | 0 to 100 | 50 |
LDREV | Lead reverb | 0 to 100 | 90 |
LOCT | Lead oct | -2 to 1 | 0 |
VIB | Vibrato | 0 to 100 | 40 |
LDECHO | Lead echo | 0 to 100 | 90 |
GLIDE | Glide | 0 to 100 | 25 |
MT4 | Atmos time | 0 to 100 | 50 |
DRREV | Drone reverb | 0 to 100 | 50 |
DRECHO | Drone echo | 0 to 100 | 50 |
S2ECHO | Seq2 echo | 0 to 100 | 50 |
MW0 | Drone width | 0 to 100 | 20 |
MT0 | Drone time | 0 to 100 | 50 |
MR0 | Drone rate | 0 to 100 | 30 |
MI0 | Drone intro | 0 to 64 | 0 |
S2DEC | Decay 2 | 0 to 100 | 35 |
MT1 | Seq time | 0 to 100 | 50 |
MR1 | Seq rate | 0 to 100 | 30 |
MI1 | Seq intro | 0 to 64 | 0 |
MW2 | Lead width | 0 to 100 | 20 |
LATT | Lead attack | 0 to 100 | 10 |
MT2 | Lead time | 0 to 100 | 50 |
MR2 | Lead rate | 0 to 100 | 30 |
CR0 | Root 1 | C, C#, D, Eb, E, F, F#, G, Ab, A, Bb, B | C |
CR1 | Root 2 | C, C#, D, Eb, E, F, F#, G, Ab, A, Bb, B | C |
CR2 | Root 3 | C, C#, D, Eb, E, F, F#, G, Ab, A, Bb, B | C |
CR3 | Root 4 | C, C#, D, Eb, E, F, F#, G, Ab, A, Bb, B | C |
CR4 | Root 5 | C, C#, D, Eb, E, F, F#, G, Ab, A, Bb, B | C |
CR5 | Root 6 | C, C#, D, Eb, E, F, F#, G, Ab, A, Bb, B | C |
CR6 | Root 7 | C, C#, D, Eb, E, F, F#, G, Ab, A, Bb, B | C |
CR7 | Root 8 | C, C#, D, Eb, E, F, F#, G, Ab, A, Bb, B | C |
CQ0 | Kind 1 | Empty, Major, Minor, Sus2, Sus4, Dim, Aug | Empty |
CQ1 | Kind 2 | Empty, Major, Minor, Sus2, Sus4, Dim, Aug | Empty |
CQ2 | Kind 3 | Empty, Major, Minor, Sus2, Sus4, Dim, Aug | Empty |
CQ3 | Kind 4 | Empty, Major, Minor, Sus2, Sus4, Dim, Aug | Empty |
CQ4 | Kind 5 | Empty, Major, Minor, Sus2, Sus4, Dim, Aug | Empty |
CQ5 | Kind 6 | Empty, Major, Minor, Sus2, Sus4, Dim, Aug | Empty |
CQ6 | Kind 7 | Empty, Major, Minor, Sus2, Sus4, Dim, Aug | Empty |
CQ7 | Kind 8 | Empty, Major, Minor, Sus2, Sus4, Dim, Aug | Empty |
CX0 | Type 1 | 0 to 6 | 0 |
CX1 | Type 2 | 0 to 6 | 0 |
CX2 | Type 3 | 0 to 6 | 0 |
CX3 | Type 4 | 0 to 6 | 0 |
CX4 | Type 5 | 0 to 6 | 0 |
CX5 | Type 6 | 0 to 6 | 0 |
CX6 | Type 7 | 0 to 6 | 0 |
CX7 | Type 8 | 0 to 6 | 0 |
PMODE | Play | 0 to 6 | 1 |
SGATE0 | Steps | a pattern, as hex ("0x49") | 0 |
SGATE1 | Steps 2 | a pattern, as hex ("0x49") | 0 |
SOCT0 | Octaves | a pattern, as hex ("0x49") | 0 |
SOCT1 | Octaves 2 | a pattern, as hex ("0x49") | 0 |
SSKIP0 | Skips | a pattern, as hex ("0x49") | 0 |
SACC0 | Accents | a pattern, as hex ("0x49") | 0 |
SACC1 | Accents 2 | a pattern, as hex ("0x49") | 0 |
MI3 | Seq2 intro | 0 to 64 | 0 |
MI2 | Lead intro | 0 to 64 | 0 |
MW3 | Seq2 width | 0 to 100 | 20 |
SCH0 | Chance | 0 to 100 | 100 |
SCH1 | Chance 2 | 0 to 100 | 100 |
LDIN | Lead in | 0 to 64 | 16 |
MT3 | Seq2 time | 0 to 100 | 50 |
MR3 | Seq2 rate | 0 to 100 | 30 |
SACCENT | Accent | 0 to 100 | 50 |
SMODE | Seq play | Auto, Pattern | Auto |
NCOL | Noise tone | -50 to 50 | 0 |
NGRAIN | Noise density | -50 to 50 | 0 |
NROOM | Air | -50 to 50 | 0 |
NDRIFT | Noise drift | -50 to 50 | 0 |
NCHAR | Noise | None, Wind, Surf, Space, Air, Tape, Rain, Fire, Curlew | None |
PHASER | Phaser | 0 to 100 | 40 |
S2CUT | Cutoff 2 | 0 to 100 | 40 |
LDENS | Phrases | 0 to 100 | 50 |
S2REV | Seq2 reverb | 0 to 100 | 50 |
LTONE | Lead tone | 0 to 100 | 50 |
SEQ2LEN | Length 2 | 3 to 16 | 7 |
EBLUR | Blur | 0 to 100 | 50 |
ETONE | Echo tone | 0 to 100 | 50 |
EWIDTH | Width | 0 to 100 | 50 |
NTUNE | Ring | 0 to 100 | 50 |
NWIDTH | Noise width | 0 to 100 | 50 |
NPLATE | Noise plate | 0 to 100 | 50 |
NECHO | Noise echo | 0 to 100 | 50 |
MW4 | Atmos width | 0 to 100 | 20 |
NLFO | Noise LFO | 0 to 100 | 0 |
ARC | Arc | 0 to 100 | 0 |
MR4 | Atmos rate | 0 to 100 | 30 |
MI4 | Atmos intro | 0 to 64 | 0 |
BRIDGE | Bridge | 0 to 100 | 40 |
LMEM | Memory | 0 to 100 | 50 |
ORN | Ornament | 0 to 100 | 30 |