Groove404

How Groove404 makes music

Every note Groove404 plays comes from three things: rules written by hand for each style, numbers drawn at random, and the decisions you make while you play. There is no AI and no recording of anyone's music inside it, and nothing in it is transcribed from an existing track.

In short

  • Rules. Each style is a set of tables and rules written by hand: chord progressions, drum figures, bass figures, how a melody moves, which sounds fit. They describe a genre's conventions (four on the floor, a minor key, a rolling bass), not any particular track.
  • Chance. A few numbers from 1 to 9999 are drawn: the song (its mood), the harmony and the theme. A fixed formula turns each number into choices inside those tables. The same numbers always give the same choices.
  • You. What plays and when, the scenes, the Moves, the harmony, the knobs, the key and the tempo, the notes you play or write yourself. Groove404 writes the parts; the set is yours.

The two numbers

The song number is the mood. It picks the key (one of 12), the tempo (the style's tempo, give or take a few beats per minute) and a sound for each channel from the style's list. Bring the same number back and the same mood comes back.

The harmony number picks the chords: one chord path for each of the four Harmony pads. Without one, they come from the song number. New song keeps the mood and draws a new harmony and new parts, so the set flows in the same key and tempo; to change the mood too, choose it in New song's card, or pick a mood number or a style.

The theme writes the parts. Another number, new every time, writes the drum patterns, the bass line, the chords' rhythm and the melody, inside that mood. The same song number with another theme is the same mood with new parts.

Only those numbers are drawn at random, plus the scene a song starts on and a seed when you press Generate for a progression or an arrangement chains to a new song (that seed is saved with your decisions). Everything after that is a formula: a hash of the numbers picks from the tables, so two computers with the same numbers and the same decisions play the same notes.

What a style is

A style is a short list of facts and tables: a base tempo and swing, the chord paths for each Harmony mood, families of kick, hat and clap figures, bass figures, how many chord hits, whether it plays arpeggios, and the sounds that suit it. Groove404 comes with Techno, House, Dub Techno, Darkwave, Melodic, Chill Out, Chiptune and Euclid. In the Studio you can make your own from these parts, and set the rules of its melody (steps or leaps, appoggiaturas, sparse or busy, short or long notes, register, phrase forms) and the scales it draws from. The rules change; inside them, every note is still drawn from the numbers.

To write a style we study what defines the genre, the way a musician learns it by ear: the tempo, the kind of groove, how the harmony behaves, what sounds are typical. What goes into Groove404 are those general recipes, written as rules. No notes, chords or rhythms are transcribed from a track.

Harmony

  • The four Harmony pads are four moods with their own rules: Home starts on the home chord, Lift rises, Dark leans on darker chords, Warm goes to the brighter side (usually the relative major).
  • For each mood, each style has a few short paths written by hand, as steps of the scale and a chord colour (minor, major, seventh, ninth, suspended). The song number picks one and, in most songs, varies it: a chord can become its neighbour a third away, the whole path can change colour, or two long chords can split in four. The first chord, the length and the mood always stay: Warm never lands on the home chord, Dark never turns bright. The pad plays its chords open, over two octaves (the root and fifth below, the third and the colour notes an octave up), and moves to the nearest notes of each new chord, so its voices glide instead of jumping. A channel can also play a Sequence (a sixteenth-note figure on the chord's notes that changes one step per phrase) or a Drone (the home note and its fifth, held under the chords).
  • Chords are voiced in one register, every note different, sometimes inverted, so they stay close to each other.

Drums

Kicks, hats, claps and percussion come from families of figures written by hand for each style, each in a lighter and a busier version. Some come from Euclidean rhythms: a number of hits spread as evenly as possible over a cycle, a rule found in drumming traditions all over the world. Fills (rolls, builds, breaks, tom runs) follow rules per style.

Bass

The bass plays figures written for the style: where in the bar it hits and how far from the chord's root (mostly the root, the octave and the fifth; a few figures walk through the third). It usually stays out of the kick's way and keeps it simple: to lead into the next chord, the last note walks a step toward the next root (or lands on its fifth), and at the end of a phrase it may jump an octave.

Melody

Most leads are built from a one-bar motif, the way a melody is usually taught:

  • Its rhythm is drawn from short rhythmic cells for the first half of the bar and breathing cells for the second.
  • The motif repeats and answers itself in a phrase form: AAAB, ABAB, AABA, ABAC and others. The answer goes the other way and a little higher; the last bar closes with a long note.
  • Strong notes (on the beat, or long) land on notes of the chord. The notes between them move by step: passing notes when the chord tone changes, neighbour notes when it stays. A leap is followed by a step back. Never three equal notes in a row. The phrase ends on the home note.
  • Sometimes a strong note leans one step above the chord and resolves down (an appoggiatura), never at the end of a phrase.

These are rules of melody writing found in any textbook. Inside them, every choice of rhythm, contour and note is drawn from the numbers. The other leads (a long-note line, a syncopated one, one on a Euclidean rhythm) walk the scale and land on chord notes on the beat. The second version of the lead, the one the Peak brings, is born from the riff instead: the rhythm of the stabs, the top voice of the chords, closing on the home note.

Pads, stabs and arpeggios

Pads hold the chord in rhythms written for the style. Stabs hit the chord at positions from the style's table or a Euclidean rhythm. In Darkwave, Melodic and Chiptune they become an arpeggio: one note at a time, running in sixteenths through the chord (up, down or both, drawn per song), an octave below the lead in Darkwave and Melodic so the two don't tangle. Your own style chooses the octave and eighths, sixteenths or a pattern.

What you decide

Each channel's Busy thins it out or fills it in by rules (the kick and the 1 never go). The scenes say which parts play and in which version. Everything else is your playing: which parts come in and when, the Moves between them, the Harmony mood, the knobs and effects, the key and the tempo, re-rolls, the steps you write and the notes you play live. Each of these is recorded as a decision with its exact position in the music.

Sounds

Every sound that comes with Groove404 is synthesized while it plays: oscillators, noise, filters and envelopes, with settings written by hand. There are no recordings of instruments or of other people's music inside Groove404. The only recorded audio it plays is what you load yourself as samples, and that stays in your browser.

No AI, nothing on a server

Groove404 has no machine learning model and was not trained on music. The generator is ordinary code that runs in your browser; nothing is sent anywhere to make the music, and the site only serves the files of the app.

The certificate of origin

Every recording (●) saves a certificate next to the WAV: the exact version of Groove404, the style, the song number and theme, the key and tempo, every decision you made and when, what came from you (your samples, the notes you played and wrote), and a fingerprint of the audio. With it, the same version of Groove404 plays the set again note for note (SONGS → Replay a certificate). It shows how the track was made: by this process, played by you.

Making it yours

A song drawn by Groove404 is a starting point. The more you shape it, the more it is yours, and every decision you make while playing is recorded in the certificate. Ways to do it, from the quickest:

  • Play it your way. What comes in and out, and when, is the arrangement: thin it down to the kick and a stab, bring everything back at the peak. Moves, Density, the Color knobs and the XY on the road shape each passage. Pressing the same thing at another moment is another song.
  • Rhythm by numbers: the Steps panel. Each channel has Hits, Length and Rotate: spread 5 hits over 16 steps, or 7 over 12, and turn the pattern. Give channels different lengths (a 16, a 12, a 7) and they drift against each other, the polyrhythm that keeps a loop alive for minutes. The Euclid style builds whole songs this way.
  • Write your own steps. Right-click a channel's cycle on the road to edit its steps, and right-click a step for its chance, condition, note, repeat and locks. Keep what you wrote in the Save as row: Groove or Lead.
  • Your own harmony. Write chord progressions for the Harmony pads, or press Generate for new ones in the style, and keep the ones you like.
  • Your own sounds. In the Studio → Sounds, start from any sound or from an empty engine (analog, FM, wavetable, chip, drum), shape it, add movement with its LFOs and Save as new sound. Load your own samples (Load samples…); on the stage, a channel's sound card can chop one into slices, played by the steps or by a MIDI keyboard.
  • Movement over time. Record a knob gesture over a phrase with Rec and it keeps looping. For slow changes across minutes, turn the knob by hand (a filter opening slowly is a whole Berlin School track), or let scenes and Moves do it. Make your own Moves and XY effects in the Studio.
  • Your own style. In the Studio → Styles, choose the drum and bass figures, the chord paths for each Harmony pad, the scales, the rules of the melody (steps or leaps, appoggiaturas, phrase forms), the octave of the stabs and how the arpeggio runs. Every new song in it follows your rules.
  • Arrangements. In the Studio → Arrangements, put scenes in order, with how long each lasts and how it moves to the next, and chain songs into a set.
  • Notes you play. A MIDI keyboard plays the chosen channel, in the song's key. Live notes are yours, and the certificate counts them.
  • Your instruments. Put channels on your synths and drum machines (SETUP → MIDI → Your rig): Groove404 writes the parts, your gear gives them its sound.
  • Sample your gear. Sample, at the end of the sound pads, keeps the last bars of an input of your audio interface as a loop on a pad, in time with the song: a phrase you played on a synth becomes part of the set.

Questions

  • Is it AI? No. It's an algorithm: hand-written rules and numbers drawn at random, with you deciding the set.
  • Could it sound like an existing song? It never copies one, but music has a limited vocabulary: the same rules of harmony and melody that every musician learns can, by chance, line up with something that already exists, as they can for a person improvising. Measured over thousands of songs drawn by Groove404 in each style, two of them came out with the same melody and the same harmony less than once in a million times. Chord progressions and grooves on their own are shared by whole genres. If a melody reminds you of something, press New song or change the lead. Before you release a track, always consult a copyright lawyer.
  • Is the same number the same song? The same number is the same mood (key, tempo, chords, sounds). With the same theme and the same decisions, it is the same music, note for note.
  • Can a set be played again exactly? Yes: the Replay of a certificate sends the decisions, not the audio, to the same version of Groove404, and it plays the same notes.
  • Are the genres copied from artists? No. A genre is a shared language (a tempo, a kind of groove, a harmonic colour). Groove404's styles describe that language in rules; nothing in them is transcribed from a track.
  • Something else? Write to hello@orble.live. For playing and setup, see the Help.

Como o Groove404 faz a música

Toda nota que o Groove404 toca vem de três coisas: regras escritas à mão para cada estilo, números sorteados e as decisões que você toma enquanto toca. Não há IA nem gravação de música de ninguém dentro dele, e nada nele é transcrito de uma faixa existente.

Em resumo

  • Regras. Cada estilo é um conjunto de tabelas e regras escritas à mão: sequências de acordes, figuras de bateria, figuras de baixo, como uma melodia anda, que sons combinam. Elas descrevem as convenções de um gênero (o bumbo em quatro, o tom menor, o baixo rolando), não uma faixa em particular.
  • Sorteio. Alguns números de 1 a 9999 são sorteados: o da música (o clima), o da harmonia e o tema. Uma fórmula fixa transforma cada número em escolhas dentro dessas tabelas. Os mesmos números dão sempre as mesmas escolhas.
  • Você. O que toca e quando, as cenas, os Moves, a harmonia, os knobs, o tom e o andamento, as notas que você toca ou escreve. O Groove404 escreve as partes; o set é seu.

Os dois números

O número da música é o clima. Ele escolhe o tom (um de 12), o andamento (o do estilo, alguns batimentos por minuto para mais ou para menos) e um som para cada canal, da lista do estilo. Trazer o mesmo número de volta traz o mesmo clima.

O número da harmonia escolhe os acordes: um caminho de acordes para cada um dos quatro pads de Harmony. Sem ele, os acordes vêm do número da música. O New song mantém o clima e sorteia uma harmonia nova e partes novas, e o set segue no mesmo tom e andamento; para trocar o clima também, escolha isso no cartão do New song, ou um número de mood ou um estilo.

O tema escreve as partes. Outro número, novo a cada vez, escreve a bateria, a linha de baixo, o ritmo dos acordes e a melodia, dentro desse clima. O mesmo número com outro tema é o mesmo clima com partes novas.

Só esses números são sorteados, mais a cena com que uma música começa e uma semente quando você aperta Generate numa progressão ou um arranjo encadeia uma música nova (essa semente fica guardada com as suas decisões). Todo o resto é fórmula: um cálculo fixo sobre os números escolhe nas tabelas, e dois computadores com os mesmos números e as mesmas decisões tocam as mesmas notas.

O que é um estilo

Um estilo é uma lista curta de fatos e tabelas: o andamento e o swing, os caminhos de acordes de cada clima de Harmony, famílias de figuras de bumbo, chimbal e palma, figuras de baixo, quantos ataques de acorde, se toca arpejos e os sons que combinam com ele. O Groove404 vem com Techno, House, Dub Techno, Darkwave, Melodic, Chill Out, Chiptune e Euclid. No Studio você faz os seus a partir dessas peças e ajusta as regras da melodia (passos ou saltos, apojaturas, rala ou cheia, notas curtas ou longas, registro, formas de frase) e as escalas que ele sorteia. As regras mudam; dentro delas, cada nota continua sorteada a partir dos números.

Para escrever um estilo, estudamos o que define o gênero, como um músico aprende de ouvido: o andamento, o tipo de groove, como a harmonia se comporta, que sons são típicos. O que entra no Groove404 são essas receitas gerais, escritas como regras. Nenhuma nota, acorde ou ritmo é transcrito de uma faixa.

Harmonia

  • Os quatro pads de Harmony são quatro climas com regras próprias: Home começa no acorde de casa, Lift sobe, Dark se apoia em acordes mais escuros, Warm vai para o lado mais claro (quase sempre o relativo maior).
  • Para cada clima, cada estilo tem alguns caminhos curtos escritos à mão, como graus da escala e uma cor de acorde (menor, maior, sétima, nona, suspenso). O número da música escolhe um e, na maioria das músicas, o varia: um acorde pode virar o vizinho a uma terça, o caminho inteiro pode mudar de cor, ou dois acordes longos podem virar quatro. O primeiro acorde, o tamanho e o clima ficam sempre: o Warm nunca cai no acorde de casa, o Dark nunca clareia. O pad toca os acordes abertos, em duas oitavas (a fundamental e a quinta embaixo, a terça e as notas de cor uma oitava acima), e vai para as notas mais perto de cada acorde novo, então as vozes deslizam em vez de saltar. Um canal também pode tocar um Sequence (uma figura de semicolcheias nas notas do acorde, que muda um passo por frase) ou um Drone (a nota de casa e a quinta, segurando por baixo dos acordes).
  • Os acordes são vozeados numa mesma região, todas as notas diferentes, às vezes invertidos, para ficarem perto uns dos outros.

Bateria

Bumbo, chimbal, palma e percussão vêm de famílias de figuras escritas à mão para cada estilo, cada uma numa versão mais leve e numa mais cheia. Algumas vêm de ritmos euclidianos: um número de batidas espalhadas o mais por igual possível num ciclo, regra que aparece em tradições de percussão do mundo todo. As viradas (rolls, builds, breaks, toms) seguem regras de cada estilo.

Baixo

O baixo toca figuras escritas para o estilo: onde ele ataca no compasso e a que distância da fundamental do acorde (quase sempre a fundamental, a oitava e a quinta; algumas figuras passam pela terça). Ele costuma sair do caminho do bumbo e fica simples: para levar ao próximo acorde, a última nota anda um passo em direção à próxima fundamental (ou cai na quinta dela), e no fim de uma frase ele pode saltar uma oitava.

Melodia

A maioria dos leads é construída a partir de um motivo de um compasso, do jeito que melodia costuma ser ensinada:

  • O ritmo dele é sorteado entre células rítmicas curtas para a primeira metade do compasso e células de respiro para a segunda.
  • O motivo se repete e se responde numa forma de frase: AAAB, ABAB, AABA, ABAC e outras. A resposta vai para o outro lado e um pouco mais alto; o último compasso fecha com uma nota longa.
  • As notas fortes (no tempo, ou longas) caem em notas do acorde. As notas entre elas andam por passo: notas de passagem quando a nota do acorde muda, bordaduras quando ela fica. Um salto é seguido de um passo de volta. Nunca três notas iguais seguidas. A frase termina na nota de casa.
  • Às vezes uma nota forte se apoia um grau acima do acorde e resolve descendo (uma apojatura), nunca no fim da frase.

São regras de composição de melodia que estão em qualquer livro. Dentro delas, cada escolha de ritmo, de contorno e de nota é sorteada a partir dos números. Os outros leads (uma linha de notas longas, uma sincopada, uma num ritmo euclidiano) andam pela escala e pousam em notas do acorde nos tempos. A segunda versão do lead, a que o Peak traz, nasce do riff: o ritmo dos stabs, a voz de cima dos acordes, fechando na nota de casa.

Pads, stabs e arpejos

Os pads seguram o acorde em ritmos escritos para o estilo. Os stabs atacam o acorde em posições da tabela do estilo ou num ritmo euclidiano. No Darkwave, no Melodic e no Chiptune eles viram um arpejo: uma nota por vez, correndo em semicolcheias pelo acorde (subindo, descendo ou os dois, sorteado por música), uma oitava abaixo do lead no Darkwave e no Melodic, para os dois não se embolarem. Um estilo seu escolhe a oitava e colcheias, semicolcheias ou um padrão.

O que você decide

O Busy de cada canal o afina ou enche por regras (o bumbo e o 1 nunca saem). As cenas dizem que partes tocam e em que versão. Todo o resto é o seu tocar: que partes entram e quando, os Moves entre elas, o clima da Harmony, os knobs e os efeitos, o tom e o andamento, os sorteios de novo, os steps que você escreve e as notas que você toca ao vivo. Cada uma dessas coisas é registrada como uma decisão, com a posição exata na música.

Sons

Todo som que vem com o Groove404 é sintetizado na hora em que toca: osciladores, ruído, filtros e envelopes, com ajustes escritos à mão. Não há gravações de instrumentos nem de música de outras pessoas dentro do Groove404. O único áudio gravado que ele toca é o que você mesmo carrega como sample, e ele fica no seu navegador.

Sem IA, nada num servidor

O Groove404 não tem modelo de aprendizado de máquina e não foi treinado com músicas. O gerador é código comum, que roda no seu navegador; nada é enviado a lugar nenhum para fazer a música, e o site só entrega os arquivos do aplicativo.

A certidão de origem

Toda gravação (●) salva uma certidão ao lado do WAV: a versão exata do Groove404, o estilo, o número da música e o tema, o tom e o andamento, cada decisão sua e quando, o que veio de você (os seus samples, as notas que você tocou e escreveu) e uma impressão digital do áudio. Com ela, a mesma versão do Groove404 toca o set de novo, nota por nota (SONGS → Replay a certificate). Ela mostra como a faixa foi feita: por este processo, tocada por você.

Fazendo a música ser sua

Uma música sorteada pelo Groove404 é um ponto de partida. Quanto mais você a molda, mais ela é sua, e cada decisão que você toma tocando fica registrada na certidão. Jeitos de fazer isso, dos mais rápidos:

  • Toque do seu jeito. O que entra e sai, e quando, é o arranjo: afine até o bumbo e um stab, traga tudo de volta no pico. Os Moves, a Density, os knobs de Color e o XY na estrada moldam cada trecho. Apertar a mesma coisa em outro momento é outra música.
  • Ritmo por números: o painel Steps. Cada canal tem Hits, Length e Rotate: espalhe 5 batidas em 16 passos, ou 7 em 12, e gire o desenho. Dê tamanhos diferentes aos canais (um de 16, um de 12, um de 7) e eles se desencontram, a polirritmia que mantém um loop vivo por minutos. O estilo Euclid faz músicas inteiras assim.
  • Escreva os seus steps. Clique com o botão direito no ciclo de um canal, na estrada, para editar os steps dele, e com o direito num step para a chance, a condição, a nota, a repetição e os locks. Guarde o que escreveu na linha Save as: Groove ou Lead.
  • A sua harmonia. Escreva progressões de acordes para os pads de Harmony, ou aperte Generate para novas no estilo, e guarde as que gostar.
  • Os seus sons. No Studio → Sounds, parta de qualquer som ou de um motor vazio (analógico, FM, wavetable, chip, bateria), molde, ponha movimento com os LFOs dele e Save as new sound. Carregue os seus samples (Load samples…); no palco, o cartão do som de um canal pode cortar um deles em fatias, tocadas pelos steps ou por um teclado MIDI.
  • Movimento ao longo do tempo. Grave um gesto de knob ao longo de uma frase com o Rec e ele fica em loop. Para mudanças lentas, ao longo de minutos, gire o knob com a mão (um filtro abrindo devagar é uma faixa inteira de Berlin School), ou deixe as cenas e os Moves fazerem. Faça os seus Moves e efeitos de XY no Studio.
  • O seu estilo. No Studio → Styles, escolha as figuras de bateria e de baixo, os caminhos de acordes de cada pad de Harmony, as escalas, as regras da melodia (passos ou saltos, apojaturas, formas de frase), a oitava dos stabs e como o arpejo corre. Cada música nova nele segue as suas regras.
  • Arranjos. No Studio → Arrangements, ponha cenas em ordem, com quanto cada uma dura e como passa à seguinte, e encadeie músicas num set.
  • As notas que você toca. Um teclado MIDI toca o canal escolhido, no tom da música. As notas ao vivo são suas, e a certidão as conta.
  • Os seus instrumentos. Ponha canais nos seus sintetizadores e baterias eletrônicas (SETUP → MIDI → Your rig): o Groove404 escreve as partes, e o seu equipamento dá o som.
  • Sampleie os seus aparelhos. O Sample, no fim dos pads de som, guarda os últimos compassos de uma entrada da sua placa de som como um loop num pad, no tempo da música: uma frase que você tocou num sintetizador vira parte do set.

Perguntas

  • É IA? Não. É um algoritmo: regras escritas à mão e números sorteados, com você decidindo o set.
  • Pode soar como uma música que já existe? Ele nunca copia uma, mas a música tem um vocabulário limitado: as mesmas regras de harmonia e de melodia que todo músico aprende podem, por acaso, coincidir com algo que já existe, como acontece com uma pessoa improvisando. Medido em milhares de músicas sorteadas pelo Groove404 em cada estilo, duas delas saíram com a mesma melodia e a mesma harmonia menos de uma vez em um milhão. Progressões de acordes e grooves sozinhos são de gêneros inteiros. Se uma melodia lembrar outra, aperte New song ou troque o lead. Antes de lançar uma faixa, consulte sempre um advogado de direitos autorais.
  • O mesmo número é a mesma música? O mesmo número é o mesmo clima (tom, andamento, acordes, sons). Com o mesmo tema e as mesmas decisões, é a mesma música, nota por nota.
  • Dá para tocar um set de novo, igual? Sim: o Replay de uma certidão manda as decisões, não o áudio, para a mesma versão do Groove404, e ela toca as mesmas notas.
  • Os gêneros são copiados de artistas? Não. Um gênero é uma linguagem compartilhada (um andamento, um tipo de groove, uma cor harmônica). Os estilos do Groove404 descrevem essa linguagem em regras; nada neles é transcrito de uma faixa.
  • Outra coisa? Escreva para hello@orble.live. Para tocar e configurar, veja a Ajuda.