{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "MODURAND style (.mostyle)",
  "type": "object",
  "required": [
    "format",
    "id"
  ],
  "properties": {
    "format": {
      "description": "File format version. Must be 1.",
      "type": "number",
      "const": 1
    },
    "id": {
      "description": "Unique id, A-Z 0-9 _. Saved into projects, so don't change it after people use the style.",
      "type": "string"
    },
    "name": {
      "description": "Name on the style tab.",
      "type": "string"
    },
    "colour": {
      "description": "Tab colour, #rrggbb.",
      "type": "string"
    },
    "description": {
      "description": "Tooltip text: what the style sounds like, tempo range.",
      "type": "string"
    },
    "author": {
      "description": "Your name (shown in the tooltip).",
      "type": "string"
    },
    "version": {
      "description": "Your version, e.g. 1.2.0.",
      "type": "string"
    },
    "basedOn": {
      "description": "Id of the style this one was copied from (set by the app, informational).",
      "type": "string"
    },
    "rack": {
      "description": "Rack size like a real modular synth case.",
      "type": "object",
      "properties": {
        "budget": {
          "description": "No longer used: since 1.0.7 a rack has no module limit (kept so older styles still load). Use part chances, rack.partMax and explore to control size.",
          "type": "number"
        },
        "partMax": {
          "description": "At most this many modules for one part (default and minimum 24); a bigger build is thrown away and rebuilt. Or an object by part, e.g. {\"DRONE\": 30}: listed parts get that limit, the others 24.",
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "object",
              "additionalProperties": {
                "type": "number"
              }
            }
          ]
        },
        "reserve": {
          "description": "No longer has an effect: it worked together with rack.budget, which is no longer used.",
          "type": "number"
        },
        "priority": {
          "description": "Order in which the parts are built, e.g. [\"KICK\", \"HAT\", \"BASS\", \"PERC\", ...].",
          "type": "array"
        },
        "fxPerPart": {
          "description": "Generic FX / processing per part (default 1), on top of one style-signature treatment.",
          "type": "number"
        },
        "maxSeqs": {
          "description": "At most this many separate sequencers in the rack (default 4). Extra ones are removed, least important parts first (FX, ATMOS, PAD, DRONE, CYMBAL, PERC ...): their gates come from a clock division and their notes from a MULTI SEQ track; a part with no note source is dropped. Not applied in ambient styles.",
          "type": "number"
        },
        "sustain": {
          "description": "Chance the patch gets at least one long sustained layer (PAD or DRONE, picked by the parts weights, or DRONE when sound.dark), built right after the lead (default 0).",
          "type": "number"
        }
      },
      "additionalProperties": false
    },
    "alive": {
      "description": "How much the patch changes by itself (default 1, 0 = off): STEP SEQ EVOLVE on every part except the kick, per-hit pitch drift on metal percussion.",
      "type": "number"
    },
    "beats": {
      "description": "Beat library (styles/beats.json): genre grammar layers the generator picks and varies.",
      "type": "object",
      "properties": {
        "families": {
          "description": "Families to take layers from, with weights: [[\"detroit\", 3], [\"minimal\", 1]]. Each part picks on its own, so kick, hats and percussion can come from different families.",
          "type": "array"
        },
        "p": {
          "description": "Per part chance to use a library layer instead of the classic rhythm: {\"CLAP\": 0.8, \"HAT\": 0.5}. Parts: KICK SNARE CLAP HAT CYMBAL PERC.",
          "type": "object",
          "properties": {},
          "additionalProperties": {
            "type": "number"
          }
        },
        "custom": {
          "description": "Your own families, same shape as in beats.json: {\"myfam\": {\"KICK\": [\"x...x...x...x...\"], \"HAT\": [...]}}. Grid: X accent, x hit, o soft, g ghost, . rest, | splits 2 bars; a layer can be {\"g\": grid, \"push\": true}.",
          "type": "object",
          "properties": {},
          "additionalProperties": {
            "type": "object"
          }
        },
        "ghosts": {
          "description": "Chance of 1-2 extra ghost claps / snares per bar (~25-35 % velocity, the 16th before a hit or at the bar end).",
          "type": "number"
        },
        "kickGhosts": {
          "description": "Chance of a quiet kick into the next bar (turnaround).",
          "type": "number"
        },
        "fills": {
          "description": "Chance of an end-of-bar variation in the 2nd bar (hat 16ths, double snare, extra open hat / percussion).",
          "type": "number"
        },
        "thin": {
          "description": "Chance that percussion / hats drop 1-2 soft hits per bar.",
          "type": "number"
        },
        "displace": {
          "description": "Chance that a percussion line is shifted by one 16th.",
          "type": "number"
        },
        "counterpoint": {
          "description": "Per hit chance that percussion landing on a kick step is removed (Detroit: rim / perc answer the kick, not double it).",
          "type": "number"
        },
        "maxPerStep": {
          "description": "At most this many sounds on one step (kick, clap, snare, percussion, cymbal; hats not counted); 0 = no limit.",
          "type": "number"
        }
      },
      "additionalProperties": false
    },
    "parts": {
      "description": "Which parts are built and how likely: [\"HAT\", 0.4] or {\"either\": [\"CLAP\", \"SNARE\"], \"first\": 0.7, \"p\": 0.4}. Roles: KICK SNARE CLAP HAT CYMBAL PERC BASS LEAD CHORD PAD ATMOS DRONE FX.",
      "type": "array"
    },
    "explore": {
      "description": "Chance (default 0.35, freedom raises it), for each LEAD, CHORD, PAD, ATMOS, FX, PERC or DRONE part, of one unexpected processor (SPIRAL, SPECTRAL, CRUSH, SIEVE, MORPH XY, FOLD, CLIPPER, DRUM ECHO ...) and of a sequencer surprise. Also makes rare lead sources and the PERC 4 ensemble more likely.",
      "type": "number",
      "properties": {
        "max": {
          "description": "Most explore surprises in one patch. If not set, picked at random each patch: 0-5, usually 1-3.",
          "type": "number"
        }
      }
    },
    "features": {
      "description": "Chances for extra module functions (features.lfoSync, features.delayDub ...). Used only when the style sets features or freedom is above 0; with freedom each default is scaled by it.",
      "type": "object",
      "properties": {
        "lfoSync": {
          "description": "Chance (0..1). LFO modules lock to the clock (CLK from CLOCK 1/16, RATE becomes a ratio)",
          "type": "number"
        },
        "kickDecay": {
          "description": "Chance (0..1). KICK / DEEP KICK DECAY breathes from a slow clock-synced LFO into the DECAY CV input",
          "type": "number"
        },
        "hatsOpen": {
          "description": "Chance (0..1). HATS get open hats on the offbeats (OPEN input from a EUCLID); closed hits choke them",
          "type": "number"
        },
        "euclidAcc": {
          "description": "Chance (0..1). EUCLID ACC output drives the accent / VEL input of the module it triggers",
          "type": "number"
        },
        "delayDub": {
          "description": "Chance (0..1). DELAY dub throws: FDBK 0.8-0.9 plus a slow clock-synced square on FDBK CV (up to ~105 %)",
          "type": "number"
        },
        "delayHot": {
          "description": "Chance (0..1). DELAY FDBK 0.95-1.03 (when no dub throws) - near / over self-oscillation",
          "type": "number"
        },
        "delayDuck": {
          "description": "Chance (0..1). DELAY DUCK 0.4-0.8: echoes dip while the dry input plays",
          "type": "number"
        },
        "delayFreeze": {
          "description": "Chance (0..1). DELAY FREEZE gated on the last bar of every 8 (fill)",
          "type": "number"
        },
        "reverbPredly": {
          "description": "Chance (0..1). REVERB PREDLY 0.12-0.45 (30-110 ms)",
          "type": "number"
        },
        "reverbFreeze": {
          "description": "Chance (0..1). REVERB FREEZE on the last bar of every 8 - frozen pad",
          "type": "number"
        },
        "vocoderFreeze": {
          "description": "Chance (0..1). VOCODER FREEZE on the last bar of every 8 - held formant",
          "type": "number"
        },
        "wavetableWarp": {
          "description": "Chance (0..1). WAVE VCO WARP 0.15-0.5 plus a clock-synced LFO on WARP CV",
          "type": "number"
        },
        "complexOsc": {
          "description": "Chance (0..1). COMPLEX OSC: MOD AM / FOLD, SYMM, LOCK; STRIKE from the part's trigger",
          "type": "number"
        },
        "unisonStack": {
          "description": "Chance (0..1). UNISON STACK OCT / 5TH / CHORD; RETRIG from the part's gate",
          "type": "number"
        },
        "crushJitter": {
          "description": "Chance (0..1). CRUSH JITTER 0.3-0.8",
          "type": "number"
        },
        "compPump": {
          "description": "Chance (0..1). COMP THRESH CV from a clock-synced saw (quarter-note pumping)",
          "type": "number"
        },
        "vcoSub": {
          "description": "Chance (0..1). Bass VCO SUB output added as its own sub layer in the mixer",
          "type": "number"
        },
        "adsrLoop": {
          "description": "Chance (0..1). A looping ADSR (LOOP + LONG) as a slow modulator on a free timbre CV input",
          "type": "number"
        },
        "addStrike": {
          "description": "Chance (0..1). Adds a percussive FM voice when the rack has no COMPLEX OSC: EUCLID with accents -> STRIKE, ADSR (VEL from ACC) -> LPG",
          "type": "number"
        },
        "addStab": {
          "description": "Chance (0..1). Adds UNISON stabs on the key root when the rack has no UNISON: EUCLID -> RETRIG and ADSR (VEL from ACC) -> LPG",
          "type": "number"
        },
        "tubeTime": {
          "description": "Chance (0..1). With addStab: a TUBE FX (flanger / ensemble) on the stabs, TIME CV from a synced LFO",
          "type": "number"
        },
        "addTexture": {
          "description": "Chance (0..1). Adds a clock-quantised TEXTURE (CLK) whose EVT output triggers a short HATS hit; existing TEXTURE gets the clock",
          "type": "number"
        },
        "addCrush": {
          "description": "Chance (0..1). Inserts a CRUSH with JITTER on a percussion channel when the rack has none",
          "type": "number"
        }
      },
      "additionalProperties": false
    },
    "undertow": {
      "description": "Undertow generator (slow, dark): sample material pitched down, played by a shared BODIES module, reversed on collisions, into a tape echo the bodies bend.",
      "type": "object",
      "properties": {
        "on": {
          "description": "Every styled part is built as an Undertow voice instead of the normal recipes.",
          "type": "boolean"
        },
        "speed": {
          "description": "SPEED of the shared BODIES (three-body) module that plays the Undertow voices (default 0.2-0.55).",
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 2,
          "maxItems": 2
        }
      },
      "additionalProperties": false
    },
    "since": {
      "description": "Built-in styles only: the app version that introduced the style. While it equals the running version, the tab shows a NEW badge.",
      "type": "string"
    },
    "alternates": {
      "description": "Random variants of this style: [{\"p\": 0.5, \"merge\": {...}}]. Each time a patch is generated, one variant may be picked by its chance p; its merge object is laid over the style (objects merge key by key, lists and numbers are replaced). No variant picked = the style as written.",
      "type": "array"
    },
    "presence": {
      "description": "Optional extra layer of the style: with chance p a patch gets the \"from\" values merged in (like an alternate), and one random amount t per patch moves every number in \"to\" from that value (t = 0) to the \"to\" value (t = 1). Otherwise the patch is the plain style. Decided from a copy of the generator's random sequence, so plain patches stay identical for the same seed.",
      "type": "object",
      "properties": {
        "to": {
          "description": "Same shape as the style: the values at full presence.",
          "type": "object",
          "properties": {},
          "additionalProperties": true
        },
        "p": {
          "description": "Share of patches that get the extra layer (default 1).",
          "type": "number"
        },
        "from": {
          "description": "Values merged in for those patches (same shape as the style).",
          "type": "object",
          "properties": {},
          "additionalProperties": true
        }
      },
      "additionalProperties": false
    },
    "freedom": {
      "description": "Freedom range [lo, hi] (0..1): each generation draws f inside it. f widens voice and processor choices, knob ranges, optional parts, modulation, new-feature use (features.* defaults x f) and bass / lead phrase motion. Tempo, kick, groove, key, mix and master stay anchored. No key = 0 (generation as before).",
      "type": "array",
      "items": {
        "type": "number"
      },
      "minItems": 2,
      "maxItems": 2
    },
    "traits": {
      "type": "object",
      "properties": {
        "styled": {
          "description": "Use the style generator (parts list, per-role recipes). false = the free 'ANY' generator.",
          "type": "boolean"
        },
        "dark": {
          "description": "Dark techno family: dark pads and drones, hypnotic loops (several smaller defaults follow this).",
          "type": "boolean"
        },
        "techfam": {
          "description": "Techno family: tom / metal percussion loops, rumble bass options.",
          "type": "boolean"
        },
        "soft": {
          "description": "Caps distortion, resonance and very high tones on everything the style creates.",
          "type": "boolean"
        },
        "harmonic": {
          "description": "Melodies follow one chord progression (HARMONY module): bass, leads, pads and chords always fit.",
          "type": "boolean"
        },
        "industrial": {
          "description": "Industrial generator: FM drums, resonators, odd Euclidean rhythms, more distortion.",
          "type": "boolean"
        },
        "norules": {
          "description": "No Rules generator: 4-6 random experimental voices (random sources, effects, odd rhythm lengths, random modulation) instead of the parts list. Silent voices are removed and more are added until at least 3 parts sound. Works without traits.styled.",
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "tempo": {
      "type": "object",
      "properties": {
        "zones": {
          "description": "Tempo zones [[lo, hi, weight], ...]: one zone is picked by weight, then a BPM inside it.",
          "type": "array"
        }
      },
      "additionalProperties": false
    },
    "clock": {
      "type": "object",
      "properties": {
        "bpmRange": {
          "description": "Legacy BPM range applied before the zones (kept for identical output of built-in styles).",
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 2,
          "maxItems": 2
        },
        "swing": {
          "description": "CLOCK swing (whole rack, including bass): 0 straight, 0.16 ~ 58 % swing, 0.32 ~ triplet.",
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 2,
          "maxItems": 2
        }
      },
      "additionalProperties": false
    },
    "rhythm": {
      "type": "object",
      "properties": {
        "broken": {
          "description": "Chance of a broken beat / breakbeat kick instead of 4/4.",
          "type": "number"
        },
        "brokenSlow": {
          "description": "Below 'below' BPM use chance 'p' for a broken beat instead (slow acid / dub).",
          "type": "object",
          "properties": {
            "below": {
              "description": "BPM threshold for rhythm.brokenSlow.",
              "type": "number"
            },
            "p": {
              "description": "Broken-beat chance under the threshold.",
              "type": "number"
            }
          },
          "additionalProperties": false
        },
        "slowBreakSwing": {
          "description": "Slow broken beats (< 116 BPM) get a hip-hop swing.",
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "key": {
      "type": "object",
      "properties": {
        "scales": {
          "description": "Scales to pick from (0 natural minor, 1 phrygian, 2 dorian); repeat a value to weight it.",
          "type": "array"
        }
      },
      "additionalProperties": false
    },
    "groove": {
      "type": "object",
      "properties": {
        "swing": {
          "description": "[chance, from, to]: chance that hats / percussion swing, and how much (STEP SEQ SWING).",
          "type": "array"
        },
        "clapNudge": {
          "description": "Chance that claps / snares are laid back by a few ms (NUDGE).",
          "type": "number"
        },
        "tripletPerc": {
          "description": "Chance that a percussion sequencer runs on a triplet clock over the straight kick.",
          "type": "number"
        },
        "percSwing": {
          "description": "Chance that percussion swings harder than the hats (+0.06..0.14, e.g. hats 54 %, percussion 62-66 %).",
          "type": "number"
        },
        "clapPush": {
          "description": "Chance that claps / snares hit a few ms BEFORE the beat (PUSH: urgent, prog / deep house / nu disco).",
          "type": "number"
        }
      },
      "additionalProperties": false
    },
    "drums": {
      "type": "object",
      "properties": {
        "layered": {
          "description": "Chance a clap / snare is built from layers (body + noise + space, each picked separately) instead of a single drum module (default 0.45).",
          "type": "number"
        },
        "sequencer": {
          "description": "\"drumseq\": kick, snare, clap, hats, cowbell share one DRUM SEQ (electro). Empty: each part has its own rhythm.",
          "type": "string"
        },
        "tracks": {
          "description": "Move the drum parts' trigger sequences onto the tracks of one shared DRUM SEQ (velocity, ratchets, length, chance and swing are kept), like a real rack.",
          "type": "boolean"
        },
        "compact": {
          "description": "With drums.tracks: tonal drums move onto DRUM SEQ tracks too (pitch from the bass sequence or fixed). Leftover helper sequencers are replaced by smaller modules (timbre sequence -> NOISE S&H, bar mute blocks -> track CHANCE).",
          "type": "boolean"
        },
        "compactTail": {
          "description": "With drums.compact: when a part's bar-mute VCA is removed, its output is handed on so the part doesn't go silent. Leave it on.",
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "kick": {
      "type": "object",
      "properties": {
        "layer": {
          "description": "Chance the kick gets a top layer on the same trigger (noise click, FM tick or a low wooden knock) for a different attack character (default 0.12).",
          "type": "number"
        },
        "voice": {
          "description": "\"hardkick\": distorted HARDKICK module. Empty: KICK / DEEPKICK.",
          "type": "string"
        },
        "types": {
          "description": "Kick modules to pick from, e.g. [\"KICK\", \"KICK\", \"DEEPKICK\"].",
          "type": "array"
        },
        "params": {
          "description": "KICK parameter ranges: PITCH (Hz), SWEEP, P TIME, DECAY, CLICK, TONE, DRIVE, each [lo, hi].",
          "type": "object",
          "properties": {
            "HOLD": {
              "description": "How long the body stays at full level before fading (0 = classic decay from the hit).",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "PITCH": {
              "description": "Kick body pitch in Hz.",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "SWEEP": {
              "description": "Pitch sweep depth.",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "P TIME": {
              "description": "Pitch sweep time.",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "DECAY": {
              "description": "Kick length.",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "CLICK": {
              "description": "Click / knock amount.",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "TONE": {
              "description": "Low-pass on the kick (low = round, high = clicky).",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "DRIVE": {
              "description": "Saturation.",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "PUNCH": {
              "description": "Mid punch: body harmonics and a longer beater click, so the kick cuts through on small speakers.",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            }
          },
          "additionalProperties": false
        },
        "pattern": {
          "description": "Weights: straight 4/4, + extra hit, skipped hit, half time, 3+3+2, broken, 2-bar variation.",
          "type": "array"
        },
        "tuneToKey": {
          "description": "Chance the KICK pitch is the key's root (fundamental 40-62 Hz).",
          "type": "number"
        },
        "detune": {
          "description": "With kick.tuneToKey: chance it sits a semitone under the root (darker, dissonant).",
          "type": "number"
        },
        "reverseSwell": {
          "description": "Chance of a reversed swell sucking into the kick.",
          "type": "number"
        },
        "level": {
          "description": "Kick mixer level (0..2).",
          "type": "number"
        },
        "send": {
          "description": "Kick reverb send.",
          "type": "number"
        },
        "flavours": {
          "description": "Weights of the kick character picked per patch: [dull and deep, round, hard]; hard uses kick.params as written (default 1, 1.2, 0.8)."
        },
        "sawLayer": {
          "description": "Weight of a gritty low saw burst (saw -> fold -> short gate) as the kick top layer, against the noise click at weight 1 (default 0).",
          "type": "number"
        },
        "models": {
          "description": "Weights of the KICK module's sound models (MODEL 0, 1, 2 ...); 0 excludes a model. Default mixes all models."
        },
        "tuneCenter": {
          "description": "Target pitch in Hz for the key-tuned KICK (default 50). The key's root is used if it is close, otherwise its 5th or 4th. Applies only when kick.tuneToKey hits.",
          "type": "number"
        },
        "rumble": {
          "type": "object",
          "properties": {
            "p": {
              "description": "Chance of a rumble layer under the kick.",
              "type": "number"
            },
            "weights": {
              "description": "Rumble kind weights: classic (reverb-saturate-LP), poly (pumps on another rhythm), tonal (tuned toms), knocks (low hits between kicks), rolling (kick lows through a 1/16 delay).",
              "type": "array"
            },
            "deep": {
              "description": "Darker rumble low-pass (almost everything under 150 Hz).",
              "type": "boolean"
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "bass": {
      "type": "object",
      "properties": {
        "character": {
          "description": "Chance of a character bass (reese, FM, wavefold, vowel, PWM) with a clean sub, instead of the plain synth bass.",
          "type": "number"
        },
        "interval": {
          "description": "Chance of a second bass VCO a minor 3rd or 5th up, mixed in before the filter (darker, edgier).",
          "type": "number"
        },
        "midDelay": {
          "description": "Chance the bass mids (band-pass ~300-900 Hz) go through a synced delay - movement without muddy lows.",
          "type": "number"
        },
        "acidChance": {
          "description": "With bass.voice = acid: chance the bass really is the acid voice; otherwise a regular synth bass (default 1).",
          "type": "number"
        },
        "subPure": {
          "description": "With bass.voice = sub: chance of a pure sine sub instead of the filtered square bass (default 0.6).",
          "type": "number"
        },
        "phrase": {
          "description": "Bass rhythm / note algorithm: psy, techno, electro, techhouse, acid, melodic, dub.",
          "type": "string"
        },
        "voice": {
          "description": "Bass sound: synth (see bass.synth), psy, acid, sub.",
          "type": "string"
        },
        "synth": {
          "description": "Synth bass flavour: default, dub (round sine + sub), house (short, brighter), melodic (slides, opening filter), techno (soft attack, glide).",
          "type": "string"
        },
        "length": {
          "description": "Fixed sequence length.",
          "type": "number"
        },
        "lengths": {
          "description": "Sequence lengths to pick from.",
          "type": "array"
        },
        "oddLength": {
          "description": "Chance of an odd length (polyrhythm against 4/4).",
          "type": "number"
        },
        "oddLengths": {
          "description": "Odd lengths to pick from.",
          "type": "array"
        },
        "p16": {
          "description": "Chance of 16 steps (otherwise 8).",
          "type": "number"
        },
        "metroseq": {
          "description": "Chance of a METRO SEQ bass phrase.",
          "type": "number"
        },
        "seq": {
          "description": "Bass sequencer: \"acidseq\" \u2013 ACID SEQ with one of our generated acid patterns (needs bass.voice acid); empty \u2013 the usual phrase generator.",
          "type": "string"
        },
        "growl": {
          "description": "Chance of a GROWL bass.",
          "type": "number"
        },
        "tom": {
          "description": "Chance of a tuned FM 'tom' bass with rumble.",
          "type": "number"
        },
        "subUnder": {
          "description": "Add a sine sub under character basses (GROWL, MACRO, COMPLEXOSC).",
          "type": "boolean"
        },
        "motion": {
          "description": "Chance the synth bass pulses / breathes per note.",
          "type": "number"
        },
        "dist": {
          "description": "Chance of distortion on the synth bass.",
          "type": "number"
        },
        "distPluck": {
          "description": "Chance of distortion on the plucked bass.",
          "type": "number"
        },
        "wavetable": {
          "description": "Chance of the same hypnotic WAVE VCO voice as the bass (with sub, no reverb).",
          "type": "number"
        },
        "acidAlt": {
          "description": "Chance the bass is played by an ACID VOICE over the style's normal bass phrase, instead of the synth bass.",
          "type": "number"
        },
        "bleep": {
          "description": "Chance of a BLEEP bass (bleep techno): a pure sine one octave down with a quick pitch blip on every note, very short.",
          "type": "number"
        },
        "ladder": {
          "description": "Chance the bass filters (every new VCF of the BASS part) switch to the LADDER type: thick low end and a singing resonance.",
          "type": "number"
        },
        "modular": {
          "description": "Chance of a modular-techno bass instead of the usual phrase: a sine two octaves down on its own 5-step sequencer (plays steps 1, 2, 4), a polyrhythm against 4/4.",
          "type": "number"
        },
        "oneNote": {
          "description": "Techno bass phrase: chance the bass stays on one note on purpose (pedal). It then skips bass.techno.riff and the 'at least two notes' fix.",
          "type": "number"
        },
        "squelch": {
          "description": "Chance of a squelchy electro bass: three saws (0 / -1 / -2 octaves) into a resonant 12 dB low-pass, filter and amp envelopes with no sustain.",
          "type": "number"
        },
        "stab": {
          "description": "Chance of a STAB bass: short two-note saw / square stab (root + 5th, octave or minor 3rd) in the bass register with a filter bite.",
          "type": "number"
        },
        "tomRoll": {
          "description": "Chance the bass line is replaced by rolling toms: two low FM toms (FMDRUM) tuned to the key fill the gaps between kicks, dry and centred.",
          "type": "number"
        },
        "techno": {
          "type": "object",
          "properties": {
            "lowHits": {
              "description": "Techno phrase: chance of low hits between kicks.",
              "type": "number"
            },
            "neighbour": {
              "description": "Techno phrase: chance of a semitone / third neighbour note.",
              "type": "number"
            },
            "avoidKick": {
              "description": "Techno phrase: never on the kick step.",
              "type": "boolean"
            },
            "riff": {
              "description": "Techno bass phrase: chance the root-note hits become a riff (root plus 1-3 other notes; freedom raises it).",
              "type": "number"
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "fx": {
      "type": "object",
      "properties": {
        "texture": {
          "description": "Chance the FX part is a TEXTURE layer (drops, dust, static bursts through echo and a big space).",
          "type": "number"
        },
        "vocoder": {
          "description": "Chance of a vocoder FX.",
          "type": "number"
        },
        "zaps": {
          "description": "Chance of laser zaps.",
          "type": "number"
        },
        "padSample": {
          "description": "Chance of a pad / atmosphere sample FX.",
          "type": "number"
        },
        "vocals": {
          "description": "Chance of vocal chop FX.",
          "type": "number"
        },
        "freqShift": {
          "description": "Chance of a frequency shifter on leads / FX / percussion.",
          "type": "number"
        },
        "drumEcho": {
          "description": "Chance that a delay / dub throw uses DRUM ECHO (magnetic drum, 4 heads) instead of the tape delay.",
          "type": "number"
        },
        "riser": {
          "description": "Chance the FX part is a RISER (default 0.25): noise through a band- / high-pass filter that a synced saw opens over 8 or 16 bars, with the volume rising.",
          "type": "number"
        }
      },
      "additionalProperties": false
    },
    "atmos": {
      "type": "object",
      "properties": {
        "texture": {
          "description": "Chance the atmosphere is a TEXTURE layer (crackle, tape hiss, dust, drops).",
          "type": "number"
        },
        "hiss": {
          "description": "Chance of a quiet noise hiss atmosphere.",
          "type": "number"
        }
      },
      "additionalProperties": false
    },
    "lead": {
      "type": "object",
      "properties": {
        "wobble": {
          "description": "Chance of a slow LFO on the lead oscillator pitch (analogue instability).",
          "type": "number"
        },
        "dissonance": {
          "description": "Chance of semitone steps in the lead riff (5th -> minor 6th): darker, edgier techno riffs.",
          "type": "number"
        },
        "phrase": {
          "description": "Lead melody algorithm: psy, electro, techno, acid, melodic, dub, techhouse.",
          "type": "string"
        },
        "voice": {
          "description": "Lead sound recipe: psy, techno, electro, berlin, techhouse, dub, melodic, stab.",
          "type": "string"
        },
        "chordArp": {
          "description": "Chance the lead plays through its own CHORD ARP (arpeggio from the shared progression).",
          "type": "number"
        },
        "acid": {
          "description": "Chance of an ACID VOICE lead.",
          "type": "number"
        },
        "wavetable": {
          "description": "Chance of the hypnotic WAVE VCO lead: velocity -> wave position, half-speed 8-step sequence -> bank, slow LFO -> ADSR attack / decay, no filter, reverb on the voice.",
          "type": "number"
        },
        "ostinato": {
          "description": "Chance the lead riff is NOT moved by the chord progression (ostinato: the same riff over changing chords).",
          "type": "number"
        },
        "anacrusis": {
          "description": "Chance of a 2-3 note rising pick-up at the end of the phrase into its first note.",
          "type": "number"
        },
        "syncopate": {
          "description": "Chance that some lead notes on the beat move one 16th earlier (syncopation).",
          "type": "number"
        },
        "contrary": {
          "description": "Chance the lead moves against the chord roots (contrary motion: roots fall, melody rises).",
          "type": "number"
        },
        "growl": {
          "description": "Chance of a GROWL lead.",
          "type": "number"
        },
        "scream": {
          "description": "Chance of SCREAM stabs / hoovers.",
          "type": "number"
        },
        "midVoice": {
          "description": "Chance of the combinatorial mid voice (non-harmonic styles).",
          "type": "number"
        },
        "synthOctave": {
          "description": "Octave range (semitones) of the fallback synth stab.",
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 2,
          "maxItems": 2
        },
        "acidStab": {
          "description": "Chance the lead is an ACID VOICE used for rare resonant stabs on its own sequencer: 1-6 hits per loop, 2-4 notes with one wide jump, no slides, often an odd 6-12 step loop.",
          "type": "number"
        },
        "analog": {
          "description": "Chance of an analog mid voice: one of five dark types (distorted two-osc cloud, 3-osc chord stab, pluck with pitch zap, noise + tone, low FM tone) with drive, ping-pong echo and a big reverb send.",
          "type": "number"
        },
        "cell": {
          "description": "Techno lead phrase only: chance of a 'cell line', a dense 16th line built from a 5-7 note cell with wide jumps that rotates through a rhythm mask, with about 12 % quiet ghost notes.",
          "type": "number"
        },
        "cellLayer": {
          "description": "When a cell line already exists: chance a further LEAD part plays the same cell sequencer with a second voice (two machines on one line).",
          "type": "number"
        },
        "cellOdd": {
          "description": "Chance the cell line has an odd length (3, 5, 6, 7, 10 or 15 steps) against the straight kick (default 0.3).",
          "type": "number"
        },
        "cellSend": {
          "description": "Master reverb send of the cell-line pluck voice (default [0.45, 0.65]).",
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 2,
          "maxItems": 2
        },
        "cellVoice": {
          "description": "Chance the cell line gets its own pluck voice: two detuned saws, a low-pass opened by each note, short envelope, ping-pong echo. A second layer is an octave up and band-passed.",
          "type": "number"
        },
        "dubStab": {
          "description": "Chance the lead is a DUB STAB on its own sequencer: 1-3 chord hits per bar through a slowly sweeping filter, with long echo and lots of reverb.",
          "type": "number"
        },
        "dubSwell": {
          "description": "With lead.dubStab: chance of a rising swell of the same chord 3-4 steps before each stab, cut off on the hit like a reverse reverb (default 0.15).",
          "type": "number"
        },
        "legato": {
          "description": "Chance that a LEAD or CHORD with a holding envelope (ADSR / LPG on GATE) gets longer notes: STEP SEQ GATE LEN 0.6-0.9, or 0.98-1 for legato so neighbouring notes join without retriggering (default 0.55).",
          "type": "number"
        },
        "modular": {
          "description": "Chance the LEAD is a modular voice (the same recipe as modular.p, but only for the lead, checked first) (default 0).",
          "type": "number"
        },
        "modular3": {
          "description": "Chance the LEAD is a high 3-step saw pluck: VCO -> low resonant VCF with its own envelope -> VCA, slow pitch drift, and a 3-step loop that drifts against 4/4 (default 0).",
          "type": "number"
        },
        "rich": {
          "description": "Chance of the rich layered lead: a core (COMPLEX OSC with FM / fold, synced pair, unison or ring mod), a sub or octave layer, a shaper, a VCF with its own envelope and 1-3 movement sources (default 0).",
          "type": "number"
        },
        "richBite": {
          "description": "Character of the rich lead (lead.rich), 0..1: 0 soft and dark, 1 biting, with a more open filter, more resonance, drive and fold, shorter envelopes and less echo (default 0).",
          "type": "number"
        },
        "articulation": {
          "description": "Note articulation weights [pluck, stab, sustain, swell]: pluck and stab use a short or medium decay envelope; sustain holds the note while the gate is open (ADSR, long gates, separate filter envelope); swell fades in slowly.",
          "type": "array"
        }
      },
      "additionalProperties": false
    },
    "mix": {
      "type": "object",
      "properties": {
        "parallelDist": {
          "description": "Chance a percussion / lead / chord part gets parallel distortion (high-passed, mixed under the dry sound).",
          "type": "number"
        },
        "superSend": {
          "description": "Chance a part bursts into a big delay + reverb once every 8 or 16 bars (FX super send).",
          "type": "number"
        },
        "db": {
          "description": "Level offsets in dB per role, e.g. {\"BASS\": 4, \"PAD\": -12}.",
          "type": "object",
          "properties": {},
          "additionalProperties": {
            "type": "number"
          }
        },
        "sidechain": {
          "description": "Chance the bass (and drones at 60 %) duck under the kick.",
          "type": "number"
        },
        "sidechainDepth": {
          "description": "Max ducking depth.",
          "type": "number"
        },
        "duckPads": {
          "description": "Pads and chords duck too.",
          "type": "boolean"
        },
        "kickPunch": {
          "description": "Chance of a transient shaper on the kick.",
          "type": "number"
        },
        "percPunch": {
          "description": "Chance of a transient shaper on percussion / claps.",
          "type": "number"
        },
        "eq": {
          "description": "Chance of a mix EQ (low cut, mud cut, air) on parts without lows (1 = always).",
          "type": "number"
        },
        "eqAir": {
          "description": "Mix EQ air shelf (dB).",
          "type": "number"
        },
        "highpass": {
          "description": "High-pass parts without lows at ~150 Hz.",
          "type": "boolean"
        },
        "muteBlocks": {
          "description": "Chance of mute blocks (parts drop out for bars).",
          "type": "number"
        },
        "answerBar": {
          "description": "Chance that bar B answers bar A in 2-bar phrases.",
          "type": "number"
        },
        "looseDrums": {
          "description": "Hats / percussion hits have a small chance to drop (less static).",
          "type": "boolean"
        },
        "varyBars": {
          "description": "Hats / percussion vary every bar (techno).",
          "type": "boolean"
        },
        "spice": {
          "description": "Multiplier for 'spices' (granular, morph, shift, echoes).",
          "type": "number"
        },
        "auditionBars": {
          "description": "Auto-mix: how many bars the level check measures (default 2). Raise it for slow, sparse layers.",
          "type": "number"
        },
        "auditionWarm": {
          "description": "Auto-mix: bars the level check plays before measuring, so slow attacks and echoes can build up (default 1).",
          "type": "number"
        },
        "brightLift": {
          "description": "Auto-mix brightness multiplier: dull PAD / CHORD / LEAD / ATMOS / DRONE parts get their filters, reverb and delay tone opened until they reach a target high-frequency share. 1 = normal, 0 = parts stay dark (default 1).",
          "type": "number"
        },
        "duckMore": {
          "description": "Chance that LEAD, CHORD, PERC and PAD parts that are not already sidechained duck lightly under the kick (about 1 dB). Never in ambient styles or without a kick (default 0.55).",
          "type": "number"
        },
        "hatAir": {
          "description": "Chance a mono HAT / CYMBAL gets an EQ: low cut around 500 Hz, a 3-6 dB mid dip and a +3-6 dB high shelf around 5-7 kHz, for brighter hats instead of more mids (default 0).",
          "type": "number"
        },
        "kickMargin": {
          "description": "Auto-mix: dB the kick's loudest moment must sit above the combined level of all other parts; if it doesn't, the others are turned down by up to 7 dB. Lower = denser mix (default 10, 0 = off).",
          "type": "number"
        },
        "send": {
          "description": "Reverb send per role as a range, e.g. {\"HAT\": [0.18, 0.36], \"PAD\": [0.6, 0.9]}; overrides the recipe's send (for LEAD only when the lead recipe set no send of its own).",
          "type": "object",
          "properties": {},
          "additionalProperties": {
            "description": "[from, to] or one number"
          }
        },
        "target": {
          "description": "Exact auto-mix level per role in dB relative to the kick's loudest moment (7 dB is assumed when there is no kick), e.g. {\"HAT\": -12, \"PAD\": -14}; the part is held within 1.5 dB of it, replacing the role's default window and mix.db.",
          "type": "object",
          "properties": {},
          "additionalProperties": {
            "type": "number"
          }
        }
      },
      "additionalProperties": false
    },
    "clap": {
      "type": "object",
      "properties": {
        "fracture": {
          "description": "Chance of a FRACTURE particle clap.",
          "type": "number"
        },
        "models": {
          "description": "Weights of the CLAP module's sound models (MODEL 0, 1, 2 ...); 0 excludes a model. Default mixes all models."
        },
        "analog": {
          "type": "object",
          "properties": {
            "p": {
              "description": "Chance of the analog ACLAP.",
              "type": "number"
            },
            "send": {
              "description": "ACLAP reverb send (otherwise random 0.08-0.22).",
              "type": "number"
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "hat": {
      "type": "object",
      "properties": {
        "kinds": {
          "description": "METAL hat rhythms to pick from: 0 all 16ths, 1 offbeat open, 2 8ths + ghosts, 3 without the 1st 16th, 4 offbeat + 'a', 5 16ths with 'a' accent, 6 16ths with gaps.",
          "type": "array"
        },
        "models": {
          "description": "Weights of the HATS module's sound models (MODEL 0, 1, 2 ...); 0 excludes a model. Default mixes all models."
        },
        "combo": {
          "description": "Chance the hat is a combinatorial metal voice with a random source, envelope and rhythm (default 0.35).",
          "type": "number"
        },
        "openLayer": {
          "description": "Chance a closed sequenced hat gets a quieter open layer on the offbeats, when the patch has no other hat yet (default 0.3).",
          "type": "number"
        },
        "metalSeq": {
          "description": "Chance of the METAL + STEP SEQ hat (otherwise HATS / samples).",
          "type": "number"
        },
        "psyOrder": {
          "description": "First hat = open offbeat, second = closed 16ths (psytrance).",
          "type": "boolean"
        },
        "offbeat": {
          "description": "Chance that a simple hat plays offbeats (otherwise 16ths).",
          "type": "number"
        },
        "types": {
          "description": "Simple hat sources, e.g. [\"HATS\", \"SAMPLER\"].",
          "type": "array"
        },
        "density16": {
          "description": "Probability range of 16th hats.",
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 2,
          "maxItems": 2
        },
        "send": {
          "description": "Hat reverb send (otherwise 0.05).",
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 2,
          "maxItems": 2
        },
        "tapeEcho": {
          "description": "Chance of hats through a tape echo.",
          "type": "number"
        },
        "metal": {
          "type": "object",
          "properties": {
            "tone": {
              "description": "METAL hat TONE.",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "post": {
              "description": "Extra METAL settings applied in order: {\"param\": \"DECAY\", \"closed\": [..], \"open\": [..]} or {\"param\": \"TONE\", \"range\": [..]}.",
              "type": "array"
            },
            "evenVelocity": {
              "description": "Even 16th velocity rise (hypnotic techno hats).",
              "type": "boolean"
            },
            "level": {
              "description": "METAL hat level [closed, open].",
              "type": "array"
            }
          },
          "additionalProperties": false
        },
        "hats": {
          "type": "object",
          "properties": {
            "tone": {
              "description": "HATS TONE.",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "modular": {
      "type": "object",
      "properties": {
        "p": {
          "description": "Chance that a LEAD / PERC / FX / ATMOS part is a modular voice: struck or complex source, pinged gate, 1-2 character effects, bar-length random loop plus free wander on the timbre (default 0).",
          "type": "number"
        },
        "mods": {
          "description": "Extra slow timbre modulation cables added at the end of generation (default 0).",
          "type": "number"
        },
        "ensemble": {
          "description": "Chance that a modular PERC part is a four-voice ensemble: one PERC 4 driven by two Euclidean rhythms, their LOGIC combination and modulated rotation (default 0.4).",
          "type": "number"
        },
        "parallel": {
          "description": "Chance a modular voice is split into parallel paths: dry, a character effect chopped by a stepped random VCA, and a space path (default 0).",
          "type": "number"
        },
        "feedback": {
          "description": "Chance a modular voice's audio modulates the hit chance of another modular voice's sequencer (default 0).",
          "type": "number"
        },
        "samples": {
          "description": "Weight of the sample-mangling source among modular voice sources (default 1; 0 = never).",
          "type": "number"
        },
        "wild": {
          "description": "Re-dials the modular voice's modules over wide ranges instead of the tame defaults."
        },
        "bodies": {
          "description": "In a modular voice with the CHOP sample source: chance the slice position is moved by the BODIES three-body module instead of a RANDOM loop (default 0.6).",
          "type": "number"
        },
        "chop": {
          "description": "Weight of the CHOP sample-slicer source among modular voice sources, against 2 / 2 / 1.5 / 1.5 / 1.5 for the others and modular.samples (default 2, 0.8 for a LEAD; 0 = never).",
          "type": "number"
        },
        "freeTrig": {
          "description": "When a CHOP modular voice (not LEAD) is driven by BODIES: chance it is triggered by body collisions (HIT / CROSS) instead of its sequencer, for a free rhythm that never repeats (default 0.35).",
          "type": "number"
        },
        "funcCycle": {
          "description": "Chance a looping FUNC generator (uneven rise / fall cycle) is added as a source for the slow timbre modulation cables. Higher freedom raises it towards 0.9 (default 0.6).",
          "type": "number"
        },
        "keyed": {
          "description": "Modular voices move their base pitch only by octaves / a fifth, so they stay in the style's key; otherwise the offset is a free, untuned amount.",
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "snare": {
      "type": "object",
      "properties": {
        "models": {
          "description": "Weights of the SNARE module's sound models (MODEL 0, 1, 2 ...); 0 excludes a model. Default mixes all models."
        },
        "analog": {
          "type": "object",
          "properties": {
            "p": {
              "description": "Chance of the analog ASNARE (otherwise samples / FM / noise snare).",
              "type": "number"
            },
            "tune": {
              "description": "ASNARE TUNE.",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "decay": {
              "description": "ASNARE DECAY.",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "snappy": {
              "description": "ASNARE SNAPPY.",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "tone": {
              "description": "ASNARE TONE.",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "send": {
              "description": "ASNARE reverb send.",
              "type": "number"
            },
            "echo": {
              "description": "ASNARE through a long delay (dub).",
              "type": "boolean"
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "metal": {
      "type": "object",
      "properties": {
        "models": {
          "description": "Weights of the METAL module's sound models (MODEL 0, 1, 2 ...); 0 excludes a model. Default mixes all models."
        },
        "level": {
          "description": "Combinatorial metal voice level [hat, cymbal].",
          "type": "array"
        },
        "send": {
          "description": "Combinatorial metal reverb send.",
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 2,
          "maxItems": 2
        },
        "body": {
          "description": "Chance each METAL module gets a strong BODY (0.15-0.8) instead of almost none (0-0.12), so hats and cymbals differ in more than pitch (default 0.6).",
          "type": "number"
        },
        "pitchEnv": {
          "description": "Chance each METAL module gets a pitch drop on the hit (P ENV 0.15-0.7) (default 0.3).",
          "type": "number"
        }
      },
      "additionalProperties": false
    },
    "cymbal": {
      "type": "object",
      "properties": {
        "metalVoice": {
          "description": "Chance of the combinatorial metal cymbal.",
          "type": "number"
        },
        "metal": {
          "description": "Chance of METAL ride / crash (1 = always, 0 = never).",
          "type": "number"
        },
        "types": {
          "description": "Fallback cymbal sources.",
          "type": "array"
        },
        "rhythm": {
          "description": "Fallback cymbal rhythm: techno, electro, dub, offbeat.",
          "type": "string"
        },
        "send": {
          "description": "Cymbal reverb send.",
          "type": "number"
        }
      },
      "additionalProperties": false
    },
    "perc": {
      "type": "object",
      "properties": {
        "click": {
          "description": "Chance of a short click / tick percussion.",
          "type": "number"
        },
        "fracture": {
          "description": "Chance of FRACTURE percussion.",
          "type": "number"
        },
        "loops": {
          "description": "Tom / metal percussion loops (hard groove, techno).",
          "type": "object",
          "properties": {
            "p": {
              "description": "Chance of a tom / metal loop.",
              "type": "number"
            },
            "poly": {
              "description": "Chance the loop has an odd length (3/5/7/12 steps).",
              "type": "number"
            },
            "dense": {
              "description": "Chance of a dense, unbroken loop.",
              "type": "number"
            },
            "bright": {
              "description": "Higher, shorter loop sounds.",
              "type": "boolean"
            },
            "carve": {
              "description": "When a percussion loop is built (perc.loops.p): chance it is the hypnotic one-note CARVE loop (two FM sines in key -> fold -> SIEVE or MORPH XY -> CARVE gate voice, accents every 3 / 5 steps, SPIRAL 1/16 echo). At most one per patch (default 0).",
              "type": "number"
            },
            "carveDrive": {
              "description": "Scales how hard the CARVE loop's accents (VEL -> CARVE DRIVE) overdrive the voice, 0..1 (default 1 = up to full DRIVE).",
              "type": "number"
            },
            "carveLevel": {
              "description": "Mixer level of the CARVE loop (default 0.62).",
              "type": "number"
            },
            "chance": {
              "description": "Chance a tom / metal loop sequencer gets STEP SEQ CHANCE 0.58-0.94, so some hits are skipped and the loop doesn't repeat mechanically (default 0).",
              "type": "number"
            }
          },
          "additionalProperties": false
        },
        "samples": {
          "description": "Chance of percussion / tom samples.",
          "type": "number"
        },
        "echo": {
          "description": "Percussion through a long delay.",
          "type": "boolean"
        },
        "modular": {
          "description": "Chance the styled PERC part is a modular percussion voice (exciter + resonant body in the low-mid register, timbre variation per hit, slow movement over bars), tried before the other percussion recipes (default 0.5).",
          "type": "number"
        }
      },
      "additionalProperties": false
    },
    "bell": {
      "type": "object",
      "properties": {
        "chance": {
          "description": "Chance (once per patch) that a bell-type voice - a struck resonator, FM bell or modal / string pluck with a long ring - may appear at all (default 0.2; techno family and industrial 0.12, dark 0.15). When it does, its material, brightness, decay, register and processing are picked from a wide range.",
          "type": "number"
        },
        "max": {
          "description": "Maximum number of bell-type voices in one patch (default 1).",
          "type": "number"
        }
      },
      "additionalProperties": false
    },
    "arp": {
      "type": "object",
      "properties": {
        "vary": {
          "description": "[chance, from, to]: CHORD ARP VARY \u2013 every other 8-cycle block swaps some arp steps with their neighbour (10-20 % keeps it alive).",
          "type": "array"
        },
        "density": {
          "description": "Arpeggio density.",
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 2,
          "maxItems": 2
        },
        "gate": {
          "description": "Arpeggio gate.",
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 2,
          "maxItems": 2
        }
      },
      "additionalProperties": false
    },
    "harmony": {
      "type": "object",
      "properties": {
        "progressions": {
          "description": "Chord progressions for HARMONY (scale degrees from 0), e.g. [[0, 5, 2, 6]].",
          "type": "array"
        },
        "bars": {
          "description": "Bars per chord to pick from.",
          "type": "array"
        },
        "colors": {
          "description": "Chord colour weights [7th, triad, 9th, sus4 -> resolve, add2, 11th] (HARMONY COLOR): deep house 7/9, techno m9 / add2, trance triads.",
          "type": "array"
        },
        "voiceLead": {
          "description": "Chance of voice leading: each chord voice moves to the nearest note of the next chord (inversions, no jumps).",
          "type": "number"
        },
        "stretch": {
          "description": "Chance that the chord before the return to the tonic lasts twice as long.",
          "type": "number"
        },
        "bassInv": {
          "description": "Per chord chance (not the tonic) that the bass plays the 3rd or 5th under the chord (inversion).",
          "type": "number"
        },
        "pedalBass": {
          "description": "Chance the bass stays on the root (pedal) while chords move.",
          "type": "number"
        }
      },
      "additionalProperties": false
    },
    "chordarp": {
      "type": "object",
      "properties": {
        "progressions": {
          "description": "Progressions for the shared CHORD ARP (non-harmonic styles).",
          "type": "array"
        },
        "types": {
          "description": "Chord types: 0 triad, 1 7th, 2 9th, 3 sus, 4 power.",
          "type": "array"
        },
        "octMax": {
          "description": "Max CHORD ARP octave.",
          "type": "number"
        },
        "gate": {
          "description": "CHORD ARP gate.",
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 2,
          "maxItems": 2
        }
      },
      "additionalProperties": false
    },
    "chord": {
      "type": "object",
      "properties": {
        "rhythm": {
          "description": "Chord stab rhythm: dub, house, melodic, techno, electro, offbeat.",
          "type": "string"
        },
        "rootStay": {
          "description": "Chance the second half-bar keeps the root.",
          "type": "number"
        },
        "rootMoves": {
          "description": "Root moves (semitones) for the second half-bar.",
          "type": "array"
        },
        "arp": {
          "description": "Chance the chord part is an arpeggiated chord.",
          "type": "number"
        },
        "dub": {
          "description": "Dub chord recipe: long chords chopped by a fast filter, dub throws.",
          "type": "boolean"
        },
        "motion": {
          "description": "Chance of movement on non-dub chords.",
          "type": "number"
        },
        "conversation": {
          "description": "Chance of call & response through FX: a SEND SEQ sends each chord hit to one of 4 FX chains (delay, flanger, granular crystal, dub echo + overdrive).",
          "type": "number"
        },
        "delay": {
          "description": "Delay chance on non-dub chords.",
          "type": "number"
        },
        "articulationDefault": {
          "description": "CHORD articulation weights [pluck, stab, sustain, swell] used when chord.articulation is not set (default [1, 1.4, 0.6, 0.2]: more stabs, fewer held chords).",
          "type": "array"
        },
        "articulation": {
          "description": "Note articulation weights [pluck, stab, sustain, swell]: pluck and stab use a short or medium decay envelope; sustain holds the note while the gate is open (ADSR, long gates, separate filter envelope); swell fades in slowly.",
          "type": "array"
        }
      },
      "additionalProperties": false
    },
    "pad": {
      "type": "object",
      "properties": {
        "weights": {
          "description": "Pad kind weights: soft, strings, pwm, dark, atmos, particles, swell.",
          "type": "array"
        },
        "harmony": {
          "description": "Chance of a pad that follows HARMONY (harmonic styles).",
          "type": "number"
        },
        "darkCluster": {
          "description": "Chance of a dark cluster pad.",
          "type": "number"
        },
        "send": {
          "description": "Pad reverb send.",
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 2,
          "maxItems": 2
        },
        "textureSend": {
          "description": "Texture pad reverb send.",
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 2,
          "maxItems": 2
        },
        "delay": {
          "description": "Pad delay chance.",
          "type": "number"
        }
      },
      "additionalProperties": false
    },
    "texture": {
      "type": "object",
      "properties": {
        "sendMax": {
          "description": "Upper bound of the texture reverb send.",
          "type": "number"
        }
      },
      "additionalProperties": false
    },
    "drone": {
      "type": "object",
      "properties": {
        "pump": {
          "description": "Weight of the kick-pumped drone movement.",
          "type": "number"
        },
        "modular": {
          "description": "Weight (not a chance, default 0) of the modular drone layer: saw + square 2 octaves down + white noise into a ~200 Hz low-pass opened by smoothed random. Other drone layers weigh 0.8-3.",
          "type": "number"
        }
      },
      "additionalProperties": false
    },
    "sound": {
      "type": "object",
      "properties": {
        "dark": {
          "description": "Darker sources and tones in textures and mid voices.",
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "mid": {
      "type": "object",
      "properties": {
        "filterHigher": {
          "description": "Mid-voice filter movement higher up (already filtered dub chords).",
          "type": "boolean"
        },
        "dubThrow": {
          "description": "Weight of dub throws on mid voices.",
          "type": "number"
        }
      },
      "additionalProperties": false
    },
    "macro": {
      "type": "object",
      "properties": {
        "bank2": {
          "description": "Chance a part's MACRO OSC uses a 2nd-bank model fitting the part (wavetable, swarm, noise, modal, string, kick, snare, hi-hat).",
          "type": "number"
        }
      },
      "additionalProperties": false
    },
    "filter": {
      "type": "object",
      "properties": {
        "chord": {
          "description": "Chance of a DUAL FILTER on chords.",
          "type": "number"
        },
        "bass": {
          "description": "Chance of a DUAL FILTER on the bass.",
          "type": "number"
        },
        "perc": {
          "description": "Chance of a DUAL FILTER on percussion.",
          "type": "number"
        },
        "mode": {
          "description": "DUAL FILTER recipe: techno (rhythmic resonant), dub (slow breathing LP), autowah.",
          "type": "string"
        },
        "morphFrames": {
          "description": "MORPH FILTER frames to pick from.",
          "type": "array"
        }
      },
      "additionalProperties": false
    },
    "delay": {
      "type": "object",
      "properties": {
        "divisions": {
          "description": "Delay time indices: 4 = 1/16., 5 = 1/8, 7 = 1/8., 8 = 1/4, 9 = 1/4.",
          "type": "array"
        },
        "dubTime": {
          "description": "Dub delay times.",
          "type": "boolean"
        },
        "tone": {
          "description": "Delay tone.",
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 2,
          "maxItems": 2
        },
        "wow": {
          "description": "Delay wow.",
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 2,
          "maxItems": 2
        },
        "pingPong": {
          "description": "Chance of ping-pong delay.",
          "type": "number"
        }
      },
      "additionalProperties": false
    },
    "soft": {
      "type": "object",
      "properties": {
        "maxDrive": {
          "description": "Max drive when traits.soft is on.",
          "type": "number"
        }
      },
      "additionalProperties": false
    },
    "master": {
      "type": "object",
      "properties": {
        "glue": {
          "description": "Chance of a glue compressor on the master.",
          "type": "number"
        },
        "width": {
          "description": "Chance of a stereo widener on the master.",
          "type": "number"
        },
        "clipper": {
          "description": "Chance of a master clipper.",
          "type": "number"
        },
        "clipperDrive": {
          "description": "Clipper drive.",
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 2,
          "maxItems": 2
        },
        "bender": {
          "description": "Chance of a BENDER (stutter / reverse) on the send.",
          "type": "number"
        },
        "reverbWidth": {
          "description": "Chance of a widener on the reverb return.",
          "type": "number"
        },
        "clipperCeil": {
          "description": "Master CLIPPER CEIL (output ceiling, default 0.85-0.95); only used when master.clipper adds the clipper.",
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 2,
          "maxItems": 2
        },
        "glueComp": {
          "description": "Exact settings for the master glue COMP (ratio, thresh, attack, release, makeup, mix); applied only when master.glueComp.ratio is set and master.glue adds the compressor.",
          "type": "object",
          "properties": {
            "attack": {
              "description": "Glue COMP ATTACK knob (0..1, default 0.3-0.45); low lets less of the kick transient through.",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "makeup": {
              "description": "Glue COMP MAKEUP gain in dB (default 2-3).",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "mix": {
              "description": "Glue COMP MIX, 0 dry .. 1 fully compressed (parallel compression, default 0.5).",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "ratio": {
              "description": "Glue COMP RATIO (x:1, default 2). Setting this key turns on all the master.glueComp.* overrides.",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "release": {
              "description": "Glue COMP RELEASE knob (0..1, default 0.2-0.3).",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "thresh": {
              "description": "Glue COMP THRESH in dB (default -18 to -14).",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            }
          },
          "additionalProperties": false
        },
        "outLevel": {
          "description": "OUTPUT module LEVEL after the master chain, i.e. how hard the rack drives the app's master GLUE (loudness / crest). Not set = the module default; set without a valid value = 0.62.",
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 2,
          "maxItems": 2
        },
        "pump": {
          "description": "When master.glue adds the glue COMP: chance it becomes a kick-keyed parallel pump (low threshold, fast release, no sidechain HPF) so the whole mix and reverb tails breathe 2-4 dB with the beat (default 0).",
          "type": "number"
        },
        "reverb": {
          "type": "object",
          "properties": {
            "types": {
              "description": "SKY REVERB types to pick from.",
              "type": "array"
            },
            "decay": {
              "description": "SKY REVERB decay.",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "tone": {
              "description": "SKY REVERB tone.",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "plainSize": {
              "description": "Plain REVERB size.",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "shimmer": {
              "description": "SKY REVERB SHIMMER on the master send (default 0.2-0.5). Keep it low (e.g. [0, 0.1]) so the rising tail does not ring long after parts are muted.",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "ambient": {
      "type": "object",
      "properties": {
        "on": {
          "description": "Turns on the AMBIENT generator: no dance parts, only slow sustained layers (pad bed, drone, sparse melody, cloud, texture) with their own slow modulation, long HARMONY chords, a narrower master and no global LFOs.",
          "type": "boolean"
        },
        "modes": {
          "description": "Mode weights [minor, dorian, major, lydian] for the ambient HARMONY (lydian = major scale from the 5th, tonic on IV).",
          "type": "array"
        },
        "bars": {
          "description": "HARMONY BARS (bars per chord) to pick from, one equally at random (repeat a value to weight it), e.g. [4, 8, 8, 8].",
          "type": "array"
        },
        "longChord": {
          "description": "Chance, for each chord of the progression, that it lasts twice as long (HARMONY DUR 2), so chords change every 4-16 bars.",
          "type": "number"
        },
        "colors": {
          "description": "HARMONY COLOR weights for ambient chords, same order as harmony.colors [7th, triad, 9th, sus4 -> resolve, add2, 11th].",
          "type": "array"
        },
        "maxLayers": {
          "description": "Most layers an ambient patch builds (default 5). Wanted parts are built in the order PAD, DRONE, LEAD, ATMOS, CHORD, FX, BASS until the limit is reached.",
          "type": "number"
        },
        "maxBusy": {
          "description": "Most 'busy' layers that play a stream of notes (LEAD, PERC, KICK, HAT) in an ambient patch (default 2). Slow layers do not count.",
          "type": "number"
        },
        "progressions": {
          "description": "Chord progressions per mode, e.g. {\"minor\": [[0, 5, 3, 4], ...], \"dorian\": ..., \"major\": ..., \"lydian\": ...}: lists of scale degrees, one picked per patch.",
          "type": "object",
          "properties": {},
          "additionalProperties": {
            "type": "array"
          }
        },
        "pad": {
          "type": "object",
          "properties": {
            "bodies": {
              "description": "Chance the pad bed's slow brightness / grain movement comes from BODIES (three-body orbit that never repeats) instead of WANDER.",
              "type": "number"
            },
            "breathSpace": {
              "description": "Chance the pad bed's SKY REVERB slowly breathes over minutes (a slow WANDER moves its DECAY and TONE).",
              "type": "number"
            },
            "drift": {
              "description": "Character weights [glassy near-triangle, warm detuned saw, dark wide pulse] when a pad layer uses the DRIFT recipe.",
              "type": "array"
            },
            "reverb": {
              "description": "SKY REVERB types to pick from for the pad bed (0 ROOM, 1 HALL, 2 PLATE, 3 SHIMMER, 4 CLOUD, 5 BLOOM), repeat to weight.",
              "type": "array"
            },
            "recipes": {
              "description": "Pad bed recipe weights [DRIFT, soft VCO, WAVETABLE, UNISON, BREATHE, bowed, FM, grain, wind].",
              "type": "array"
            }
          },
          "additionalProperties": false
        },
        "swell": {
          "type": "object",
          "properties": {
            "recipes": {
              "description": "Recipe weights for the second pad / CHORD swell layer, same order as ambient.pad.recipes.",
              "type": "array"
            },
            "shimmer": {
              "description": "Chance the second pad / CHORD 'swell' layer goes into a SHIMMER reverb (+octave) instead of CLOUD or BLOOM.",
              "type": "number"
            }
          },
          "additionalProperties": false
        },
        "drone": {
          "type": "object",
          "properties": {
            "kinds": {
              "description": "DRONE kind weights [DRIFT fifths, two VCOs, BREATHE chord on the root, COMPLEX OSC slow folding, bowed resonator, WAVETABLE + sub octave]. A kind from the same family as the pad bed is skipped.",
              "type": "array"
            }
          },
          "additionalProperties": false
        },
        "lead": {
          "type": "object",
          "properties": {
            "clock": {
              "description": "Melody clock weights [quarter notes, one per bar, free-running LFO not synced to the beat]. Slower clocks give rarer, longer notes.",
              "type": "array"
            },
            "voices": {
              "description": "Melody voice weights [LPG pluck, struck RESONATOR, slow bowed VCO, MACRO string]. RESONATOR and string count as bells (bell.chance) and fall back to the pluck when no bell is allowed.",
              "type": "array"
            },
            "osc": {
              "description": "With the LPG pluck melody voice: oscillator weights [VCO triangle / sine, soft WAVETABLE bank, COMPLEX OSC FM bell]. The FM bell needs the bell budget (bell.chance).",
              "type": "array"
            },
            "chanceSeq": {
              "description": "Chance the melody loop comes from CHANCE SEQ instead of RANDOM (5-13 step loop that slowly mutates). Not used with the bowed voice.",
              "type": "number"
            },
            "newPhrase": {
              "description": "With a RANDOM melody: chance a new loop is drawn on every chord change (HARMONY CHANGE -> RANDOM NEW). Otherwise the same loop keeps going over the changes.",
              "type": "number"
            },
            "penta": {
              "description": "Chance the melody QUANTIZER uses the pentatonic of the mode (fewer notes, no semitones) instead of the full scale.",
              "type": "number"
            },
            "bloom": {
              "description": "With the LPG pluck melody: chance the LPG slowly opens over a minute or more, turning plucks into held tones and then closing again.",
              "type": "number"
            }
          },
          "additionalProperties": false
        },
        "cloud": {
          "type": "object",
          "properties": {
            "looper": {
              "description": "Chance the ATMOS cloud is a LOOPER 'ghost loop' (records the melody / pad, plays it reversed or an octave down, 6-18 s) instead of grains or spectral smear.",
              "type": "number"
            },
            "spectral": {
              "description": "Chance the ATMOS cloud uses a SPECTRAL smear with shimmer reverb instead of GRAINS (+12 / +19 / +24). Ignored when the pad bed is already granular or spectral.",
              "type": "number"
            }
          },
          "additionalProperties": false
        },
        "send": {
          "type": "object",
          "properties": {
            "PAD": {
              "description": "Master reverb send for the ambient pad bed, second pad and CHORD swell layers (default [0.18, 0.3]).",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "DRONE": {
              "description": "Master reverb send for the ambient DRONE (default [0.06, 0.14]; the drone already carries its own space).",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "LEAD": {
              "description": "Master reverb send for the ambient melody (default [0.25, 0.4]).",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "ATMOS": {
              "description": "Master reverb send for the ambient cloud / looper layer (default [0.12, 0.25]).",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "FX": {
              "description": "Master reverb send for the quiet ambient tape-hiss TEXTURE layer (default [0.08, 0.18]).",
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "melody": {
      "type": "object",
      "properties": {
        "tracks": {
          "description": "Bass, lead, chord, atmos, FX, pad and drone sequences are moved onto tracks of one shared MULTI SEQ, like a real rack (one DRUM SEQ + one melodic sequencer). The music stays the same.",
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "resonator": {
      "type": "object",
      "properties": {
        "p": {
          "description": "Chance a non-drum part (BASS, LEAD, CHORD, PAD, PERC, FX ...) is a RESONATOR voice (struck, bowed or blown modal body, string or chord strings) playing that part's usual sequence (default 0).",
          "type": "number"
        }
      },
      "additionalProperties": false
    },
    "synth": {
      "type": "object",
      "properties": {
        "articulation": {
          "description": "Note-length weights for synth voices [pluck, stab, sustain, swell] (default [1, 1, 1.1, 0.45]). A part can override it with <part>.articulation, e.g. chord.articulation.",
          "type": "array"
        },
        "syncMod": {
          "description": "Chance a tempo-synced LFO (saw / tri / sine) wobbles a free filter CV input of a LEAD, CHORD or BASS (default 0.25).",
          "type": "number"
        }
      },
      "additionalProperties": false
    },
    "$schema": {
      "type": "string",
      "description": "Optional: path or URL of this schema, for editor autocomplete."
    }
  },
  "additionalProperties": false
}
