← lessons signal → light sound · signal · pixel · show

Introduction to
VJing

You already know the maths of sound. Now we turn it into light.

amber = incoming audio signal cyan = outgoing image vermilion = your controls green = no correct answer here
module 01 · touch it

Play first, explain later.

Below are two generators and a crossfader between them. Start the sound from the bar at the bottom, then drag the fader. Both are drawn in real time and both are listening: the rings to the bass, the grid to the treble.

outputclick the screen to start or stop
live render 1280 × 720
A · rings B · grid

Leave the fader in the middle. You are seeing both images at once, exactly like a DJ mixer. The rest of this page is about how that middle is built.

module 02 · what is a vj

What does a VJ do, and what do they not do?

A VJ builds the image live while the music is playing. Both halves of that sentence matter: live, and builds. A video editor works outside of time and can rewind. A motion designer hands over a finished file. A VJ produces a single unrepeatable stream and has to land it on a timeline that the sound in the room is setting.

A common confusion: real-time and reactive get treated as the same thing. They are not. The three boxes below run the same generator; the only difference is what drives it.

same generator, three ways of running itstart the sound, then turn the slider

1 · a clip

Pre-rendered, looping every 4 seconds. Turning the slider changes nothing, and neither does changing the music. This is a file.

2 · live, but deaf

Computed in real time, so the slider bites immediately. But it cannot hear. Every change has to come through your hand.

3 · live and connected

Same image, but some of its parameters are driven by the sound. You are still on the slider — you are just not working alone any more.

0.00

The third box is not better than the second. It just delegates part of the work. What you delegate and what you keep in your hand is the question this whole page ends on.

Where does this come from? A short lineage
  • 1920sAbstract film: Fischinger, Ruttmann, Richter. Frame-by-frame animation drawn in sync with music. Not live, but the idea is born here — that an image can have a language that belongs to music.
  • 1960sLiquid light shows. Oil, water and dye between two glass clock faces with a projector behind them. Fully live, fully manual, and the ancestor of today's feedback aesthetic.
  • 1980sVideo mixers and cheap effects units out of karaoke bars. For the first time there is a real crossfader between two picture sources.
  • 1990sRave. The visual stops being decor and becomes part of the set. The name VJ settles here.
  • 2000sThe laptop gets fast enough. Resolume, VDMX, Modul8. Clip-based thinking dominates.
  • 2010s →GPU generation becomes normal: TouchDesigner, Notch, shaders, live coding. Projection mapping and LED walls take the stage off the screen and onto architecture.
module 03 · image as number

There is no image on the screen. There are numbers.

On the sound side you had one array: samples laid out in time. 44,100 numbers a second, each one the position of the speaker cone at that instant. An image is the same trade made on a different axis. Instead of a row of numbers along time, a sheet of numbers across space. And video is that sheet, re-read sixty times a second.

So sound is 1D, an image is 2D, and what you send to a projector is 3D: x, y, t. This whole module exists to make one sentence concrete: every effect from here on is arithmetic on those numbers. The crossfader in module 01 was not a fancy transition; it ran mix(a, b, t) once per pixel. At 1280×720 that is 921,600 multiply-adds per frame.

one frame, how many numbersmove over the image — the loupe reads the actual pixels
source 128 × 72
xy· rgb· hex·
128 × 72
pixels
·
per frame · RGBA8
·
stream at 60 fps
·

Take the fader down to 16: you can count the numbers one by one, and all of them are there. Push it up and the kind of number does not change, only the count. High resolution does not make the image “smoother” — it just shrinks the piece of the world each number describes.

frame bytes = w × h × 4 // R, G, B, A — her biri bir bayt / one byte each
output pixels frame at 60 fps
LED wall 384 × 19273,728288 KB17 MB/s
1280 × 720921,6003.5 MB211 MB/s
1920 × 10802,073,6007.9 MB475 MB/s
3840 × 21608,294,40031.6 MB1.85 GB/s
useful at the venue An LED wall usually has fewer pixels than your phone. The expensive thing is not the wall, it is your render resolution: generating 4K and sending it to a 384 × 192 wall throws away 98% of the arithmetic. Ask the tech how many pixels it is, not how many metres.
how many steps in one number8 bit = 256 steps per channel
quantised same source
8 bit
Go down to 3 bit, then switch dither on.
steps per channel
256
possible colours
16.7 M
per pixel
24 bit

You have seen this before. In sound, bit depth decided how finely the cone's position could be written down, and the error came out as noise. Here the axis is different and the operation is identical: the value is rounded to the nearest available step, and the error comes out as a visible edge in the middle of a smooth gradient. It is called banding. Dither trades that edge for noise — exactly as in audio, because it is exactly the same operation.

notice A GPU works in float internally: 0.0 to 1.0, effectively continuous. Quantisation happens at the very end, when the frame is written to the framebuffer. So banding is not a fault in your shader, it is the limit of the output. Send a wide, smooth gradient to a big LED wall and it will show; the fix is a touch of noise added at the end of the shader.
inside one pixelthe same frame, split into its channels

