deus

Blog

XY Drift: an oscilloscope visualizer that plays with your music

The XY Drift preset in Deus: a glowing oscilloscope trace bent by several effects at once on a dark screen.

A classic XY oscilloscope is a beautiful thing with one catch: it only draws pictures when the music was made for it. Play an ordinary pop or techno track and you get a tangle of lines or a thin diagonal stroke. XY Drift, a preset in the free Chrome extension Deus, keeps the real oscilloscope beam and plays with it: scope-art effects bend, crush and copy the trace in time with your song, and now and then the beam turns into a figure.

The oscilloscope underneath

Under the effects is the same analog CRT simulation as the XY Oscilloscope preset: the left channel moves the beam sideways, the right channel up and down, every sample, with a glowing phosphor trail. Most songs are close to mono, so their trace is a small blob. XY Drift turns the gain up automatically until the trace has a steady size, so even a quiet or narrow mix fills the screen.

Twelve effects, each listening to its own part of the song

On top of the beam sit twelve effects of the kind oscilloscope artists use in tools like osci-render:

  • bit crush and spiral crush, which snap the line onto a pixel grid or a spiral of steps;
  • polygonizer, which turns curves into sharp polygons;
  • mirroring, which folds one half of the figure onto the other;
  • vortex, swirl, bulge and wobble, which twist and inflate it;
  • kaleidoscope, copies, unfold and a grid of clones.

Every effect listens to its own part of the music: the kick, the snare, the hi-hats, the attack of notes, bass, mids, treble or overall loudness. An effect switches on while its part is above its own average over the last 8 seconds, and fades out when it drops back. Because the threshold is a moving average rather than a fixed number, it works the same on a quiet piano piece and on a loud festival track: the effects answer the moments that stand out in this song.

Different effects listen to different parts, so several can play at once: the kick crushes the line while the hi-hats make it wobble. Which part each effect listens to slowly drifts too, over a minute or so, and so do their settings. Usually two to four effects are in play, so the picture keeps changing without turning into noise. The 2 × 2 grid of copies is rare and only ever a ghost of itself.

Four moments of XY Drift on one track: a cyan ring torn into rays, a pink trace split into three copies, a pink triangle of folded lines and a yellow swirl of crushed steps.
Four moments from one track: the effects change with the music.

51 oscilloscope figures

About every half a minute the beam turns, for roughly nine seconds, into a figure from a library of 51, picked at random and never the same twice in a row:

  • classics: a circle, triangle, square, hexagon, stars, a heart, roses and Lissajous figures;
  • curves: spirographs, an epicycloid, a cardioid, an astroid, the butterfly curve, a harmonograph and a golden spiral;
  • fractals: the Koch snowflake, Sierpiński's arrowhead, the Hilbert curve, the dragon curve, the Gosper and Lévy curves;
  • art: the Lorenz attractor, a rose window, an atom and yin-yang;
  • wireframe solids that slowly turn in perspective: a cube, the tetrahedron, octahedron, icosahedron and dodecahedron, a pyramid, a prism, a sphere, a torus, a torus knot, a helix and a Möbius strip.

The music is added on top of the figure, so the outline shivers and swells with the sound, and the effects bend it just like the plain beam. Figures are on screen at most a quarter of the time, so the oscilloscope stays the star.

Eight XY Drift figures drawn by the beam with the effects off: a rose, a square, a torus, a dragon curve, yin-yang, a cube, a pentagram and a triangle.
A few of the 51 figures, shown here with the effects off. The music makes every outline shiver.

Breathing room

An effect show that never stops gets tiring, so XY Drift pauses. About once a minute the effects melt away one by one and the plain oscilloscope plays for ten seconds with slightly longer trails, then the effects come back the same way.

The screen itself drifts slowly on the clock, independent of the music: the phosphor persistence, afterglow, focus and glow change a little over a minute or two, so the same track looks different later on, without long smears. The colour turns on snare hits, no more often than every few seconds, and passes through dark blues and violets instead of settling on them. A brightness limiter dims the beam whenever it is squeezed into a short path, so it never piles up into a blinking white blob.

How to turn it on

  1. Install Deus from the Chrome Web Store.
  2. Play music on Spotify, YouTube Music, Yandex Music or any other tab.
  3. Open the preset list, go to the Oscilloscope tab and choose XY Drift, or type its name into the search.

In Magic mode the oscilloscope presets come up more often than others, unless you disliked them. You can also render a video with XY Drift over your own track: choose Single preset in the render dialog and search for it.

Is it free?

Yes. XY Drift, like all Deus presets, is free with no time limit and no account.