Skip to content


Folders and files

Last commit message
Last commit date

Latest commit



24 Commits

Repository files navigation


Official 4klang repository

For discussion or feedback please use our #4klang channel on Discord


4klang is a modular software synthesizer package intended to easily produce music for 4k intros (small executables with a maximum filesize of 4096 bytes containing realtime audio and visuals).

It consists of a VSTi plugin example songs/instruments as well as an example C project showing how to include it in your code. Or if you dare to compile it yourself also the source code for the synth core and VSTi plugin.

The repository contains the folders:

  • 4klang_VSTi (the precompiled plugin(s) and example instruments/songs)
  • 4klang_source (the VSTi source as well as the needed 4klang.asm file for compilation in your exe)

The plugin project here is based on Visual Studio 2015, so that and above should compile out of the box. The only additional thing you need for compilation is YASM/vsyasm, so download and follow the instructions here to get it running:

4klang image


Some 4k intros using 4klang:


Up to now the 4klang package was available only via

Lately various subversions of 4klang emerged and i felt it might be a good idea to have a public repo reflecting that. So people can actively contribute, fix things i dont have time for or simply extend stuff.

Therefore the current branches available here are:


4klang development started in 2007 out of need and curiosity of how to write a tiny but flexible software synthesizer which can be used in 4k intros.

See this small writeup for more info


4klang was developed by
Dominik Ries (gopher) and Paul Kraus (pOWL) of Alcatraz.

Among the many sources of inspiration which lead to 4klang in its current state, here is a (probably not complete) list of the most influencial work by others:

  • 'Stoerfall Ost' by freestyle
To my knowledge the first 4k intro using the fpu stack as 4klang does, creating the best 4k soundtrack of its time. Conceptually i consider this to be the primary technological input as 4klang evolved around that idea of using the fpu stack. So big respect and greetings to freestyle, particularly muhmac whom i also had some helpful discussions with during 4klang development.

  • V2 by kb of frabrausch

Before 4klang i wrote my first synth as a V2 clone around 2004/2005 (as many people in the demoscene did actually). Again way ahead of its time in terms of size/quality and in addition with some really helpful articles by kb this was a key to understanding what you need for synth development for a start:

General source and for various synth module algorithms.