R

The red channel. Left grey on purpose: this is not a colour, it is a number from 0 to 255.

G

The green channel. The eye is most sensitive to green, so this is the channel that dominates any brightness calculation.

B

The blue channel. Nearly empty wherever the image is red — the three numbers are independent of each other.

A · alpha

The fourth number. But it is not a colour, it is a weight: how much this pixel is there. It means nothing on its own — only inside a mix.

composited over the checker

The same frame laid over the checkerboard using alpha: out = a·src + (1−a)·back. In module 06 every blend mode turns out to be a variation of that one line.

Three grey images and a mask. What reaches the screen is just an agreement on top of them: send the first number to the red lamp, the second to green, the third to blue. Code that swaps the order — BGR against RGB — does not corrupt the image, it breaks the agreement; that is why your reds come out blue.

What knowing this actually changes
  • Resolution is a budget, not an aesthetic choice. The GPU's work per frame is directly proportional to pixel count. Going from 1080p to 4K runs the same shader four times as much. That is why a heavy feedback chain that flows at 720p collapses to 30 fps at 4K.
  • Pixels are not always square. Some LED panels and older video standards use a non-1:1 pixel aspect. When the image looks stretched, the fault is usually not in the render but in the assumed pixel aspect.
  • VRAM fills up with the same arithmetic. A decoded 4K frame is 31.6 MB. When you want eight 4K clips resident at once, the problem is not the disk, it is memory and bandwidth.
  • Alpha is not free. A fourth channel is 33% more bytes per frame. If you do not need alpha, not carrying it is a real saving.
  • And the real point: every module after this one — blend, feedback, mapping, motion — is nothing but reading numbers off this grid and writing new ones. No new magic arrives; only the arithmetic gets more interesting.
next The grid is in place. Module 04 adds the second axis: time. How many frames a second you actually need, what the eye fuses and what it separates, and why strobe is both the cheapest and the most dangerous tool in the rack.
module 04 · time and the eye

There is no motion. There is sampling in time.

Module 03 built the grid: x and y. The third axis is t, and the same thing happens there — we sample something continuous at fixed intervals. In sound we called it the sample rate; here it is called the frame rate. Both ask the same question: how many times a second am I looking, and what happens between the times I look?

One difference: sound has a reconstruction filter on the way out, and an image has your eye. Half of this module is about the limits of the machine — budget, vsync, aliasing — and half about the limits of the eye. The second half is the only place in this whole page where you can physically hurt someone in the room.

frame rate and budgetthe ruler lines are there to measure how far it jumps
motion 60 fps
display frames at 60 Hz · filled = new frame, faint = a repeat
60 fps
frame interval
·
cadence on 60 Hz
·
held on a 60 Hz output
·

Two separate things happen as you bring the fader down from 60. One is expected: the motion gets choppy. The other shows up in the strip — the generated frame stops changing while the display keeps showing the same picture again and again. On a 60 Hz output, 30 fps is clean (every frame lasts exactly 2 display frames), but 45 fps is not: frames get held 2, 1, 2, 1, and that unevenness reads as judder. Cinema spreads 24 fps over 60 Hz as 3:2 — that familiar stutter is exactly this.

frame interval = 1000 / fps // 60 → 16.7 ms · 30 → 33.3 ms · 24 → 41.7 ms
the thing that bites Going over budget does not cost you a little time, it costs you a whole display interval. If your frame takes 17 ms on a 60 Hz output you do not get 58 fps, you get 30: vsync waits for the next scan. That is why saving 3 ms on a heavy feedback chain is sometimes nothing and sometimes everything — it depends which side of the line you were on.
shutter: the filter before the samplingboth boxes run at the same frame rate

no shutter · a real-time render

Every frame is taken from an infinitely short instant. The object is sharp, but it teleports between frames. This is what a GPU does by default.

shutter open · like film

The same frame rate, one difference: the frame is collected over a duration. The object smears, and the motion reads as smoother with no extra frames.

12 fps
180°
exposure time
·

The cinema standard is 24 fps with a 180° shutter — an exposure of half the frame interval, 20.8 ms at 24 fps. The reason 24 fps works is not the number 24, it is that blur. Produce the same 24 frames with no shutter and the result does not look cinematic, it looks stroboscopic.

the sound-side equivalent The shutter is a low-pass filter applied before sampling — the exact counterpart of the anti-alias filter in digital audio. It softens information that changes too fast on the time axis, before that information ever reaches the sampler. A real-time render has no such filter, which is why fast motion folds between frames. Motion blur is not an “effect”, it is putting the missing filter back.
the wagon wheelthe pink dot is on the sampled frame, the faint ring is the true position
sampled motion 24 fps
1.20 r/s
6 spokes
24 fps
true speed
·
apparent speed
·
folding threshold
·

Raise the speed slowly. At some point the wheel looks frozen, and then it turns backwards. Nothing slowed down — the event rate of the spokes passed half the frame rate, and everything above that folded back inside the interval. Watch how much earlier the threshold arrives when you add spokes: each spoke is one more event that has to be counted every second.

