Bytebeat Composer

Bytebeat Composer

Example Formulas:

Thanks to @segual for the AI generator idea!

About Bytebeat

Bytebeat is a form of algorithmic music where a mathematical expression (usually a short C or JavaScript program) is repeatedly evaluated against an increasing timestamp variable (t), returning a byte value to be used as the audio output.

It was introduced in 2011 by Viznut in the YouTube video 'Bytebeat: Experimental music from very short C programs'. The simplicity of the concept contrasts with the often complex and interesting sounds that can be created.

Common operators in bytebeat expressions:

  • Arithmetic: +, -, *, /, %
  • Bitwise: &, |, ^, ~, >>, <<
  • Comparison: >, <, ==, !=, >=, <=
  • Variables: t (time), other custom variables you define
  • Math functions: Math.sin, Math.cos, Math.log, Math.sqrt, Math.abs, etc.
  • Short Math functions: sin, cos, log, sqrt, abs (shortcuts for Math.sin, etc.)
  • Variable definitions: var [name] = [expression]; (must come before main expression)

Achievements