Genres, mutation and evolution
A genre in claudius is a data file: the production knowledge of a style written down as tempo ranges, harmonic styles, forms, drum grammars, part writers, sounds, transitions and mix targets. The generator composes from it, the critic judges against it, and evolution mutates songs within it. This page covers all three.
The genres
claudius genres lists them:
| genre | BPM | swing | modes | master | kits used | ears listen for (and against) |
|---|---|---|---|---|---|---|
house | 120–126 | 0.50–0.56 | minor, dorian, major | −10 LUFS | 909 (45 %), 707 (10 %) | house music (techno, minimal, corporate pop, drum and bass) |
deep_house | 118–124 | 0.53–0.58 | minor, dorian, major | −11 | 909 (30 %), 808 (20 %) | house music (techno, minimal, lo-fi hip hop, jazz) |
techno | 126–134 | 0.50–0.52 | minor, phrygian, dorian | −9 | 909 (50 %), 808 (15 %) | techno music (house, minimal, drum and bass, dubstep) |
trap | 130–150 | 0.50–0.54 | minor, harmonic minor, phrygian | −9 | 808 (60 %) | trap beat (heavy-bass hip hop, lo-fi hip hop, dubstep, house) |
lofi | 70–90 | 0.56–0.63 | major, minor, dorian | −12.5 | 808 (30 %), acoustic (30 %) | lo-fi hip hop beat (jazz, heavy-bass hip hop, solo piano, trap) |
dnb | 170–176 | 0.50–0.51 | minor, dorian, phrygian | −8.5 | acoustic (30 %) | drum and bass music (dubstep, techno, house, trap) |
future_bass | 140–160 | 0.50–0.53 | major, minor | −9 | 808 (30 %) | future bass music (dubstep, corporate pop, trap, house) |
synthwave | 85–118 | straight | minor, dorian | −10.5 | 707 (40 %), 808 (20 %) | synthwave music (corporate pop, chiptune, house, ambient pad) |
trip_hop | 78–94 | 0.51–0.56 | minor, phrygian, dorian | −11 | acoustic (50 %), 808 (10 %) | trip hop music (lo-fi hip hop, heavy-bass hip hop, ambient pad, cinematic orchestral) |
big_beat | 124–138 | 0.50–0.54 | minor, mixolydian, phrygian, dorian | −8.5 | acoustic (45 %), 909 (20 %), 808 (10 %) | big beat breakbeat music with distorted drums (drum and bass, techno, rock with electric guitars, heavy-bass hip hop) |
electro_house | 126–130 | 0.50–0.52 | minor, dorian | −8 | 909 (50 %) | dirty electro house dance music with big synth leads (house, dubstep, techno, corporate pop) |
nu_disco | 112–124 | 0.50–0.56 | minor, dorian, major | −10 | acoustic (30 %), 707 (20 %), 909 (15 %) | disco music (house, corporate pop, synthwave, jazz) |
filter_house | 118–126 | 0.50–0.55 | dorian, minor, mixolydian | −9 | 909 (50 %) | french house music with a filtered disco loop (house, funk, techno, corporate pop) |
dance_pop | 116–128 | 0.50–0.52 | major, minor, dorian | −8.5 | 909 (30 %), 808 (20 %) | upbeat dance pop music (corporate pop, house, synthwave, future bass) |
neo_psychedelia | 96–122 | 0.50–0.55 | mixolydian, dorian, major, lydian | −10 | acoustic (70 %) | dreamy psychedelic pop music with phased guitars and organ (rock with electric guitars, indie pop, synthwave, funk) |
art_rock | 70–100 | 0.50–0.53 | minor, dorian, phrygian, harmonic minor | −10.5 | acoustic (70 %) | progressive rock music with piano, strings and synthesizers (rock with electric guitars, cinematic orchestral, indie pop, ambient pad) |
idm | 96–140 | 0.50–0.56 | lydian, dorian, minor, phrygian, major | −10 | none: synthesized | glitchy intelligent dance music with complex broken beats and bells (glitch hop, drum and bass, ambient pad, chiptune) |
dub_techno | 116–126 | 0.50–0.54 | minor, dorian, phrygian | −10.5 | 909 (30 %), 808 (20 %) | dub techno music with echoing chords (techno, minimal, ambient pad, house) |
boom_bap | 86–96 | 0.55–0.62 | minor, dorian, phrygian | −10 | acoustic (45 %), 808 (15 %) | boom bap hip hop beat (lo-fi hip hop, trap, jazz, funk) |
uk_drill | 138–146 | 0.50–0.53 | minor, harmonic minor, phrygian | −9 | 808 (50 %) | uk drill beat (trap, heavy-bass hip hop, dubstep, grime) |
dubstep | 138–142 | 0.50–0.52 | minor, phrygian, harmonic minor | −9 | 909 (30 %), 808 (25 %) | dubstep music (drum and bass, trap, electro house, techno) |
uk_garage | 130–136 | 0.58–0.66 | minor, dorian, major | −9.5 | 909 (35 %), 808 (25 %) | uk garage music (house, drum and bass, r&b, dubstep) |
jungle | 160–172 | 0.50–0.53 | minor, dorian, phrygian | −9.5 | acoustic (60 %) | jungle music (drum and bass, breakbeat, dubstep, reggae) |
afrobeats | 100–115 | 0.52–0.58 | major, minor, dorian | −9.5 | 808 (30 %), acoustic (30 %) | afrobeats music (dancehall, reggaeton, house, r&b) |
amapiano | 110–116 | 0.54–0.60 | minor, dorian, major | −10 | 909 (30 %), 808 (30 %) | amapiano music (deep house, afrobeats, house, jazz) |
reggaeton | 88–100 | 0.50–0.53 | minor, harmonic minor, dorian | −9 | 808 (50 %) | reggaeton music (dancehall, latin pop, trap, afrobeats) |
trance | 134–140 | 0.50–0.51 | minor, dorian, major | −9 | 909 (60 %) | trance music (techno, house, electro house, synthwave) |
neo_soul | 72–92 | 0.55–0.62 | dorian, minor, major | −11 | acoustic (60 %) | neo soul music (r&b, jazz, lo-fi hip hop, funk) |
alt_hip_hop | 76–98 | 0.54–0.60 | major, dorian, minor | −10 | acoustic (30 %) | alternative hip hop with lush jazz chords (neo soul, jazz rap, r&b, lo-fi hip hop, funk); layered (complexity 0.8) |
hip_hop | 84–100 | 0.50–0.54 | minor, harmonic minor, phrygian | −9.5 | none: synthesized | hip hop beat with heavy bass (boom bap, trap, lo-fi hip hop, r&b) |
rnb | 64–80 | 0.52–0.60 | minor, dorian, major, lydian | −10 | 808 (40 %), 909 (10 %) | r&b music (heavy-bass hip hop, lo-fi hip hop, jazz, corporate pop) |
funk | 96–116 | 0.52–0.60 | dorian, mixolydian, minor | −10 | acoustic (45 %), 707 (10 %) | funk music (jazz, heavy-bass hip hop, rock with electric guitars, house) |
tech_house | 124–128 | 0.50–0.56 | minor, dorian, phrygian | −8.5 | 909 (40 %), 808 (15 %), 707 (10 %) | tech house music (house, techno, minimal, drum and bass) |
ambient | 60–90 | 0.50–0.52 | major, lydian, dorian, minor | −14 | 808 (20 %) | ambient pad music (cinematic orchestral, solo piano, minimal, lo-fi hip hop) |
grime | 138–142 | 0.50–0.54 | minor, phrygian, harmonic minor | −9 | 808 (40 %), 909 (20 %) | grime music (dubstep, trap, heavy-bass hip hop, drum and bass) |
phonk | 130–145 | 0.50–0.54 | phrygian, minor, harmonic minor | −8 | 808 (70 %) | phonk music (trap, heavy-bass hip hop, dubstep, lo-fi hip hop) |
reggae | 66–84 | 0.56–0.64 | minor, major, dorian | −11 | acoustic (40 %), 808 (10 %) | reggae music (heavy-bass hip hop, jazz, funk, acoustic guitar) |
g_funk | 88–100 | 0.55–0.60 | dorian, minor, mixolydian | −10 | 808 (40 %) | west coast g-funk hip hop beat with a whining synth lead (funk, heavy-bass hip hop, boom bap, r&b) |
gangsta_rap | 84–96 | 0.53–0.58 | minor, phrygian, harmonic minor | −10 | acoustic (30 %), 808 (10 %) | hardcore gangsta rap beat with a dark piano loop (boom bap, trap, heavy-bass hip hop, cinematic orchestral) |
jazz_rap | 86–100 | 0.56–0.62 | dorian, minor, major | −11 | acoustic (50 %) | jazz rap hip hop beat with jazz samples and upright bass (jazz, boom bap, lo-fi hip hop, neo soul) |
chipmunk_soul | 80–96 | 0.52–0.56 | major, minor, dorian | −9.5 | acoustic (25 %), 808 (15 %) | soulful hip hop beat with sped-up soul vocal samples (boom bap, r&b, gospel, heavy-bass hip hop) |
crunk | 80–104 | 0.50–0.53 | minor, phrygian, harmonic minor | −8 | 808 (70 %) | crunk hip hop with booming 808s and loud synth stabs (trap, heavy-bass hip hop, electro house, dubstep) |
cloud_rap | 128–148 | 0.50–0.53 | minor, dorian, major | −10.5 | 808 (50 %) | cloud rap beat with dreamy hazy reverb pads (trap, ambient pad, lo-fi hip hop, synthwave) |
emo_rap | 130–170 | 0.50–0.53 | minor, dorian, major | −9 | 808 (60 %) | emo rap trap beat with a sad guitar loop (trap, rock with electric guitars, lo-fi hip hop, indie pop) |
rage | 150–170 | 0.50–0.52 | minor, phrygian, harmonic minor | −7.5 | 808 (50 %) | rage trap beat with loud distorted synth leads (trap, dubstep, electro house, heavy-bass hip hop) |
plugg | 140–160 | 0.50–0.52 | major, dorian, minor | −9.5 | 808 (50 %) | pluggnb trap beat with soft bells and lush chords (trap, r&b, lo-fi hip hop, future bass) |
ny_drill | 138–146 | 0.50–0.53 | minor, harmonic minor, phrygian | −8.5 | 808 (50 %) | brooklyn drill beat with sliding 808s and a dark choir (uk drill, trap, heavy-bass hip hop, cinematic orchestral) |
chicago_drill | 130–150 | 0.50–0.53 | minor, harmonic minor, phrygian | −8.5 | 808 (60 %) | chicago drill beat with menacing brass and bells (trap, uk drill, cinematic orchestral, heavy-bass hip hop) |
rnb_90s | 66–100 | 0.54–0.60 | major, minor, dorian | −10.5 | 808 (30 %), acoustic (20 %) | 90s r&b slow jam with electric piano and finger snaps (r&b, neo soul, funk, boom bap) |
new_jack_swing | 100–118 | 0.58–0.64 | minor, dorian, mixolydian | −10 | 808 (35 %), 707 (25 %) | new jack swing with a swung drum machine and synth stabs (funk, r&b, synthwave, dance pop) |
alt_rnb | 60–90 | 0.50–0.56 | minor, dorian, phrygian | −10.5 | 808 (50 %) | dark alternative r&b with atmospheric reverb and 808s (r&b, trap, ambient pad, neo soul) |
big_room | 126–130 | 0.50–0.51 | minor, phrygian, harmonic minor | −7.5 | 909 (40 %) | big room house music (electro house, trance, house, corporate pop) |
progressive_house | 124–128 | 0.50–0.52 | minor, major, dorian | −8.5 | 909 (50 %) | progressive house music with euphoric piano chords and big synths (trance, house, electro house, corporate pop) |
slap_house | 120–126 | 0.50–0.52 | minor, dorian, phrygian | −8 | 909 (35 %), 808 (20 %) | slap house music with a bouncy metallic bassline (house, tech house, electro house, future bass) |
hardstyle | 150–155 | straight | minor, harmonic minor, phrygian | −7 | none: synthesized | hardstyle music with a distorted kick and euphoric synths (trance, techno, electro house, dubstep) |
hard_techno | 145–155 | 0.50–0.51 | phrygian, minor, dorian | −7.5 | none: synthesized | hard techno music with a distorted pounding kick (techno, drum and bass, trance, dubstep) |
gabber | 170–190 | straight | minor, phrygian, harmonic minor | −7 | none: synthesized | gabber hardcore techno music with a heavily distorted kick (techno, drum and bass, hardstyle, trance) |
hyperpop | 140–170 | 0.50–0.52 | major, minor, mixolydian | −7 | 808 (40 %) | hyperpop music with distorted 808s and bright glitchy synths (trap, future bass, chiptune, corporate pop) |
jersey_club | 135–145 | 0.50–0.52 | minor, major, dorian | −8 | 808 (40 %) | jersey club music with bouncing triplet kick drums and vocal chops (trap, house, uk garage, future bass) |
afro_house | 120–124 | 0.52–0.56 | minor, dorian, phrygian | −9.5 | 909 (25 %), 808 (15 %) | afro house music with tribal percussion and a deep groove (house, afrobeats, tech house, minimal) |
melodic_techno | 120–126 | 0.50–0.52 | minor, dorian, phrygian | −9 | 909 (40 %) | melodic techno with arpeggiated synths (techno, trance, house, minimal) |
baile_funk | 126–136 | 0.50–0.53 | minor, phrygian, harmonic minor | −7.5 | 808 (60 %) | baile funk beat with booming 808 kicks and congas (reggaeton, trap, heavy-bass hip hop, dancehall) |
breakcore | 165–190 | 0.50–0.52 | minor, dorian, phrygian | −8.5 | acoustic (50 %) | breakcore music with frantic chopped amen breakbeats (drum and bass, glitch hop, jungle, dubstep) |
alt_rock | 100–140 | 0.50–0.52 | minor, dorian, mixolydian, major | −9.5 | acoustic (100 %) | alternative rock music with distorted electric guitars (grunge rock, punk rock, indie rock, heavy metal, pop rock) |
pop_punk | 150–190 | 0.50–0.51 | major, minor, mixolydian | −9 | acoustic (100 %) | pop punk rock music with fast drums and distorted guitars (punk rock, alternative rock, emo rock, pop rock, heavy metal) |
nu_metal | 88–108 | 0.50–0.54 | minor, phrygian, harmonic minor | −8.5 | acoustic (100 %) | nu metal rap rock music with heavy distorted guitars (heavy metal, alternative rock, heavy-bass hip hop, punk rock, industrial rock) |
The last twelve are the festival’s, the hard styles’ and the scenes of the last few years. Big room, progressive house
and slap house are the edm family, with “edm” one of big room’s other names (and electro house’s, future bass’s
and trance’s: song("edm") asks which). Hardstyle, hard techno and gabber are the hard dance family: their kicks
are always synthesized, never a kit’s, and distorted in their own lanes, folded for hardstyle’s ringing tail and
clipped square for gabber’s, with a drummer of their own who rolls the kick into the next phrase. Jersey club’s kick
plays its five-kick bounce (two quarters, two dotted eighths and an eighth) and bursts into triplets at a phrase’s
end; baile funk’s drums play the tamborzão, its low drum in five uneven hits under rim slaps and a higher hand drum;
breakcore chops a sampled break harder and faster than jungle does.
The ten after synthwave lean on effect chains in their profiles: trip-hop’s drums go through parallel compression and a crushed copy, and its delay feeds back harder in the breaks; big beat’s acid line opens its filter across the builds; filter house’s loop sweeps a resonant lowpass with the arrangement; art rock’s guitars turn distorted in its climaxes; IDM’s pads are gated harder as each groove goes on; dub techno’s chord echoes feed back and swell in the break, all of it values by section that follow the form.
The five after dub techno are built on their drums and their bass: boom bap’s sampled break under a chopped soul or jazz phrase, drill’s late snare and hats in threes over a sliding 808, dubstep’s wobble over a clean sub, garage’s two-step kick and shuffle, jungle’s chopped breakbeat under a deep sub. Each is close kin of a style the ears know well (lo-fi hip hop, trap, drum and bass, house), and its “against” list names that style, so its genre score runs lower than most: the ears often hear the family before the genre.
The last five bring grooves of their own: afrobeats’ clave, congas and shakers, amapiano’s log drum under a steady kick, reggaeton’s dembow, trance’s rolling bass and long breakdown, neo-soul’s laid-back live kit under ninth and eleventh chords.
The “against” list matters: the genre score is high only when a song reads as its genre more than as the styles it is usually confused with, and more than stock library music (corporate background music, children’s piano music and the like), which every genre is measured against.
Fusing genres
Any number of genres joined by + are one genre: trip_hop+idm or trip_hop+neo_soul+dub_techno+idm in song(),
claudius make --genre, new_song, remake, or Fused with in the studio’s New song dialog, its remakes of a
recording and Change the genre. genres::fuse makes two into one from their profiles:
| from the first genre | from the second |
|---|---|
| tempo, keys, harmony (three quarters of the time), forms, transitions, the mix and the master, what the ears listen for | the drum lanes, their kits, the drums bus, the drum levels, a quarter of the progressions |
| the parts | its first sound and its styles added to each part of the same role, and its parts of roles the first has none of, as optional parts in the sections with energy 0.6 or more |
The second genre’s lanes play in the first genre’s sections: a lane of the same name where that lane played, the others where most of the first genre’s drums played. Swing is the average of the two, humanize the larger, and the flaws either genre accepts are accepted. Sounding like the second genre no longer counts against the song: its query leaves the first genre’s list of confusions. More than two fuse one after another: the first two fuse, then the third fuses with them and plays the drums in place of the second, and so on, so that the first leads, the last plays the drums, and every one between lends its sounds, its styles, its parts and some of its progressions. Each takes a quarter of the progressions from those before it: the last has a quarter, the one before it three sixteenths, and the first keeps the largest share up to five genres. A fusion’s Apple Loops, its store genre and the demo’s sounds are the first genre’s. The Fusions recipes hear three of them.
What a profile contains
Each profile (crates/claudius/data/genres/*.json) has:
| field | what it decides |
|---|---|
family, aliases | the family the studio and claudius genres list it under (hip hop, house), and the other names, eras, scenes and artists a search finds it by (90s hip hop, golden age); new_song takes an alias no other genre has |
bpm, swing, humanize | tempo and feel ranges |
modes, harmony, markov, ext, bars_per_chord | keys, harmonic styles, how often a fresh Markov progression is written, chord extensions, chord lengths |
forms | the section plans, with layers, energies and flags; each song plays one its own way |
drums | the lanes: per-step hit probabilities and velocity ranges per variant, or a euclidean rhythm; the genre’s other grooves on a lane (alts: patterns a song plays instead of the template, each with its chance, so that one song’s hats run in sixteenths and another’s sit on the offbeats); drum voice parameter ranges; which Apple Loops one-shots may replace the voice; choke groups (open and closed hat) |
kits, kit_mix | which recorded drum machines the drums may be played on, and how often; how often a lane plays a kit of its own |
palette | for each role, how often a part keeps its own sounds, and which kinds of sound it draws from otherwise: synths, or the installed packs’ strings, brass, woodwinds, mallets, pianos, guitars and more. It draws only what the genre has a place for: the synths of its parts’ families, any synth pad for a pad, or the synths a role lists in synths; and of mallets, woodwinds and brass, whose sound pierces a mix, only those its synths stand in for and the instruments its parts name (or a role lists in instruments). The sounds of an era gone, the 80s FM and pulse-width presets, the string machine, an FM piano and General MIDI’s synth patches, it plays only where a part names one or the role is retro |
parts | bass, chords, pad, lead, arp, keys: their own presets and instruments, writing styles (one drawn for each song, a style listed twice drawn twice as often), registers (each song plays a part a few semitones higher or lower), density, voicing, and the chance a song leaves the part out; a part may double another (doubles, octave), playing its notes on a sound of its own, as a fuzzy synth bass an octave over an 808 |
loops | the Apple Loops a song may layer, by instrument, genre and descriptors |
sampling | the samples its songs are built on, from free online libraries: whether they are by default (by_default), and for a break, a phrase, a texture, a vocal chop and a bass note, the kinds of record to search for, what the ears should hear, how many to keep, how often a song plays one and re-chops it, how many semitones a phrase may be played up or down (pitch) and whether a voice in it is sped up with it (speeds_voices, chipmunk soul’s) or played at its own speed a little under the genre’s range rather than stretched (under, trip hop’s), its mix, the moves a phrase is treated with and how often (treat), and the layers it plays instead of |
transitions | risers, impacts, downlifters, reverse crashes, riser length |
mix | the loudness target, reverb and delay, bus and master chains, sidechain release, role level offsets; each song varies its reverb, delay, sends and colours |
query, alts | what the ears should hear, and its confusions |
accepted_flaws | flaws the ears may hear that are the genre’s sound, such as lofi’s hiss, so they do not count against it |
complexity | how layered its songs are when nobody says: 0.5, the genre as its profile writes it, unless it is a layered genre |
To add a genre or change one, drop a JSON file with the same fields into the claudius/genres folder of your
configuration directory (~/Library/Application Support/claudius/genres/ on macOS, ~/.config/claudius/genres/ on
Linux). A file whose name matches a built-in genre replaces it. A good start is a copy of the built-in file
closest to what you want.
Making songs
claudius make --genre techno # a new song, seeded from the clock
claudius make --genre trap --key "F# minor" --bpm 142 --seed 7 --stems
claudius make --genre deep_house --loops # built around an Apple Loops family
claudius make --genre lofi --synth-only # no recordings at all
claudius make --genre house --sample chop.wav # flip a recording into the song
In a script, song("trap", #{ seed: 7, bpm: 142, key: "F# minor" }) makes the same song, and the edits after it
apply on top. --bpm and --key change only the tempo and the key: the title, the form, progression A and the drum
patterns are the ones --seed 7 gives without them, except that a key in another mode moves the chords into it, as
key() does. The same genre, seed and options make the same song on any
machine, in the studio’s New as on the command line; the sample packs and Apple Loops installed change only which
recordings it plays.
How layered a song is
--complexity, from 0 to 1 (complexity in new_song and in a script’s song(), Layers in the studio’s New
song dialog), says how much plays at once. At 0.5, or when nobody says, a song is the genre as its profile writes it.
Above that, more of it layers up, each layer with a chance that grows to sure at 1:
- a pad holding the chords, in a genre whose songs have none, in the intro, breaks and outro and under the hooks;
- a counter-melody under the lead, sparser and lower, with it in the hooks and in its place in the verses;
- an arpeggio sparkling high over the hooks, quietly, through a delay;
- the harmony and the lead doubled on second instruments: the same notes, an octave up or in unison on another sound, 6 dB under and to the other side, and the bass an octave up through a high-pass and some drive, so that its harmonics carry it;
- a clap on the snare’s backbeats, a shaker on the sixteenths, and a percussion line, a conga (or a conga, bongo or clave from the library) in a euclidean rhythm, never a cowbell;
- in a song built on samples, the sampled break, texture, vocal chop and bass note it may play, and the drums a break stands in for, played over the break in the hooks.
Each comes in where the song lifts, its hooks and drops first (at 1 the verses too), so the song still builds. Below
0.5, down to 0, the song is thinned to its core: the parts a genre may leave out are left out, and so are the parts
and drum lanes that only colour a section (all but the bass, the first harmony part, the kick, the snare, the clap
and the hats), from its quieter sections most. The seed’s song is the same under its layers: its tempo, key, chords,
form and patterns do not move with the complexity. The history says what was layered (layered at complexity 0.90: chords doubled an octave up on bell; a clap on the snare; ...).
claudius make --genre neo_soul --complexity 0.9 # keys on keys, a counter-melody, a pad, a shaker
claudius make --genre techno --complexity 0.1 # the kick, the hats and the bass
A double is a part that plays another part’s notes on a sound of its own (doubles and octave in
part()), so it follows its part through edits, mutations and a new seed.
Mutation
A mutation is one edit a producer might try, chosen from 25 operators:
| area | operators |
|---|---|
| harmony | a theory-aware substitution in A or B (a chord a third away, extended or plain, a secondary dominant, a chord borrowed from the parallel mode, a suspension, a swap, a rotation); a new progression from one of the genre’s styles |
| drums | add, remove, nudge or re-accent one hit; regenerate a lane from the grammar; swap a lane’s sound (a recorded one-shot, or one synth parameter moved); move every lane to another kit, or back to synthesis |
| parts | rewrite a part (new seed); another style; another preset; tweak the patch (cutoff, resonance, release, drive, detune); move the register; change a lead’s density |
| mix | a track 1–3 dB up or down; a reverb or delay send; a sidechain depth; a pan; the reverb’s decay or the delay’s time |
| form | a track into or out of a section; a section 4 or 8 bars longer or shorter; toggle a section’s fills, gap, impact or filter sweep; another drum variant for a section |
| global | tempo by 1–4 BPM within the genre’s range; key by up to 5 semitones; swing; another Apple Loop |
Operators are not equally likely. The critic’s top four issues raise the weight of the operators that address them,
by 1 + 4 × the issue’s severity: band and width problems favour level, sound, kit, patch, space and pan edits; form
problems favour the form operators; a part:lead issue favours rewriting the lead; a weak genre reading favours
presets, styles, drum grooves and kits, tempo and harmony. Every mutation records what it did, and the song keeps the
list as its lineage.
Mutation edits what the generator writes: drum lanes, parts, loops and their mix. Pattern tracks are moved between sections and follow tempo, key and swing, but their code is never changed.
claudius mutate out/house-crimson-tide-9/blueprint.json -n 4 writes four mutated variants into mutations/ next
to it, each rendered and judged, with what changed. The MCP tool mutate tries a few variations of the open song and
keeps the best if it beats the current one.
Evolution
claudius evolve runs a (μ + λ) evolution: it starts from fresh songs (or --from a blueprint), and in each
generation the best songs so far are parents of new children, each made by one or two mutations or by a crossover of
two parents (drums and form from one, harmony and parts from the other) followed by mutations. A child identical to
one already heard is skipped. Each candidate is judged on a preview, the build-up into the first drop and the drop
(--preview-bars, 32 by default), and at the end the best are rendered in full.
| option | default | |
|---|---|---|
--start | 4 | fresh songs to start from |
--generations | 5 | |
--population | 4 | parents kept per generation |
--children | 8 | children per generation |
--preview-bars | 32 | bars auditioned per candidate |
--keep | 3 | best songs rendered in full at the end |
A short run, two generations of four children from two deep house songs:
claudius evolve --genre deep_house --seed 4 --start 2 --generations 2 --children 4 --keep 1
ears loaded in 3.7 s
evolving deep_house (2 start, 2 generations x 4 children, 32-bar previews, with ears)
g0-0 78.4 Velvet Orbit
g0-1 86.5 Hollow Harbor
g1-0 86.1 from g0-1: key Bb dorian -> Eb dorian
g1-1 86.4 from g0-1: form: clap out of build
g1-2 84.9 from g0-1: hat: sampled hh (tr909:hh) -> hat cut from 'Times of Plenty Open Hi-Hat' (Apple Loops); key Bb dorian -> F# dorian
g1-3 85.9 from g0-1: harmony A: i7 IV7 -> i7 iv7 v7 i7 (minor_soul); mix: shaker +2.0 dB (now +2.0)
generation 1: best 86.5
g2-0 85.1 from g0-1: crossover: drums and form of one parent, harmony and parts of the other; drums (sparse): re-accented a hat hit; key Bb dorian -> G dorian
g2-1 86.1 from g0-1: form: drop loses fills
g2-2 84.8 from g1-3: form: build now 4 bars; form: groove loses fills
g2-3 85.8 from g1-0: crossover: drums and form of one parent, harmony and parts of the other; mix: chords sidechain depth 0.28; mix: kick -1.8 dB (now -1.8)
generation 2: best 86.5
searched 10 candidates in 17 s; rendering the best 1 in full
#1 g0-1 (Hollow Harbor): preview 86.5, full song 86.1
A + marks a child that beats the best parent. In this short run none did, so the winner is a starting song,
g0-1, and its full render scores a little under its preview (the preview hears only the build and the first drop).
Small differences in score are within the critic’s noise, so treat a gain of half a point as a draw and listen.
Evolution is most useful from a weak start (a score in the 70s, like g0-0) or aimed at one problem, and less so for
polishing a song that already scores well.
The MCP tool evolve does the same on the open song; a generation takes 10 to 40 seconds.
Judging against references
--refs <files or folders> on make, script, evolve, render and judge adds a typicality score: how close the
song’s ears embedding is to a set of reference tracks you choose (at least two). It counts as a sixth score with the
same weight as genre and production, and an issue appears when the song is unlike the references.
What the score is
The total is a weighted mean: mix 0.3, arc 0.2, theory 0.2, and with the ears genre 0.15 and production 0.15 (plus references 0.15 when given). A high score means no measurable problems and a confident genre reading, not a hit. Optimising against the ears can please the models without the music getting better, which is earshot’s own warning; judge finished songs by ear.