threshold = fps / (2 × spokes) // Nyquist, sadece zaman ekseninde / Nyquist, on the time axis
recognise it? This is the same aliasing you heard in digital sound. There, a tone above 22 kHz folded back and was heard as the wrong pitch; here, a wheel above twelve turns a second folds back and is seen as the wrong direction. Same maths, different sense. In practice: fast spinning patterns, fine striped textures and quickly scrolling grids lie on screen — and the only thing that fixes that lie is a shutter, that is, motion blur.
strobe · the cheapest and most dangerous toolthis box is deliberately capped at 3 Hz
1.5 Hz

The box is small, the contrast is low and the ceiling is 3 Hz — because this page is a lesson, not a venue. The scale below shows why the line sits exactly there. If your system's “reduce motion” setting is on, this box does not flash at all.

0 – 3 HzThe widely used ceiling: at most three flashes a second. For flashes that fill a large part of the field, or that swing through saturated red, the limit is lower still.
3 – 15 HzRisk climbs quickly. This is the lower half of the range associated with photosensitive seizures.
15 – 25 HzThe peak risk band. The classic full-frame black-and-white strobe lands exactly here.
25 – 50 HzMost people still see the flicker, especially out of the corner of the eye: peripheral vision is more flicker-sensitive than the centre.
50 – 90 Hz +Fusion: the eye stops resolving separate flashes and reads continuous light. The brighter the source, the higher the threshold moves.
the rule at the venue Photosensitive epilepsy is rare but real, and the bigger the crowd the better the odds that someone in the room has it. The practical behaviour: do not go above three flashes a second; if you do, keep the area small, keep the contrast down, stay away from saturated red, and do not hold it long. Getting a warning on the door is the venue's job, but you are the one generating the signal. And one more thing: you get used to your own visuals at the console — the person in the room does not.
What knowing this actually changes
  • The projector or the wall has its own rate. You can generate 60 fps, but if the output runs at 50 Hz the surplus is thrown away. The question to ask before the set: what refresh is the output, and does my content divide into it evenly?
  • LED walls make brightness with PWM — they do not dim the light, they switch it on and off very fast. Your eye fuses that; a camera's shutter does not. Those bands rolling across the wall on Instagram are exactly this, and there is no fix other than raising the wall's PWM rate or matching the camera's shutter.
  • A low frame rate can be an aesthetic — but make it a decision. A layer locked to 12 fps is a choice; a frame rate that is falling is a fault. The audience cannot tell the two apart, and you have to.
  • Fast cutting and flashing are not the same thing. Hard cuts locked to the beat sit around 2 Hz and are fine; alternating the same content with a black frame is a 30 Hz strobe. The difference is one line of code, the consequence is not the same.
  • Motion blur is not free, but faking it is cheap: a feedback layer that carries a fraction of the previous frame does most of the visual work of true multi-sample blur. Module 07 looks at how that is built.
next The grid and time are in place. Module 05 looks at how three numbers become a colour: why RGB is a cube, why brightness mostly means green, and why a colour never looks the way you remember it once the room is dark.
module 05 · colour

Three numbers. The rest happens in the eye.

In module 03 we saw that a pixel holds three numbers, and that there is an agreement on top of them: the first number goes to the red lamp, the second to green, the third to blue. This module is the fine print of that agreement — because it has three traps in it: how the lamps add, how much each one counts as brightness, and the fact that the number itself is not proportional to light.

One thing to separate up front: a projector or an LED wall adds light. Paint works by absorbing part of the light that falls on it — subtraction. The “yellow + blue = green” you learned at school is a rule about paint and it does not hold here. Here, red + green = yellow — additive mixing.

three lampswhere they overlap, the numbers add
additive
255
89
26
try:
hex
·
rgb 0–255
·
hue · sat · value
·
luma
·

Press “brown”. It looks like nothing happens, because there is no brown lamp: brown is dimmed orange, and it only reads as brown when there is something brighter next to it. Grey is not a colour either, just the three lamps equal and low. The venue version of this: sending a “dark” colour to an LED wall alone in a dark room is not a thing — with no reference, there is no dark.

brightness mostly means greencolour · correct brightness · plain average
hue strip
120°
colour
·
luma (correct)
·
average (wrong)
·
Y = 0.2126 R + 0.7152 G + 0.0722 B // Rec.709

The middle strip undulates and the bottom one is flat. That gap is exactly the curvature of the eye: for the same number, green carries ten times the luma of blue. Pure blue is 0.07, pure green 0.72. This is why saturated blue text on black is unreadable both on a monitor and on a wall, and why converting an image to grey by averaging three channels is wrong — the blues come out too light and the greens too dark.

useful at the venue When someone says a visual is “not bright enough”, the first thing to look at is not saturation but which colour it is. A saturated blue scene puts out roughly ten times less light than a saturated yellow one at the same setting. The cheapest brightness you can find without pushing the wall is moving the hue toward green or dropping saturation — both are free compared with raising the gain.
why 0.5 is not half the lightmixed directly · mixed in linear space
mixed in sRGB mixed in linear
endpoints:
midpoint · in sRGB
·
midpoint · in linear
·
linear = ((sRGB + 0.055) / 1.055)2.4 // 0.5 → 0.214 · yani ışığın %21'i / 21% of the light

