F D E  B I N A R Y

Watch electricity flow from the source, through logic gates, building a byte — which becomes a colour and a note.

Tip: switch to Manual, then click an input dot to flip it.
Inputs I0–I3
– – – –
Binary
00000000
Decimal
0
Hex
0x00
Note
–
Colour
hsl
ASCII character
–

What is happening on screen?

A power source sends pulses of electricity along the wires. They flow into 8 logic gates and out the other side as 8 bits — a single byte. That byte is then translated into a colour, a musical note, and an ASCII character. Each cycle the inputs change, so the byte — and everything derived from it — changes too.

1 · the circuit

2 · the cycle (≈ 3.4 s)

3 · byte → colour

The byte (0–255) is treated as a position on the colour wheel. The wheel runs 0°–360°, so we map the byte onto it:

hue = byte ÷ 256 × 360°  →  hsl(hue, 85%, 55%)

4 · byte → sound

Random byte values would sound dissonant, so we snap the byte to a pentatonic scale — a 5-note pattern (C, D, E, G, A) repeated across three octaves, giving 15 musical notes:

C3D3E3G3A3 C4D4E4G4A4 C5D5E5G5A5

index = floor(byte ÷ 256 × 15)  →  the frequency of that note is played for ~0.5 s on a triangle-wave oscillator (Web Audio API).

So low bytes give low notes (C3 = 130.81 Hz) and high bytes give high notes (A5 = 880 Hz).

5 · byte → ASCII character

Computers store text as numbers, using the ASCII table (American Standard Code for Information Interchange). Each character has a numeric code:

So the same byte that gives a colour and a note also stands for a character. Try Manual mode and aim for byte 65 — you'll see the ASCII card light up with 'A'.

why these choices?

The takeaway: inside a computer everything really is just bits. Pick a mapping, and a number becomes a colour, a sound, or a letter.