
poteto@poteto
프롬프트로 정리하면: tibo.dog 음악은 AudioWorklet에서 실시간으로 합성돼. 칩은 Game Boy 스타일 신스로, 펄스 2성부, 4-bit 웨이브 1성부, 노이즈 1성부, 효과음 2성부가 있고, 그 아래에 스테레오 synthwave 베드가 깔려: 베이스, 패드, 드럼, 사이드체인 더킹, 핑퐁 딜레이, 리버브. 메인 스레드가 게임 이벤트를 음악이랑 효과음 큐로 바꿔서 worklet에 보내고, worklet이 모든 샘플을 렌더링해. 멜로디는 전부 손으로 쓴 스텝 시퀀스 패턴 라인이고, 한 스텝에 토큰 하나, 오더 리스트 순서대로 재생돼. Pulse 1이 리드를 불러. Pulse 2는 아르페지오, 즉 60 Hz로 돌리는 코드야. 예를 들어 C4:47이면 C, E, G. 웨이브 성부는 카운터 멜로디, 베드는 베이스 라인이랑 패드 코드를 맡아. 모든 곡은 128 BPM이고, 바이옴 곡들이랑 첫 보스 곡은 하나의 메인 테마의 버전들이야. 인텐시티에 따라 멜로디가 레이어별로 들어오는데, 리드는 0.5, 카운터는 0.85에서 들어와. 런타임에 음을 생성하거나 조옮김하는 건 없음. 음악은 덱 두 개로 재생돼. 그냥 곡 바꿀 땐 마디선에서 시작하는 2마디 크로스페이드. 런 중에는 DJ가 라이브 셋처럼 곡을 믹스해. 곡마다 최소 16마디는 유지하고, 믹스는 8마디 프레이즈에서만 시작하고, 덱은 4마디 겹쳐. 곡마다 스템(lead, arp, counter, bass, pad)으로 나뉘어 있고, 스왑 마디에서 스템이 덱을 바꿔. DJ는 두 곡이 얼마나 잘 맞는지 보고 믹스 방식을 골라. 같은 테마의 두 버전이면 블렌드해서 두 곡의 lead, arp, pad를 겹치고 bass랑 counter는 교체. 마디 그리드가 같은 곡끼리는 듀엣으로, 겹치는 동안 리드 둘 다 부르고 반주만 다음 곡으로 바뀌어. 나머지 조합은 멜로디 믹스로, 나가는 곡의 리드가 들어오는 곡 반주 위에서 계속 불러. lift랑 peak 트랙은 DJ 테이크야. 각자 자기 리드는 그대로 두고, 반주는 현재 바이옴의 테마 버전에 맞게 다시 짜.
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.