Playing from a phone
A phone can play the open song with drum pads, a keyboard and a turntable, in the song’s own sounds. What you record
there goes into the song: drums as its drum lanes, keys as a new part, a scratch as a take. It works in the studio
app and in the browser studio that claudius serve serves, with a phone on the same Wi-Fi, and in the
studio demo on the site, with a phone on any network.
Pairing
The phone button after Record in the studio’s top bar opens Play from a phone. claudius shares a page for phones, and the window shows its address as a QR code beside the steps: point the phone’s camera at it and open the link. The address carries a key of its own, which the phone keeps, so the page stays open on that phone until the studio stops sharing it (Stop sharing) or claudius quits; the next time, the address has a new key. The window’s first card says when a phone plays along; Done closes it and leaves the page open to phones, and the phone button stays lit while it is. If the page stopped (the demo opened in another tab takes it), Share it with my phone opens it again.
In the demo, the code opens the same page on claudius’ site instead, which reaches the demo’s tab through a relay on the site (below).
On the phone, tap Start: a phone plays sound only after a tap. The page shows the song, the section and bar the studio is at, and the beat. The sounds are the song’s own, rendered by claudius as the song mixes them, and the phone plays them itself, so a tap sounds at once, whatever the Wi-Fi does. An iPhone plays them with its ring switch on silent too.
Recording a take
The phone plays the song in the studio as well as following it: ▶ plays it from where it is, and ■ stops it. Tap ● and the take records along with the song; with the song stopped, ● starts it in the studio a bar before the section it is at, so you hear a bar first, and the take starts with that section. Tap ● again to send the take: the song changes as if you had made the edit in the studio, and undo takes it back. The phone keeps its clock with the computer’s and follows the studio’s transport, so what you play lands where you heard it, and the delay of the phone’s own speaker is taken off.
-
Pads. A pad for each of the song’s drum lanes, which sounds harder the nearer its top you strike it. A take becomes the lanes you struck, folded into a pattern of 1, 2 or 4 bars (as many as you played, up to 4) on the sixteenth grid and written as their
mainpatterns, as a beat played or beatboxed into the microphone is: a step struck only some of the times round plays with that chance, as hard as you struck it on average. -
Keys. Two octaves, with − and + for the octave, playing the sound of one of the song’s parts, a synth preset or an installed instrument; a key sounds harder the nearer its bottom you strike it. A take becomes a new part playing what you played in that sound, in the role you choose (keys, lead, chords, bass or pad), as notes played on a keyboard do.
-
Turntable. A record of two bars cut from a section of the song: one of its samples (the phrase it was built on, a flip, a take), a voice (a vocal chop), a part that plays notes, a beat (a sampled break), or the whole mix. A drum lane alone, a kick or a clap, is one sound struck, so it is not offered. Under From the library are samples to put on instead, each by its recording’s title and tempo: the phrases, vocal chops and breaks claudius gathered for the song’s genre (then those gathered for words you searched), and the Apple Loops and loops of your own folders of the genre’s kinds, nearest the song’s tempo first. A sample is a record of its own first bars (a vocal chop, all of it); the demo has no library, so it offers the song’s own records only. The record waits at its cue, its first sound, which a sticker marks as it comes round under the needle. Pulled back past its cue, it is silent, as the lead-in groove before a vinyl record’s first sound is; past its end it goes round to its start. With motor on it spins in time with the song: one cut from the song at its own speed, since it was cut at the song’s tempo, and a sample at the speed its tempo needs, by octaves the nearest (a loop at half the song’s tempo plays in time as half time), as a DJ sets a record’s pitch. pitch moves it up to 16 % faster or slower, the tempo it plays at shown beside it, and in time brings it back. One turn is 1.8 seconds of it, as on a record at 33⅓. A scratch on a sample credits it in the song’s
credits.txt, as the song’s own samples are.● mic records a record off the phone’s microphone, up to 8 seconds (tap it again to stop sooner): a voice, a sound in the room, a record playing nearby. It goes on the turntable as your recording, its peak at the master’s ceiling, and spins at its own speed; a take of a scratch on it carries the recording to the studio, which makes the scratch of it. A browser lets only a page it trusts use the microphone: the demo’s, served over https, or the page opened on the computer that runs claudius. The page your phone opens from the studio’s QR code is on your network without https, so there ● mic says so: record it in the studio’s Record window instead, and the take comes to the turntable as one of the song’s records.
Your finger holds it as a DJ’s does. Rest a finger on it without moving and it drags: the record slows under it, the more the harder you press, and stops under a firm finger. A phone measures no force, so the page reads the press from how large your fingertip’s touch is (pressing flattens it), against the lightest and firmest touches it has seen; where the screen says nothing of that either, the longer your finger rests, the harder it brakes, stopping the record in about half a second. Move your finger a few millimetres along the record (further than a fingertip shifts as you press harder) and it grabs: the record goes with it until you lift it, to scratch or to spin it by hand, and holds still while your finger does. It follows your finger’s path as smoothly as your finger moves, a few hundredths of a second behind it, since a phone tells the page where a moving finger is only 60 or 120 times a second (on a slow or busy phone, which hears of it later and in bursts, up to a tenth of a second or so behind, rather than stuttering). Let go while moving and the record runs on at the speed you gave it, up to four times its own, so a swipe spins it faster, and a swipe backwards spins it back a moment, until the slipmat brings it to the platter’s speed (with the motor off, to rest). The motor, like a DJ’s turntable’s, brings the platter up to speed in a third of a second, and its brake stops it as fast. A spot under your finger shows how hard it brakes, and a ring that it grabs.
Moved fast, the record whistles no highs folded back, as a needle reads a record, and the crossfader opens within a hair of its travel, as a scratch DJ’s does, so a flick cuts the sound in and out. A take becomes a take of the scratch,
scratch1,scratch2…, that plays from the start of the section it began in, read along your moves as you heard them: where the record was every few milliseconds, and the crossfader, so that fast strokes and cuts come out as you played them.
The pads, keys and turntable play without a take too, for practice, and while the studio is stopped.
MIDI controllers
A MIDI controller plugged into what opens the page plays what is on its screen: drum pads by the General MIDI drum
map (as in the Record window), keys by their notes, and the turntable by its jog
wheel and crossfader. For the turntable, tap Learn MIDI, turn the jog wheel, then move the crossfader: the page
keeps what it learned. A browser lets a page use MIDI only on a secure connection, so this works on the demo’s page,
which is on claudius’ site, and, for the app and claudius serve, on the computer itself: Open it on this computer
in the Play from a phone window opens the page there, where a controller plugged into the computer plays it. Chrome
and Edge have MIDI, on Android too; Firefox has it once you allow the site’s MIDI add-on it offers; Safari has none, on
an iPhone either, but there the phone is the controller.
With the demo
The demo runs claudius in the browser tab, which a phone cannot reach, so the tab and the phone both join a room of a relay on claudius’ site, which passes what they say to each other. The room’s name is random and in the QR code alone; the relay keeps nothing of what passes through it. The phone needs the internet rather than your Wi-Fi, and the tab has to stay open: closing it closes the room (the phone says the demo is not open), and reloading it keeps the room, so the phone plays on. The demo’s engine renders the phone’s sounds and takes in the tab, after any render it is busy with, so the first sounds can take half a minute to arrive.
When it does not connect
- The page does not open. The phone and the computer have to be on the same network, and some networks (a café’s, a hotel’s, a guest network) keep their devices from reaching each other. The computer’s firewall may ask whether claudius may accept incoming connections: allow it. The page’s port is 7879, or another one when 7879 is taken.
- “This page is closed” means the studio stopped serving the page, or claudius restarted: open Play from a phone again and scan the new code.
- “stopped: play the song in the studio” stays while the studio is not playing: a take records along with the song, so the song has to play.