The 0.5 stored in a pixel is not half the light the screen emits, it is about a fifth of it. That is not a bug, it is the gamma curve, and it is deliberate: the eye is far more sensitive at the dark end, so the limited 8-bit steps are spread along a curve that makes them look evenly spaced. The trouble starts when you forget the curve and mix the numbers: crossfading red to green runs through a muddy dark band in the middle, because both lamps drop to half while the total light falls to 21%.

when you write shaders This is the most common mistake in real-time visuals, and it slips past because mix() looks harmless. Blending two layers, blurring, downsampling or summing all want the same order: decode to linear → do the operation → encode back to sRGB. When you skip it, the loss shows up exactly where transitions live — midpoints go dark, blurs look dirty, highlights lose their punch. Note: we use the 2.4 sRGB curve here; some engines use a 2.2 approximation. The difference is small, but stay consistent.
the same grey, two surroundsthe two squares are literally the same number

The eye does not measure absolute brightness, it measures difference. The same grey looks dark on a light surround and light on a dark one; join them and it turns out to be one flat bar. This is not a glitch, it is the eye's actual job: the same mechanism that lets you see one apple as red in sunlight and under a lamp.

the dark room On a set this comes back in three ways. One: the audience's eyes dark-adapt, so a brightness in the middle of the set is not perceived like the same brightness at the start — an hour in, the same image reads brighter. Two: in the dark the eye's sensitivity shifts toward blue (the Purkinje shift), reds go flat and blues and teals come forward. Three: the stage lighting next to the wall becomes the reference; your white will look blue beside a tungsten spot. And the colour decisions you make staring at a bright console are not the decisions of a dark-adapted eye.
What knowing this actually changes
  • The wall's primaries are not your monitor's. The same #00FF88 is one green on an LED panel and another on a laser projector, and there is no colour management anywhere in the chain. If a colour matters — a brand colour, a skin tone — check it in the room, not on your screen.
  • Pushing saturation to the limit kills detail. Past what the panel can produce, channels clip and gradients turn into flat patches. What looks like a loss of colour is usually the opposite — too much of it.
  • Dark gradients band at 8 bit. The gamma curve packs the steps together at the dark end, which is exactly where banding shows. The fix from module 03 still applies: a touch of noise at the end of the shader.
  • The camera does not see the room the way you do. A phone's white balance and exposure reinterpret the scene, and footage of a set shot in the dark almost always comes out more saturated and cooler. Better to know that going in than to be surprised afterwards.
  • Gamma is the key to the next step. Module 06 starts stacking layers, and every add, multiply, screen and blur there runs into this curve. Knowing where the mix happens is what explains why blend modes sometimes look “wrong”.
next The numbers of a single image are done. Module 06 brings in a second image: layers, alpha, and the fact that every blend mode is one line of arithmetic.
module 06 · layers and blend

Two sheets of numbers, one output.

Up to here we looked at the numbers of one image. Now a second image arrives, and only one question remains: which operation reduces the two numbers at the same position to one? Every blend mode is an answer to that question, and each is a single line. “Screen” is not a mysterious effect, it means 1−(1−A)(1−B).

In the lab below, A is the bottom layer (the “bed”) and B is the top one (like a clip, on a black background). Walk through the modes and keep an eye on the formula — after a while you can predict what will happen without looking at the image. That is the actual point.

the blend labthe formula changes with the mode

A · bottom layer

B · top layer

result add
100%
out = mix(A, A + B, o)
does the result change?
does order matter
·

Flip the order and walk through the modes again. For add, multiply, screen and difference the result stays the same — like addition and multiplication, they do not care about order. For normal and overlay it changes, because there A and B have different roles: one is the ground, the other goes on top. That is what decides when the position of a layer in your stack actually matters.

notice Turn the opacity all the way up on add and watch the bright areas: the colour drains and everything sticks to white. That is clipping — anything above 1.0 is cut off, and no detail survives there. Stack three layers with add and the centre of your scene usually turns into a white blob. The fix is not fewer layers, it is lowering the gain on each one.
the same blend, two spacesthe mode and opacity above drive both boxes

mixed in sRGB · the familiar one

The numbers are mixed directly. This is the default in most VJ software, so this is also what looks “normal”.

mixed in linear · the physically correct one

The gamma curve is undone, the mix happens, then it is encoded back. This is where light actually adds up.

The difference is clearest on add and screen, and then at half opacity: the left transitions are darker and dirtier, the right ones lighter and cleaner. Neither is wrong — the left adds numbers and the right adds light. But one represents physics and the other habit, and knowing which one you are standing on is what explains why a shader looks different in another piece of software.

