
poteto@poteto
浓缩成一段提示词: tibo.dog 的音乐是在 AudioWorklet 里实时合成的。芯片是 Game Boy 风格的合成器,有两个脉冲声部、一个 4-bit 波形声部、一个噪声声部和两个音效声部,底下垫着一层立体声 synthwave 伴奏:贝斯、pad、鼓、侧链闪避、乒乓延迟和混响。主线程把游戏事件转成音乐和音效提示,发给 worklet,由它渲染每一个采样。 旋律都是手写的步进音序 pattern 行,每一步一个 token,按 order list 播放。Pulse 1 唱主旋律。Pulse 2 弹琶音,就是以 60 Hz 循环的和弦,比如 C4:47 代表 C、E、G。波形声部弹副旋律,伴奏层负责贝斯线和 pad 和弦。每首歌都是 128 BPM,各个生物群系的曲子和第一首 boss 曲都是同一个主旋律主题的不同版本。强度会让旋律一层层进来,主旋律在 0.5 进,副旋律在 0.85 进。运行时不会生成或移调任何音符。 音乐在两个 deck 上播放。普通切歌是从小节线开始的两小节交叉淡化。一局游戏进行中,会有个 DJ 像现场 set 一样混歌。每首歌至少放十六小节,只在八小节乐句处开始混,两个 deck 重叠四小节。每首歌拆成分轨(lead、arp、counter、bass、pad),分轨在交换小节上换 deck。DJ 根据两首歌的匹配程度选混法。同一主题的两个版本会融合,叠上两首歌的 lead、arp 和 pad,同时 bass 和 counter 互换。共用同一小节网格的歌会对唱,重叠段里两条 lead 一起唱,伴奏则换成新歌。其他组合就用旋律混音,让旧歌的 lead 继续唱在新歌的伴奏上。lift 和 peak 这两首是 DJ 版本。每首保留自己的 lead,伴奏则重建成匹配当前生物群系的主题版本。
distilled into a prompt:
http://tibo.dog's music is synthesized live in an AudioWorklet. The chip is a Game Boy-style synth with two pulse voices, a 4-bit wave voice, a noise voice and two sound-effect voices, over a stereo synthwave bed: bass, pad, drums, sidechain ducking, ping-pong delay and reverb. The main thread turns game events into music and sound cues and posts them to the worklet, which renders every sample.
Melodies are written by hand as step-sequenced pattern lines, one token per step, played in an order list. Pulse 1 sings the lead. Pulse 2 plays the arp, a chord cycled at 60 Hz, such as C4:47 for C, E and G. The wave voice plays the counter-melody, and the bed carries the bass line and pad chords. Every song runs at 128 BPM, and the biome songs and the first boss song are versions of one main theme. Intensity brings the melody in by layers, with the lead entering at 0.5 and the counter at 0.85. Nothing generates or transposes notes at runtime.
Music plays on two decks. A plain song change is a two-bar crossfade that starts on a bar line. During a run, a DJ mixes songs like a live set. It holds each song for at least sixteen bars, starts a mix only on an eight-bar phrase, and overlaps the decks for four bars. Each song is split into stems (lead, arp, counter, bass, pad), and the stems trade decks on the swap bar. The DJ picks the mix by how closely the two songs match. Two versions of the same theme blend, layering both songs' lead, arp and pad while the bass and counter swap. Songs that share a bar grid duet, with both leads playing across the overlap while the backing changes songs. Any other pair gets a melody mix, which keeps the outgoing lead singing over the incoming backing. The lift and peak tracks are DJ takes. Each keeps its own lead, and its backing is rebuilt to match the current biome's version of the theme.