Create your own style

A style is the recipe that Random follows. It decides which parts get built, which modules make each sound, the rhythms, the tempo, the groove and the mix. Every style, including the ones that come with MODURAND, is one text file with the .mostyle extension. You can write your own, share it and sell it. Creating styles needs MODURAND Pro (the trial includes it).

Start from the app

There are three ways to begin. All of them end with a file in Documents/MODURAND/Styles.

  1. Create new style. Click the settings button at the right end of the style bar and choose Create new style…, or click + next to Styles in the browser. Give it a name and a colour, then choose Copy a style, Paste code or Import file. Pasted code is checked as you type: every problem is listed with the key it is about, and a misspelled key gets a "did you mean" suggestion.
  2. Based on an existing style. Right-click the style tab closest to what you want, for example TECHNO, and choose New style based on Techno…. MODURAND copies it and shows you the file.
  3. Import. Right-click any style tab and choose Import style (.mostyle)… to add a file someone shared with you.

The editing loop

  1. Open the file in any text editor. Editors that understand JSON schemas, such as VS Code, give you autocomplete and underline typos as long as the "$schema" line stays at the top.
  2. Change a few values and save.
  3. Right-click any style tab and choose Reload styles.
  4. Press Random 10 to 20 times and listen. Is a part always too loud, always missing, always the same? Change the value that controls it and go back to step 2.

A file only needs the keys where your style differs from the defaults. Everything you leave out uses the default value, so a short file already makes music.

A complete small style

This is a full working style: sparse minimal and deep tech, 122 to 128 BPM. Paste it into Create style → Paste code to try it.

{
  "$schema": "https://modurand.com/docs/styles/mostyle.schema.json",
  "format": 1,
  "id": "MINIMAL",
  "name": "Minimal",
  "colour": "#c8f060",
  "description": "Sparse minimal / deep tech, 122-128 BPM",
  "author": "Your name",
  "version": "1.0.0",
  "traits": { "styled": true, "soft": true },
  "tempo": { "zones": [[122, 125, 0.6], [125, 128, 0.4]] },
  "clock": { "swing": [0, 0] },
  "groove": { "swing": [0.9, 0.12, 0.2], "clapNudge": 0.5 },
  "key": { "scales": [0, 2, 2] },
  "parts": [
    ["KICK", 1],
    ["HAT", 1],
    ["HAT", 0.6],
    { "either": ["CLAP", "SNARE"], "first": 0.8, "p": 0.6 },
    ["PERC", 0.9],
    ["PERC", 0.6],
    ["BASS", 1],
    ["LEAD", 0.3],
    ["CHORD", 0.25],
    ["ATMOS", 0.3],
    ["FX", 0.3]
  ],
  "kick": {
    "params": { "PITCH": [48, 54], "SWEEP": [0.3, 0.5], "P TIME": [0.15, 0.25],
                "DECAY": [0.2, 0.3], "CLICK": [0.2, 0.45], "TONE": [0.5, 0.75], "DRIVE": [0, 0.1] },
    "pattern": [0.8, 0.1, 0.05, 0, 0.05, 0, 0],
    "level": 0.9
  },
  "hat": { "offbeat": 0.4, "density16": [0.45, 0.8] },
  "perc": { "click": 0.7, "samples": 0.4 },
  "bass": { "phrase": "techhouse", "voice": "synth", "synth": "house" },
  "lead": { "phrase": "techno", "voice": "stab", "chordArp": 0.2 },
  "chord": { "rhythm": "house" },
  "delay": { "divisions": [7, 7, 4, 5] },
  "master": { "glue": 0.6, "width": 0.4 },
  "mix": {
    "sidechain": 0.5,
    "eq": 0.7,
    "db": { "BASS": 2, "LEAD": -6, "CHORD": -6, "PERC": -2, "ATMOS": -10, "FX": -8 }
  }
}

Kinds of values

KindExampleMeaning
Chance"master.glue": 0.60 to 1. 0.6 means 60 % of patches get it.
Range"DECAY": [0.2, 0.3]A random value between the two, new for every patch.
List"scales": [0, 2, 2]One is picked. Repeat a value to make it more likely.
Weights"pattern": [0.8, 0.1, …]How likely each fixed option is. The order of the options is given for each key in the reference.
Name"bass.phrase": "techno"Picks one of the built-in building blocks below.

Keys are written with dots in the reference: master.glue is "master": { "glue": … } in the file.

The header

  • id is saved inside every project made with the style. Letters A–Z, digits and _. Keep it the same once people use your style and raise version instead.
  • name, colour, description and author are shown on the style tab and its tooltip.
  • traits switch whole families of behaviour on: styled uses the style generator (almost always on), dark dark techno sources and pads, techfam tom and metal loops and rumble bass, soft keeps distortion and resonance in check, harmonic makes every melody follow one chord progression, industrial switches to the industrial generator.

Parts

parts is the most important key. It lists which parts get built, in which order and how likely each one is.

  • ["HAT", 0.4] adds a hat in 40 % of patches.
  • ["HAT", 1], ["HAT", 0.6] always one hat, sometimes a second.
  • {"either": ["CLAP", "SNARE"], "first": 0.7, "p": 0.4} in 40 % of patches adds a clap (70 %) or a snare (30 %).