a practical call If you are writing your own shader, mixing in linear is almost always cleaner; but inside a ready-made VJ application you are already mixing in sRGB and your eye is used to it. Do not mix the two: layers blended in different spaces in the same set never sit together. Pick one, and hold it across the whole chain.
black is transparentthe same two layers, three ways of stacking

1 · normal

The top layer covers everything below it, including its own black background. Drop a clip with no alpha on like this and the layer underneath may as well not exist.

2 · add

Black = 0, and adding zero does nothing. So the black background disappears by itself. Transparency without carrying an alpha channel.

3 · luma key

Alpha is generated from brightness: below the threshold transparent, above it opaque. Unlike add, it lays the top layer over without shifting its colour.

0.22
mode neutral B which means
add · screen · differenceblack (0)black disappears
multiplywhite (1)white disappears, black eats everything
overlay50% greymid grey disappears, the rest adds contrast
normalnonetransparency only comes from alpha or a key
why clips have black backgrounds Because carrying alpha is expensive and most codecs do not do it — a fourth channel is 33% more bytes per frame and much thinner codec support. A black background with add is free: the neutral element is already zero. Nearly every file in a VJ clip library is on black for that arithmetic, not for the look. It has a price: add sums colours, so the top layer's colour mixes with whatever is under it. When you need the colour to survive intact, use a luma key.
What knowing this actually changes
  • A stack has an order. The bed at the bottom (slow, full-frame, low contrast), accents above it (fast, sparse, bright), a mask or key on top. Build it the other way round and the layers fight: two full-frame layers on top of each other always give mud.
  • Difference looks cheap and tires the eye. Wonderful for a few seconds in a set, unbearable for minutes. The maths explains it: small changes produce large colour jumps, and the eye finds nothing to settle on.
  • Multiply vanishes in a dark venue. It is a darkening mode, and on an already dark wall in an already dark room it often shows nothing at all. A multiply layer that looks good in the studio can be invisible in the room.
  • Opacity and gain are not the same knob. Opacity mixes the result back toward A; gain lowers the layer's own brightness. With add it is the second one that solves clipping — pulling opacity down often leaves the blown-out area exactly where it was.
  • Premultiplied alpha is a trap. Some files and render outputs carry colour already multiplied by alpha. Assume wrong and you get a black or white halo on the edges. If you see a thin fringe around a layer, this is the first place to look.
next We stacked the layers, but we still took each layer as given. Module 07 steps back to how the GPU draws a single frame: the same function for every pixel, and using the previous frame as an input — that is, feedback.
module 07 · how the gpu draws

A million small calculations, all at once.

So far we took each image as given. But who draws a frame? If you wrote this on a CPU you would set up two nested loops and walk the pixels one by one. A GPU does not do that: it runs the same function for every pixel, separately and in parallel. That function is called a fragment shader, and it answers exactly one question: “I am the pixel at this position — what colour am I?”

That has one big consequence: a pixel knows nothing about its neighbours. It does not know which pixel was drawn before it, or what else is on the screen. All it has is its own position and the handful of numbers you hand it. What makes shaders feel hard is not the maths, it is that constraint — and once it clicks, everything else follows from it.

a generator in five lineseach step builds on the one before
fragment shader

·

The first box contains no image at all: we just wrote each pixel's x and y into red and green. Every shader starts there. The rest is bending that position — take its distance, rotate it, fold it, push it with a number. By the fifth line what you have is a VJ generator, and there is not a single “effect” inside it.

the shift in thinking If you come from Unity the habit is: there is an object, and you move it. In a shader there is no object. Nothing moves — you move the coordinate system, and the shape stays where it is. q = rot(time) * q does not rotate the circle, it rotates the world the circle sits in. Once that sentence lands, writing shaders gets much easier.
the price of not knowing your neighbourto blur is to call the same function again
box blur 1 sample
1 × 1
calls per frame at 1080p
·
per second at 60 fps
·

Because a pixel cannot ask its neighbour for a colour, the only way to blur is for it to recompute its own surroundings. Take the grid from 1 to 7 and the image softens, but the number of calls goes from 1 to 49 — doubling a radius quadruples an area. Most of what feels “heavy” in real-time visuals is hiding in that table: blur, glow, bloom, shadows, light scattering. All of them mean calling the same function over and over.

the trick that saves you Instead of 7×7 = 49 samples, take 7 across and then 7 down: nearly the same result for 14. That is a separable blur, and it is everywhere. The second trick: do not blur at full resolution. Shrink the image to a quarter, blur there, scale it back up — you are softening it anyway, so there is no detail to lose. Those two tricks are why bloom is cheap.
feedback: the previous framethe output becomes the next frame's input
live prev → source
0.92
push persistence to 0.99 and wait
out = source + prev × persistence // prev is read back zoomed and rotated

The only new idea here: the loop is handed the previous frame itself. Read it back from a slightly zoomed and rotated position instead of where it was, and it leaves a trail; because every frame lands on top of the last one, tunnels, spirals and that familiar melting texture appear on their own. No code draws any of them — there is one feedback loop.

