🔈 Click on the screen to turn the sound on
© 2026 Michael Wahrman. All rights reserved. · issues & questions
0:00

CT78.A10 · Synth

A toy synthesizer, drawn in WebGL (three.js) and played from MIDI. When a MIDI key goes down, the matching key on the toy goes down, lights up red, and sounds. The three small glass tubes on top each hold a glowing red/orange element (no bubbles) that flickers a little. Only the keys light up when you play; the tubes and the little lights on the panel do not react to the keys. The toy has 20 white keys and 14 black keys, C3 to A5 (MIDI 48–81). A MIDI note outside that range sounds in the nearest octave on the toy. Eight jacks with lights sit on the front (no patch cables).

Play mode (P or Space) plays a song on the keys by itself, as if a player were at the toy. You can also click or tap the keys with the mouse, and play along from MIDI. The doll (the centre caroler from CT68, without her candle) stands in front of the toy. In play mode the toy plays itself, like a player piano, and she plays along: her right hand the tune, her left hand the bass, each fingertip landing on its key as it goes down (in a chord one key per hand; the others go down by themselves). Her hands are palm down, her elbows out; she turns and reaches a little toward the keys, looks down at her hands, and mouths the words of the carols. When a song ends her hands rest on the keys for a second, then the next song starts; after the last song (We Wish You a Merry Christmas) there is a 5 s pause and the playlist starts again. The Doll group in the right-hand column has the controls of the original CT68 dolls (head, eyes, mouth, blink, sway, spin, Sing, Talk). Songs: Silent Night (electric piano), Joy to the World (organ, four verses), We Wish You a Merry Christmas (piano); each song sets its instrument and tempo, and the toy's display changes colour and picture with the instrument. ?doll=0 starts without her. CT78.keyTarget(note) gives the world position of a key's top and how far it travels; CT78.down(note) / CT78.up(note) press and release it. The display on the right (the info and the buttons) is showing at the start; H or the round ☰ button hides and shows it. The toy starts in play mode (P stops it); sound starts at your first click.

Buttons and keys

ButtonKeyWhat it does
PlayP Spacestart / stop play mode (the song on the keys)
ResetBackspaceall keys up, play mode off, timer to zero
● RecordRa movie of the picture with sound, at the picture's size and the display's speed; press again to stop and the MP4 downloads
Song ◀ ▶N nextchoose the song
Tempo − / +[ ]beats per minute of play mode
LoopKwhen a song ends, pause a few seconds, then go on to the next one (after the last, back to the first); the eight dials on the toy turn to the new song's settings
Sound / Tone / VolumeM T - =sound on / off; piano, electric piano, organ, toy organ, music box, chip (each song picks its own; Tone changes it until the next song); volume
Glow − / +, .how bright the red light is
BubblesBthe bubbles in the tubes
RoomLroom light on, so you can see the toy's body
ViewVher (the start: above, in front of the doll) / hero (from the player's side) / front / top / close on the keys (or drag the picture; the wheel zooms; double-click = the start view)
Look ◀ ▶ ▲ ▼← → ↑ ↓turn the toy
TurnOthe camera drifts slowly round the toy (on at the start)
☰ / InfoH Ishow / hide the display on the right; just the info

MIDI

Any MIDI keyboard plays the toy (Chrome or Edge; click MIDI → Connect if the browser has not asked yet). X-TOUCH MINI (default map): top row = Play, Reset, Record, Tone, Song, View, Bubbles, Room; bottom row = Loop, Sound, Turn, Info, Glow −, Glow +, Tempo −, Tempo +; knob 1 = tempo, 2 = volume, 3 = glow, 6 = turn left / right, 7 = look up / down, 8 = zoom; fader = volume. For any other device: right-click an on-screen button, then press a MIDI control (kept in this browser).

URL options: ?play=0 (start stopped), ?song=2,?sound=0, ?midi=0, ?fps=30, ?exposure=1.2, ?recw=1920&rech=1080.

MIDI

—

Notes from any device play the toy's keys. Right-click any button on the right, then press the MIDI control you want for it (Esc cancels). Learned controls are kept in this browser and shown in yellow; the defaults come from CT78.A10.Synth_midimap.js.

H or ☰ = show / hide this display · R = record a movie · ? help
click the keys · drag = turn · wheel = zoom · right-click a button = assign a MIDI control · D buttons · I info
Run
00:00.0timer
Song
Silent Nightsong
112bpm
Sound
80%volume
Light
100%glow
Look
Doll
Setup