Parts: KICK SNARE CLAP HAT CYMBAL PERC BASS LEAD CHORD PAD ATMOS DRONE FX.

Each part has its own section (kick, hat, perc, bass, lead, chord, pad, fx…) with the sound sources it may use, its parameter ranges, its rhythm and its effects.

Rack size

A rack has no fixed module limit. Its size comes from the parts list: how many parts you allow and how likely each one is. rack.priority sets the order the parts are built in. rack.partMax limits how many modules one part may use (24 by default, also per part, for example rack.partMax.PAD), and rack.fxPerPart how many general effects (delay, filter, EQ, punch…) a part gets on top of the style's own treatment.

Building blocks

Some keys pick one of the generator's phrase, voice and rhythm algorithms. Mixing them is the quickest way to a new style, for example a tech house bass under techno leads.

KeyOptions
bass.phrasepsy techno electro techhouse acid melodic dub
bass.voicesynth psy acid sub
bass.synthdefault dub house melodic techno
lead.phrasepsy electro techno acid melodic dub techhouse
lead.voicepsy techno electro berlin techhouse dub melodic stab
chord.rhythmdub house melodic techno electro offbeat
cymbal.rhythmtechno electro dub offbeat
filter.modetechno dub autowah
kick.voiceempty or hardkick
drums.sequencerempty or drumseq: all drums on one DRUM SEQ
melody.trackstrue: bass, lead and chord sequences share one MULTI SEQ

Tempo, groove and mix

These change the feel the most.

  • tempo.zones: tempo zones with weights, so one style can be 124 BPM one time and 132 the next. [[122, 125, 0.6], [125, 128, 0.4]] picks the first zone 60 % of the time, then a tempo inside it.
  • groove.swing: [chance, from, to] swing for hats and percussion only, so kick and bass stay straight. 0.08 is about 54 % swing, 0.16 about 58 %, 0.32 a triplet feel. clock.swing swings the whole rack instead. groove.percSwing lets percussion swing harder than the hats.
  • groove.clapPush and groove.clapNudge move claps a few milliseconds before the beat (urgent) or after it (laid back).
  • kick.pattern and kick.params: how the kick hits and how it sounds. kick.tuneCenter tunes the kick to the key around this frequency in Hz.
  • mix.db: level per part in dB, for example {"BASS": 4, "PAD": -12}. Also mix.sidechain, mix.highpass, mix.eq, and mix.hatAir for hats and cymbals.
  • master.glue, master.glueComp, master.clipperCeil, master.outLevel: the master chain.
  • presence: an optional extra layer. With chance presence.p a patch gets presence.from added, and one random amount per patch moves the values towards presence.to. The other patches are the plain style.

Beats

The beats section draws drum parts from a library of genre grammars: detroit, analogue, minimal, techhouse, house_deep, house_chicago, house_big, house_starter, garage, prog, trance, nudisco, disco, dnb, dubstep and percussion. They are not presets. Every part picks its own layer, so the kick can come from one family and the hats from another, and then the generator varies them.

"beats": {
  "families": [["house_deep", 3], ["house_chicago", 2], ["percussion", 1]],
  "p": { "KICK": 0.5, "CLAP": 0.9, "HAT": 0.8, "CYMBAL": 0.7, "PERC": 0.9 },
  "ghosts": 0.6, "kickGhosts": 0.5, "fills": 0.6, "thin": 0.3, "displace": 0.2,
  "counterpoint": 0.6, "maxPerStep": 3,
  "custom": { "myfam": { "PERC": ["..x..x....x..x.x|..x..x....x..xx."] } }
}

You can add your own grids under custom. One character per 16th note, | splits two bars:

CharacterMeaning
Xaccent
xhit
osoft hit
gghost note
.rest

A layer can also be {"g": "....x.......x...", "push": true} to play a few milliseconds early, or "nudge": true to play late.

The variations: ghosts quiet claps or snares just before a hit, kickGhosts a quiet kick into the next bar, fills at the end of the second bar, thin drops soft percussion hits, displace shifts percussion by a 16th, counterpoint keeps percussion off the kick, maxPerStep limits how many sounds share one step (hats don't count).

Every key

The generator reads 384 keys. The full key reference lists each one with its kind, default value, what it does, and which built-in styles use it. The built-in styles are the best examples: right-click any of them and choose Export to see exactly how it is made.

Downloads:

When something is wrong

  • A value of the wrong kind falls back to its default, so the style still works.
  • Unknown keys are ignored by the app. The schema marks them in your editor, so typos are easy to spot.
  • A file that is not valid JSON, is larger than 256 KB or is nested more than 64 levels deep is skipped. MODURAND tells you which file and why, and the other styles load as usual.
  • A style file holds settings only. No code runs from it, so styles from other people are safe to install.

Share and sell

Right-click your style and choose Export … (.mostyle) to save a .mostyle file. Others add it with Import style. You can also sell styles on the MODURAND marketplace, where author, version and description are shown on the store page. Styles you make are yours.

New modules, styles and updates

A short email when something new lands in MODURAND. No spam, unsubscribe any time.

By subscribing you agree to get emails from MODURAND. See the privacy policy.