notice Push persistence to 0.99 and wait: the image slowly fills toward white. Every frame takes back nearly all of the last one and adds new light on top — the clipping from module 06, arriving here as an accumulation over time. The rule of feedback is one sentence: the closer what you take back is to 1, the more easily the system runs away. That is the most common accident in a live set, and an escape hatch (the “clear” in this panel) belongs in every rig.
What knowing this actually changes
  • Feedback is cheap motion blur. In module 04 real motion blur meant sampling many times inside a frame. A feedback layer carrying the previous frame at 0.6–0.8 does most of the same visual work for almost nothing — not physically correct, but close to what the eye expects.
  • Feedback has no content, only behaviour. Feed the same loop a small dot and you get a tunnel; feed it text and you get melting type; feed it a camera and you get that familiar sixties feel. Changing what you feed the loop is usually more productive than looking for a new effect.
  • 8 bit sends a bill here too. If the feedback buffer is 8-bit, every pass accumulates rounding error: you get banding and colour drift in the dark areas. If you can use a float (16-bit) buffer, feedback is where it pays off most.
  • Running many shaders on one page is not free. This lesson is a single page with fourteen modules, and if they all drew at once the browser would die; so only the module on screen draws. The same rule holds in your rig: do not compute a layer nobody can see.
  • The next step is the coordinate itself. In module 08 we take the same trick — bending the position — off the screen and onto a real surface: mapping.
next Now you know how a frame is born. In module 08 we take that frame off a flat screen and land it on a curved wall, a building, a surface whose corners refuse to line up.
module 08 · mapping

The surface is not a rectangle.

Up to here the image always lived on a rectangular screen. It does not in a room: a building façade, a column, three separate drapes, a curved LED, or simply a piece of gauze hung crooked. Mapping is the name for closing that gap — and it is not a new technique, it is the same trick as module 07: bending the coordinate. The only difference is that what you are bending now has a real surface standing in the room.

There are three jobs, always in the same order: land the image on the surface's corners, cut the light that spills past it, and reconcile the content's proportions with the surface's. The three panels below are exactly those three jobs.

four cornersdrag the coloured handles
output surface perspective warp
corners
·

Pull a corner: the image does not just move, it gains perspective. What you are doing is asking every output pixel “where in the source do you land?”, and the answer comes from a 3×3 matrix — a homography. When you cannot put the projector square to the surface — and you cannot, there is a crowd or a column in the way — this is exactly the correction you make. Turn the test pattern on and try again: in the room you send a grid before you send content, because whether a grid is straight reads from ten metres away.

what it costs Keystone is not free. Squeezing the image toward one side throws away some of the pixels there: resolution drops on the narrow edge, and that is where fine lines and text fall apart. The rule: fix the projector physically first, use keystone as a last resort. And one more thing: warp hard enough and one edge goes out of focus, because the projector's focal plane is still flat.
the mask: keep the light on the surfacetry the soft edge
masked output
12%
black is not the same thing on the two

A mask says where the image ends. Light spilling a few centimetres past a surface shows up in a dark room as a patch on the wall behind or on someone's face, and it breaks the whole illusion. A soft edge does two things: mechanically it is hard to land a mask exactly on an edge, and a few pixels of transition hide that error; and when two projectors overlap side by side, the same transition is what makes the seam invisible (edge blending).

two kinds of black Press the button and look outside the mask. On an LED wall black is genuinely off: the pixel does not light, the surface disappears. On a projector black is the lowest level of light — the lamp is still burning, the area outside the mask stays faintly grey, and in a dark room you can see that grey. Which is why drawing a mask in software is often not enough for projection work; the real fix is a physical cut in front of the light — a gobo, card, black velvet.
16:9 content, a 3:1 wallfour ways to place it
surface
3.00 : 1
against the content
·
the cost
·

This is the most frequent and most annoying problem in mapping: everything you own is 16:9 and the wall is 3:1. You have four options and all four cost you something. Fit leaves gaps at the edges — and in a dark room a gap means half the surface sitting dead. Fill crops: whatever is in the centre survives, everything at the edge is gone. Stretch breaks the proportions; a circle becomes an ellipse and any face gives it away instantly. Tile repeats, loses nothing, but the seams show if the content does not tile.

the real answer All four are compromises because the content was authored at the wrong ratio. Real-time generation removes the problem at the root: a shader has no fixed aspect, it draws for whatever you hand it — the sq() from module 07 was already building coordinates from the resolution. If you work from a clip library the only cure is authoring at the target ratio; the thing you plan to “sort out later” always ends up as stretch in the room.
What knowing this actually changes
  • Mapping happens in the room, not at home. A mask you prepared from a photo of the surface never quite lands: the projector's angle, its lens shift and the real geometry of the surface are not in the photo. What you do at home is prepare content; corners and masks are set at load-in, and it always takes longer than you think.
  • Save the setup, then back it up. Every mapping application keeps corner and mask data in a file. That file is the only thing standing between you and two hours of work when the software dies at midnight. Save before the show, copy it to a stick, and restart the software once — so you have actually seen the save load.
  • The mask edge is the surface edge. Treat the soft edge as tolerance, not decoration: the mask should end just inside wherever the surface ends. Light spilling out is always more visible than a gap left in.
  • Scale depends on distance. A fine pattern you send to a three-metre column disappears on a twelve-metre façade, and the heavy forms built for the façade look crude on the column. Before sending the same content to two surfaces, ask: from how far away will anyone see it?
  • Motion is next. The image is in the right place now. Module 09 is about how it moves: what drives what, and the difference between pulling a parameter by hand and hanging it on a curve.
