AISLINGby CÚ_STE

make your own pack · AISLING, Irish ambient for the M-VAVE FM-1

sound packs

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 in packs/.
  • 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 ... ]
}
FieldWhat it is
nameThe pack's name, as the FM-1 and the page show it: up to 19 plain characters (no accents).
versionA number. Raise it when you change a pack that people already have.
needsThe AISLING it needs, as the page shows it ("1.6"). Words only; the builder works out the real need (below).
sidesThe names the page gives the two screens, light and dark (Saints & Sinners has "Saint" and "Sinner").
aboutA sentence or two for the Packs page. It isn't put on the FM-1.
piecesExactly 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
  }
}
FieldWhat it is
nameUp to 15 plain characters: the FM-1's screen shows it.
iconFor 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.
aboutA line or two for the Packs page. Not put on the FM-1.
recipeThe piece's settings (below).
airOptional: the Lead's first theme (below).
patchOptional: 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, 2Endless: the walk writes the chords. 0 stays near home, 1 wanders, 2 goes anywhere.
4, 5, 6Loop: 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.

FieldTakesWhat it does
asaw, pulse, sine, organThe first oscillator's shape.
width5 to 50A pulse's width.
bsaw, pulse, sine, organThe second oscillator's shape.
semi-24 to 36The second oscillator's pitch, in semitones over the first.
cents-50 to 50And in cents: a few apart is a slow beat.
level0 to 100The second oscillator's level.
fm0 to 100How much the second bends the first (frequency modulation): metal and glass.
fm_env0 to 100How much of the FM follows the envelope: bright at the start, softening.
sub0 to 100A sub-oscillator an octave down.
noise0 to 100Noise in with the oscillators: breath, bow, rasp.
cutoff-36 to 36The filter, in semitones from where the piece's filter has it.
res0 to 100The filter's resonance.
env0 to 100How much the filter opens on each note.
key0 to 100How far the filter follows the note's pitch.
attack0 to 100How slowly each note comes in.
gain-24 to 12The 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 .aispack with the patches in it; "Copy as JSON" gives the patch block 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. CUTOFF around 30 to 40 darkens the Sequence; a Patch of sines with cutoff 12 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 low LDENS (how often it plays).
  • One idea a piece. A held choir, a bowed metal, two loops of different lengths (SEQLEN 16 against SEQ2LEN 11, 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, CLOUD and the echo (ECHO, ETIME, FEEDBACK, EBLUR) are most of what makes a piece ambient. A low DENSITY with a long DECAY leaves space for them.
  • Weather. NCHAR puts a bed under the piece (Wind, Surf, Space, Air, Tape, Rain, Fire, Curlew); CRACKLE sets 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.

KeyOn the screenTakesUnless set
CHORDChord0 to 10060
SEQSequence0 to 10070
LEADLead0 to 10040
SEQ2Sequence 20 to 10060
DENSITYDensity0 to 10060
EVOLVEEvolve0 to 10040
DRIFTDrift2 bars, 4 bars, 8 bars, 16 bars, 32 bars, 64 bars, Hold32 bars
TAPARepeat A0 to 100100
ECHOEcho0 to 10055
ETIMEEcho time1/8, 1/8., 1/4, 1/4., 1/2, 1 bar1/4.
REVERBReverb0 to 10035
FEEDBACKFeedback0 to 10060
CUTOFFCutoff0 to 10045
DECAYDecay0 to 10035
SWEEPSweep0 to 10050
MOTIONMotion0 to 10050
TUNETune-50 to 500
MIDIMIDI outOff, OnOn
TEMPOTempo60 to 16096
ROOTRootC, C#, D, Eb, E, F, F#, G, Ab, A, Bb, BF
MODEModeMajor, Dorian, Phrygian, Lydian, Mixolyd., Minor, Pent maj, Pent min, Hex maj, Hex min, BluesDorian
SEQOCTSeq oct-2 to 20
CVOICEChord voiceOrgan, Strings, Pipes, Harmonium, Glass, Choir, PatchOrgan
SEQ2OCTSeq2 oct-2 to 1-1
SEQGRIDGrid8ths, 16ths8ths
TRANSTransposeParallel, Diatonic, BedParallel
TAPATRepeat A time1/8, 1/8., 1/4, 1/4., 1/2, 1 bar1/8.
TAPBRepeat B0 to 1000
SEQLENLength3 to 168
CRACKLEAtmosphere0 to 10025
TAPBTRepeat B time1/8, 1/8., 1/4, 1/4., 1/2, 1 bar1/4
SIZESize0 to 10055
CLOUDCloud0 to 10030
SVOICESeq voice2600, Moog, Synthi, Pulse, Glass, Harp, Bouzouki, Dulcimer, Patch2600
LVOICELead voiceOdyssey, Mini, Flute, Theremin, Synthi, Chanter, Fiddle, Voice, Slide, PatchOdyssey
S2VOICESeq2 voice2600, Moog, Synthi, Pulse, Glass, Sub, Harp, Bouzouki, Dulcimer, Bodhran, PatchMoog
CATTAttack0 to 10040
CCOLColour-50 to 500
CRESResonance-50 to 500
DRELRelease0 to 10050
PEDALPedal0 to 10070
SQREVSeq reverb0 to 10050
SQECHOSeq echo0 to 10050
LDREVLead reverb0 to 10090
LOCTLead oct-2 to 10
VIBVibrato0 to 10040
LDECHOLead echo0 to 10090
GLIDEGlide0 to 10025
MT4Atmos time0 to 10050
DRREVDrone reverb0 to 10050
DRECHODrone echo0 to 10050
S2ECHOSeq2 echo0 to 10050
MW0Drone width0 to 10020
MT0Drone time0 to 10050
MR0Drone rate0 to 10030
MI0Drone intro0 to 640
S2DECDecay 20 to 10035
MT1Seq time0 to 10050
MR1Seq rate0 to 10030
MI1Seq intro0 to 640
MW2Lead width0 to 10020
LATTLead attack0 to 10010
MT2Lead time0 to 10050
MR2Lead rate0 to 10030
CR0Root 1C, C#, D, Eb, E, F, F#, G, Ab, A, Bb, BC
CR1Root 2C, C#, D, Eb, E, F, F#, G, Ab, A, Bb, BC
CR2Root 3C, C#, D, Eb, E, F, F#, G, Ab, A, Bb, BC
CR3Root 4C, C#, D, Eb, E, F, F#, G, Ab, A, Bb, BC
CR4Root 5C, C#, D, Eb, E, F, F#, G, Ab, A, Bb, BC
CR5Root 6C, C#, D, Eb, E, F, F#, G, Ab, A, Bb, BC
CR6Root 7C, C#, D, Eb, E, F, F#, G, Ab, A, Bb, BC
CR7Root 8C, C#, D, Eb, E, F, F#, G, Ab, A, Bb, BC
CQ0Kind 1Empty, Major, Minor, Sus2, Sus4, Dim, AugEmpty
CQ1Kind 2Empty, Major, Minor, Sus2, Sus4, Dim, AugEmpty
CQ2Kind 3Empty, Major, Minor, Sus2, Sus4, Dim, AugEmpty
CQ3Kind 4Empty, Major, Minor, Sus2, Sus4, Dim, AugEmpty
CQ4Kind 5Empty, Major, Minor, Sus2, Sus4, Dim, AugEmpty
CQ5Kind 6Empty, Major, Minor, Sus2, Sus4, Dim, AugEmpty
CQ6Kind 7Empty, Major, Minor, Sus2, Sus4, Dim, AugEmpty
CQ7Kind 8Empty, Major, Minor, Sus2, Sus4, Dim, AugEmpty
CX0Type 10 to 60
CX1Type 20 to 60
CX2Type 30 to 60
CX3Type 40 to 60
CX4Type 50 to 60
CX5Type 60 to 60
CX6Type 70 to 60
CX7Type 80 to 60
PMODEPlay0 to 61
SGATE0Stepsa pattern, as hex ("0x49")0
SGATE1Steps 2a pattern, as hex ("0x49")0
SOCT0Octavesa pattern, as hex ("0x49")0
SOCT1Octaves 2a pattern, as hex ("0x49")0
SSKIP0Skipsa pattern, as hex ("0x49")0
SACC0Accentsa pattern, as hex ("0x49")0
SACC1Accents 2a pattern, as hex ("0x49")0
MI3Seq2 intro0 to 640
MI2Lead intro0 to 640
MW3Seq2 width0 to 10020
SCH0Chance0 to 100100
SCH1Chance 20 to 100100
LDINLead in0 to 6416
MT3Seq2 time0 to 10050
MR3Seq2 rate0 to 10030
SACCENTAccent0 to 10050
SMODESeq playAuto, PatternAuto
NCOLNoise tone-50 to 500
NGRAINNoise density-50 to 500
NROOMAir-50 to 500
NDRIFTNoise drift-50 to 500
NCHARNoiseNone, Wind, Surf, Space, Air, Tape, Rain, Fire, CurlewNone
PHASERPhaser0 to 10040
S2CUTCutoff 20 to 10040
LDENSPhrases0 to 10050
S2REVSeq2 reverb0 to 10050
LTONELead tone0 to 10050
SEQ2LENLength 23 to 167
EBLURBlur0 to 10050
ETONEEcho tone0 to 10050
EWIDTHWidth0 to 10050
NTUNERing0 to 10050
NWIDTHNoise width0 to 10050
NPLATENoise plate0 to 10050
NECHONoise echo0 to 10050
MW4Atmos width0 to 10020
NLFONoise LFO0 to 1000
ARCArc0 to 1000
MR4Atmos rate0 to 10030
MI4Atmos intro0 to 640
BRIDGEBridge0 to 10040
LMEMMemory0 to 10050
ORNOrnament0 to 10030