# draw(tokyo); #2 afterword: "Performing visuals"

- **Author**: Haruma Tasaki / monoton
- **Date**: 2025/03/26
- **Canonical URL**: https://monotonmusic.com/articles/draw-tokyo-2-performing-visuals/en/
- **Translated from the Japanese**: https://monotonmusic.com/articles/draw-tokyo-2-performing-visuals/
- **First published**: [note](https://note.com/monoton_music/n/nae24acb2298f)

Hi, I'm monoton. I usually VJ, make music, and handle the technical side of live shows and video production.

On Saturday, March 22, 2025, I performed with [Nia](https://x.com/nia_0214) at the event "draw(tokyo); #2," held at CIRCUS TOKYO in Shibuya.

https://draw-tokyo2.peatix.com/

Nia DJed, and I, monoton, was in charge of the visuals (referred to below as "VJ"). For this set I built a dedicated visual system, and this article explains it. I'll write about what it means to "perform" visuals the way you would play an instrument, how I built a system for that kind of performance, and how I use it.

These are the kinds of visuals I put out that night.

https://twitter.com/monoton_music/status/1903477676284723353

https://twitter.com/SainaKey/status/1903344628323193277

https://youtu.be/hIFAcBnN1_Y?si=VeQTe5Z8amW79Nta

## The intent behind the live performance

Since this was billed as "an audio & visual event where you can enjoy live coding, generative VJing, machine live sets, and DJing," I thought again about the value of live performance. I didn't come up with this just for the occasion. It's a theme I keep asking myself about.

Defining an absolute value right away is hard, so I'll start from a relative point of view. A common comparison is between enjoying sound and visuals through a stream and going to an in-person event to enjoy a live performance. The difference I consider especially important is whether performers and audience can directly observe each other's body movements and the live performance as it happens.

To be more specific, I mean where people are looking, how they handle their gear, and how their bodies move when the rhythm pulls them in. On platforms such as VRChat, avatars do sometimes express the users' movements to each other, but the information that gets across has been selected and altered.

With that in mind, what I wanted to achieve was "performing" visuals. I felt it was important that the VJ express, through physical actions, what they pick up from the DJ and the audience and what they themselves feel in the music, with the result projected as visuals, and conversely that the DJ and the audience can witness the VJ in the act of expressing it. In a broad sense, moving a computer's cursor with a mouse and clicking, or hitting a keyboard, would also do this, but I was aiming for something more "intuitive." By "intuitive" I mean that the VJ operates the controller in a way that respects, as much as possible, the feeling of wanting to dance when you hear music, and that when you watch those movements from the outside, it's clear that they are operating something along with the music.

For hints on how to "perform" visuals, I looked to interfaces designed for playing music. Ableton Live, a piece of music software, and Push, its dedicated controller, are very good at live performance and playing. They're tools that excel at letting you save parts of a progression phrase by phrase and rearrange them on the spot, or touch parameters and change them in real time. My idea was to take what I normally do, desperately working a MIDI controller with both hands, and, with the help of a tool specialized for playing music, replace it with movements that are easier to handle, more like hitting and playing an instrument. I'll go into this in detail in the explanation below.

On top of that, I set one theme for making these visuals: "enjoying the behavior of a whole group of particles gushing out in a jet, by applying a changing vector field of forces to them." In other words, it's fun to put a lot of particles in a 3D space, apply various forces to them, and see them move like a flock. As real-time rendered visuals, there's nothing new about this theme in itself, and I think it's a common technique. I decided to narrow things down to this single scene.

As an aside, Vmod, the VJ system I normally use, is also made in TouchDesigner. Its design philosophy is quite different from this system, though, in that you prepare lots of real-time rendered visuals in units called "clips" and switch between them or mix them. Writing about the intent behind Vmod would get pretty long, so I'd like to save it for a separate article another time.

## System overview

The hardware I used was a MacBook Pro ("Mac" below) and an Ableton Push 3 ("Push" below). On the Mac I run Ableton Live and TouchDesigner ("TD" below).

Roughly speaking, I use Ableton Live and its controller, Push, to analyze the DJ's audio and to send the signals that control the visuals, and TD to generate the visuals.

Below are a simple system diagram and a photo of the setup on the day.
Roughly, the flow is this: Ableton Live and Push create the visual control signals from the VJ's actions and the audio input, and TD receives them and generates the video. The VJ never operates TD directly. Everything is operated indirectly through Ableton Live.

## What I'm doing in Ableton Live

Ableton Live is music software, and its Session View mode lets you play individual MIDI clips, samples, and so on without laying them out on a timeline. This time, I lined up phrases and movements, either recorded beforehand or created during the set, as "clips" and used it to play them back to follow how the set developed.

https://www.ableton.com/ja/live/what-is-live/

Each clip that plays back controls its corresponding parameter on the TD side. In other words, just as you build music by layering parts, dropping them in and out, and hitting samples at the right moment, you can control how each parameter changes over a span of time through clip playback. I thought this could become a visual performance in the sense of "playing," close to the feeling of playing music.

In the Session View below, for example, each clip controls a different element, such as camera rotation, focal length, particle parameters, or a flash effect over the whole image. By operating these individually or together, I build up the energy and the progression.

You can draw curves called "automation" in a clip, which let you specify how all sorts of parameters change over time. You can also use an LFO to make them fluctuate randomly.

With a feature called Max for Live ("M4L" below), you can also extend Live by building in "devices" you've made. This time I used it in two main ways: sending the values of the parameters controlled by clips and so on, as described above, to TD over a protocol called OSC, and analyzing the incoming DJ audio.

https://www.ableton.com/ja/live/max-for-live/

First, the M4L device that sends parameter values over OSC. The implementation inside is pretty rough, but functionally it's simple. The important thing is to make the knob that sets the value a live.dial, which lets the knob position be handled as Ableton Live data. You can then draw automation for it in clips, or operate it from knob assignments called Macro Controls.

Next is the part that analyzes the audio from the DJ. Using an Audio Effect Rack, I split it into four kinds of audio: highs targeting hats and other cymbals, lows targeting the kick and bass, the remaining mids, and the full band. For each one I take the level as RMS (root mean square) and send it over OSC.

Push is a dedicated controller for Ableton Live. It lets you operate Live through its buttons, pads, knobs, display, and other interfaces, and it also works as an audio interface. This time I used it as an audio interface to bring in the sound from the DJ mixer, to start and stop clips in Ableton Live's Session View, and to control parameter values in real time with the knobs.

https://www.ableton.com/ja/push/

## What I'm doing in TouchDesigner

[TouchDesigner](https://derivative.ca/) generates and outputs the visuals based on the OSC it receives from Ableton Live. Because every operation I needed went through OSC this time, there is no screen with buttons and so on for operating TD itself. All the information I need during the performance is displayed on the visuals that make up the final output.

To receive OSC, use an OSC In DAT, match the ports on the sending and receiving sides, and write a simple script in the callback that updates the parameters of other Operators. That's all you need. If you're stuck because it won't work, try reading [Satoru Higa's article](https://satoruhiga.com/TDWS2018/day9/).

It breaks down broadly into five parts: generating and updating the particles, managing the text added as an effect, rendering, and post effects.

### Generating and updating the particles

The particles are instanced using three 256x256 textures. In these textures, the color information (RGB) of each pixel represents the position, rotation, and scale, respectively, of one particle.

The actual processing goes like this.

1. Every frame, generate new particle information at a size of 1x256
2. Insert this new information at the left edge of the existing 256x256 texture
3. Shift the existing information one pixel to the right and discard the rightmost column

This holds up to 256 frames' worth of particle information. Between being generated and disappearing, the particles move in various ways under the influence of the vector field. For example, they get pulled toward the center, burst in response to sound, or rotate in a swirl.

Basically, the processing is done in GLSL TOPs (the TD component for shader programming on the GPU), handing the work to the GPU to keep things light, but in some cases the part that generates the initial 1x256 is written in a Script CHOP (a component that can generate number sequences and the like from a script).

### The added text effects

For the text effects that drift and blink in midair, I use a Geo Text COMP. Every frame, an Execute DAT decides which text to show based on whether the effects are on or off, calculates the position, scale, and rotation of each piece of text, and writes them to a Table DAT, which the Geo Text COMP references.

### Rendering and post effects

In rendering, a camera shoots the 3D space where the particles and text effects float and turns it into video. Here I add variation to the picture by controlling things like the camera's rotation, distance, and focal length, and switching between perspective and orthographic projection.

In the post effects, I adjust the originally black-and-white picture to take on a slight blue tint, apply a water-like distortion to the whole screen, and add bloom. This distortion serves to soften the particles' sharp edges and give them movement. How strongly it ripples responds to the level of the highs analyzed in Ableton Live.

As special effects, I can also add glitches, make the picture flash, or show a logo.

After that, the final output is complete once the UI is laid on top. This time, in addition to information such as the performance state, the audio analysis values, and the camera parameters, I decided to show the textures used to instance the particles just as they are. Each pixel of these textures specifies the coordinates of an individual particle through its RGB values, and the way they changed was like a living thing and surprisingly interesting, so I put them on screen. All of this is constantly updated in real time.

## On the day

On the day of the show, I basically looked only at Ableton Live, Push, and the final video output, and just kept hitting Push's pads and touching its knobs, so I was able to perform with my attention on my own senses, following the sound. Compared with VJing on a regular MIDI controller, I think I was able to play with my mind on the rhythm and the movement on screen.

It was also interesting that, partly because the performance was in the lounge, Nia, who was DJing, and I were half facing each other across a corner, in a position where we could just about see each other's faces and hands. I feel we were able to jam with sound and visuals while picking up information from the body movements of the audience and the DJ as well as from the sound. Nia's DJing was so good that I was dancing the whole time.

## After the show

Racking my brain to build a one-off system and then showing it off live really is fun. It's a given that the visuals that come out must first be interesting and strong in their own right, and that's not something to go easy on, but I think an event where the audience also pays attention to how the expression comes about is a rare thing.
There aren't many events where the audience stares at the screen this intently, so I was happy, and also pretty nervous.

It was my first time bringing in Ableton Live solely for visuals, and it turned out to be a very powerful partner. It's software that excels at managing how values change over time, so there seems to be plenty of room left to use it as a pure sequencer for things other than sound. Also, many tutorials do audio-reactive work entirely within TD, but TD's audio analysis features are limited, so there can be a surprising number of places where it doesn't quite do what you want. Doing the analysis with Ableton Live and M4L together and sending only the numbers to TD makes adjusting things a lot easier, so if you're interested, please give it a try.

Thank you for reading this long article to the end!
