← JIANT BYTE · M-VAVE FM-1
A page about formulas

t → sound

A formula reads the time and returns a sample. Three ways of writing it, three ways of sounding: bytebeat, floatbeat and funcbeat. Each one plays here, in the browser; edit it and listen.

01Bytebeat

Whole numbers, eight bits at a time. t counts samples (8000 a second); the formula's result is cut to 0..255 and that byte is the speaker's position. Shifts (>>) slow t down into rhythm, & | ^ mix the bits into melody: the grit is the arithmetic itself.

1▶8kBYTEBEAT
t
0
BITS
8
RATE
8000
OUT
0

Bytebeat was found and shared in 2011 by viznut (Ville-Matias Heikkilä) and the people who answered him with formulas of their own: one line of C that is a whole piece of music.

IN JIANT BYTEMATH › FORMULA, MODE BYTE: 48 bytebeats, CAOS to break them, and the beings on HOME that grow from their bits.

02Floatbeat

Fractions instead of bytes. The result is a number from −1 to 1, at full rate (44100 a second here), so the formula can hold sines, phases, envelopes and filters: tones, bells, pads and basses, clean or as dirty as you write them. Here t is in seconds and Math's functions are at hand (sin, exp, tanh, PI).

2▶44kFLOATBEAT
t (s)
0
RANGE
±1
RATE
44100
OUT
0

Floatbeat is where the timbres are: the same idea as bytebeat, with the room of real numbers.

IN JIANT BYTEMATH › MODE FLOAT (48 floatbeats), WAVE (two formulas as a wavetable, POS between them) and DRUM-W (each pad's tables are formulas).

03Funcbeat

A function of time that knows the tempo. Besides t (seconds) it gets b, the beats, so a formula can write steps, chords and envelopes in musical time; with several lines, return gives the sample. Helpers here: step(n) the step (n a beat), ph(n) where you are inside it (0..1), note(k) the frequency k semitones over A 110.

3▶120FUNCBEAT
BEAT
0
STEP
0
BPM
120
OUT
0

Funcbeat is the formula as a musician: the clock is the song's, so the same line can be a sound and a part.

IN JIANT BYTEFORM: two funcbeat states A and B, MORPH from one to the other by timbre, chords by the scale's degrees, RATE to 4 bars a step, and DRUMS fused into the formula. MATH's FUNC mode too.