next The image has landed on the surface. Module 09 looks at motion itself: easing, lag, springs, and whether a parameter should be driven by your hand, a curve, or the sound.
module 09 · motion

Changing a number is easy. How it changes is the work.

Up to here there was always a parameter: a crossfader, persistence, a radius, opacity. The real question now is what drives it. There are four answers, and all four produce the same kind of number — but they feel completely different in a room. Your hand carries intent, a clock carries order, the sound carries connection, randomness carries surprise. When a set will not settle, the reason is usually not the parameter but that one thing is driving all of them.

four drivers, one parameterthe plot below is the last four seconds

hand

You. It carries intent, does not repeat, and gets tired. In a set this is the most valuable driver and also the scarcest.

LFO · a clock

A sine. Perfect, endless, and for exactly that reason it goes invisible after a while: the eye learns the pattern and stops looking.

the sound

Hooking into the music in the room. It gives you musicality for free, but left alone the image becomes an illustration of the track.

random walk

A value that picks a new target at random and glides toward it. It does not jump, it wanders — the cheapest way to buy a feeling of aliveness.

0.50
0.35 Hz

There are four lines in the plot and none of them looks like another. The LFO's is predictable, the sound's is jagged, the random walk's is smooth but aimless, and yours is flat — because you are not turning a knob every second. A good set mixes them: a slow LFO holds the ground, the sound catches the accents, and you make the big decisions. Hang everything on the sound and the image becomes subtitles for the track; hang everything on LFOs and it becomes a screensaver.

how it gets to the targetchange the frame rate and watch the pink line
target lerp(a, b, 0.12) lag (tau) spring
simulated frame rate:
0.18 s
settle time (lag)
·

Throw the target and watch the three followers. The spring overshoots and comes back — physical, alive, and if you use it everywhere everything bounces. Lag never overshoots, it just eases in; this is the behaviour you will use most in VJ work. The real lesson is the third one: drop the frame rate to 15 and watch the pink line.

if you come from Unity Lerp(a, b, 0.12) closes 12% of the distance every frame. Which makes it depend on how many frames pass: 60 times a second at 60 fps, 15 times at 15 fps, and the same code feels four times slower. It is a quiet bug anywhere the frame rate moves — the animation that is right on your machine and wrong on the one at the venue. The fix is to account for time: cur + (target − cur) × (1 − exp(−dt / tau)), where tau is a constant in seconds and the behaviour is identical at any frame rate. Every smoothing on this page uses it.
from signal to parameterinput is the bass, output drives the visual

the response curve

what the parameter does

input · bass
·
output · parameter
·

Connecting a signal to a parameter is not plugging in a cable; there is a curve in between and it sets the character. x² ignores small sounds and only answers hard hits — that is what you want when locking to the kick. √x is the opposite: it magnifies every small movement into an image that never stops twitching. Threshold turns an analogue signal into a digital decision: on or off. And invert is the one everyone forgets — something shrinking on the bass is often stronger than something growing.

range comes before the curve Move the min and the max. Most parameters mean nothing at 0 and far too much at 1; the useful range is a narrow band between them. Rather than wiring a signal to 0–1 and deciding it does not work, find that band first and pick the curve second. When a parameter on stage is either always dead or always blown out, the problem is almost never the curve, it is the range.
next The drivers and curves are in place. Module 10 looks at the strongest one of all: the grid the music already brings — beat, bar, and when to lock something to it versus when to let it run free.
module 10 · sync

The music already brings a clock.

In module 09 we looked at what drives a parameter. In the room, the strongest of those is already waiting: the grid the music brings. The beat, the bar, and where you are inside the bar. An image that sits on that grid feels right without doing anything clever; one that does not stays foreign to the room however beautiful it is.

But sync is not a switch, it is a decision. Locking everything to the grid is the most common mistake: the image starts behaving like a metronome, and when the music breathes there is nothing left to breathe with it.

free and lockedstart the sound and watch both

free · its own clock

It pulses at its own rate. It has no relationship to the music; sometimes it coincides, then it drifts. That drift is not a fault, it is an option.

locked · the music's clock

It resets on every beat. The same visual; the only difference is where the phase comes from — and the effect in the room is entirely different.

beat in bar
·
bar
·
phase
·
tempo
·

The box on the right reads Audio.sig.phase: a number from 0 to 1 saying where you are inside a beat. All of sync comes out of that one number. Divide the beat count by 4 and you have the bar; divide the bar by 4 and you have the four-bar phrase — nearly all electronic music climbs that ladder, and when your visual structure uses the same ladder the two work together without you doing anything.

