Music
There are no audio files in Kosmokloss. The songs are chords, melodies and drum patterns written as text, and the sound effects are little recipes for a synth. Your browser plays it all as you listen.
The songs
Every floor and every kind of room has its own song, and the music fades into the next one as you walk into a new room.
How a song is written
Every song is a few lines of text. Time is counted in eighth notes: every bar has eight tokens, and bars are split by |. Pick a song above to see all of it here.
Title theme
124 bpm · Drums all the time · Melody: lead
| Bar | Chord | Melody |
|---|---|---|
| 1 | C | C5.E5G5C6-G5. |
| 2 | G | B5-A5G5D5-.. |
| 3 | Am | C5.E5A5C6-B5A5 |
| 4 | F | A5-G5F5G5-.. |
| 5 | C | E5.G5C6E6-D6C6 |
| 6 | G | D6-B5G5B5-A5G5 |
| 7 | F | A5.C6A5G5-F5E5 |
| 8 | G | D5-E5F5G5-.. |
bass: '1 . 1 5 1 . 5 8'
arp: '1 3 5 8 5 3 1 3'
drums: 'x h o h x x o h'
action: 'always'- chords
- One chord per bar, or two sharing it: C, Am, G7, Fmaj7…
- melody
- A note (C5, F#4, Bb5). - holds it, . is silence.
- bass · arp
- The chord's notes as numbers (1 root, 3 third, 5 fifth, 8 octave), repeated every bar. The arpeggio is written the same way.
- drums
- k kick, s snare, h hi-hat, x kick and hi-hat, o snare and hi-hat, a anvil. A song can also have a calm beat that plays all the time.
- action
- Two layers: the calm one (pad, bass and melody, and sometimes a soft beat, like the anvils in the forge) always plays. The drums and the arpeggio play all the time, or come in when a fight starts.
The instruments
Each instrument is a plain sound wave with a little shaping: how fast a note comes and goes, how soft it is, and whether it wobbles. Press to listen.
lead
Square wave
bell
Triangle wave
pluck
Square wave
flute
Triangle wave
glass
Sine wave
bass
Triangle wave
pad
Sawtooth wave
arp
Square wave
The drum kit
No samples here either: the kick is a falling tone, the snare and the hi-hat are noise through a filter, and the anvil is two bright tones that ring out.
The sound effects
All 80 sounds in the game, from creaking chests to snacks going nom nom, are little recipes for the same synth. The names are as they are in the code. Press to listen.