quantize: round the decision to the gridstart the sound, then hit cut
live output
bar line when you pressed when the cut happened
quantize:
wait
·
state
·

With quantize off the cut happens the instant you press — and a human hand never lands exactly on a beat, you are always tens of milliseconds early or late. The distance between pink (when you pressed) and green (when the cut happened) is that. Set it to 1 bar and your hand goes free: you press whenever, the cut lands on the next bar line. This is the single biggest relief in live work — you do not have to catch the right moment, you only have to state your intention.

what it costs Quantize is latency. At 4 bars a cut can be eight seconds away, and for those eight seconds your hand is committed — if the DJ does something unexpected, you are late. In practice most VJs live at 1 bar: long enough to hide human error, short enough to react. For hard accents, turning quantize off and hitting it by hand is still best; in the moments where the music leaves the grid, the grid is not helping you, it is in the way.
the grid is a prediction, an onset is an eventgold = grid · pink = onset
grid
onset

They are not the same thing. The grid is computed from tempo: it keeps counting even when the music stops, because it is a prediction. An onset comes from a sudden rise in the spectrum: it fires when something actually happens — an accent off the grid, a vocal, a crash. In the plot the two mostly line up — but the moments where they do not are the moments the music is interesting.

use both A practical rule: hang structure on the grid, accents on onsets. Scene changes, section switches, layers coming in and out should lock to the bar — those want to be predictable. Flashes, jolts, kicks in the image should come from onsets — those should answer what the music actually did. And leave one thing hanging on neither: a slowly drifting layer is the only thing letting the room breathe while all the structure sits on the grid.
next Everything up to here had a measurable answer. From module 11 on we move to the part that has none: what you prepare in advance and what you generate live — and there is no right answer to that.
module 11 · generative or clip

When do you make the decision?

from here on it is taste

The first half of this page was measurable: how many bytes a pixel is, how many milliseconds a frame is, which formula a blend is. From here it is not. From this module on the questions are not technical but about how you work — and they have no right answers, only consequences.

The first question: when do you decide things about an image? In the clip approach most decisions are made at home; at the venue you have a library of finished things and the job is calling them at the right moment. In the generative approach most decisions are made in the moment; you have nothing finished, you have a parameter space and you move around inside it. Both are legitimate; each risks something different.

the same four looks, two ways of workingclick or drag on the pad
output clip

the parameter space

way of working

Clip mode gives the pad only four corners: wherever you press it snaps to the nearest one and the transition is a cut. In generative mode every point in between is also an image and transitions are continuous. The same four materials, a completely different feel in the hand.

position
·

Play in both modes for a couple of minutes and notice what you lose. Clip gives you certainty: all four looks are exactly as you wanted, none of them will surprise you, and you have exactly four things. Generative gives you range: infinite points in between, none of them quite “designed”, and some of them frankly ugly. Most experienced VJs do both — they build a generative system, then mark the good points inside it and hit those marks in the set. Which is to say, they make themselves clips inside a parameter space.

how often a look comes backhow deep your repertoire really is
60 min
6 looks
45 s
each look plays
·
same look every
·
verdict
·

The arithmetic is annoying but unavoidable. In a one-hour set with 45-second looks you have 80 slots; with six looks each one comes back thirteen times and the room sees the same thing every four and a half minutes. Nobody notices the first three repeats, they notice the fourth, and by the sixth they stop looking. This is the numeric answer to “do I have enough material” — and for nearly everyone the answer is no.

the real case for generative The strongest argument for working generatively is not aesthetic, it is this table. A parameter space produces variation that a finite pile of files cannot; the same look never comes back exactly the same and the sense of repetition disappears. Against that, what a clip library gives you is also real: finished, tested images you know the behaviour of in a room. For long sets the first is safer; for short, high-stakes sets the second is.
clip library generative system
decisionsat home, with timein the set, under pressure
the riskrepetition, running outlanding somewhere bad
rehearsalpreparing contentlearning the space
when they ask for a changerender a new clipturn a knob
when it crashesthe files are still therethe state is gone
Questions worth asking yourself
  • How long is this set? Six looks is plenty for a twenty-minute opening slot. Across a three-hour night the same six run out in the second hour, and everyone in the room feels it before you do.
  • Do you know the music in advance? If you do, the clip approach is a real advantage: you can plan what lands on what. If you do not — and most nights you do not — the parameter space saves you, because moving in a space is faster than searching a library.
  • What survives when something breaks? An unromantic but important question. When a clip setup dies your files are still there; when a generative system dies its state evaporates. If you work the second way, build save and recall before the show, not after.
  • What do you want to do with your hands? Some people like triggering: calling the right thing at the right moment, like an instrument. Some like navigating: turning knobs and seeing where something goes. This is not a question of correctness but of what you enjoy — and across a six-hour night, what you enjoy lasts longer than what you think is right.
next You have decided what you will produce. Module 12 looks at the chain that carries it into the room: laptop, output, mixer, projector — and what breaks at midnight.
source 124 BPM