Two robot hands play the piano, and teach it to your fingers.

One human performance in, one robot motion out. SBTO finds every finger motion by search in simulation, then the real hands play it on a piano. Built in one weekend in the Swiss Alps by four people.

Sebas, Sima and Henry setting up the robot hand at the piano The four of us next to the Leukerbad Robotics Carnival '26 banner, mountains behind The four of us in the evening, in pink light

♪ Play a key. Each one takes you to a part of this page.

Korobeiniki, both real hands · sound on 🔊15 Nov. The Russian folk song many know from Tetris, speeding up. Melody right, accompaniment left. The wrists stay where they are; every finger motion comes from the plan.
1 → 1human performance in, one robot motion out. No training.
40joints in step: two hands, 20 each.
1,000commands a second to every hand.
1weekend, four people, one upright piano.

Three things it does

Why a piano: it grades dexterity by itself. Every note is right or wrong, early or late.

1 · Search ↓

SBTO finds the motion

From the notes of any MIDI file, or from a recorded pianist. No teleoperation, no demonstration on the robot, no training run.

About 20 s per hand, after one full search

2 · Play ↓

One or two real hands play it

At full speed, in step, on a real upright piano.

5 pieces with both hands

3 · Teach ↓

The robot hand guides your hand

It rests on your hand and presses your fingers through the piece, phrase by phrase.

Down to 0.3 A finger current in a lesson

Teach mode

It teaches your fingers

The robot hand rests on yours and presses your fingers onto the right keys, at the right time. The same plan that moves the robot's fingers moves yours.

Hand on handThe robot plays the tune through the learner's fingers.
Sebas takes a lessonOde to Joy on the real hand, 16 Nov.
Gentle by designEvery finger motor runs under a current limit, and that caps how hard it can press. In our lessons we took it down to 0.3 A, a fifth of the 1.5 A ceiling.
Checked before it movesThe software reads the limit back from the hand and refuses to start if it is higher than asked.
Out at any momentSlide your hand out sideways whenever you like. While the hand moves, Stop sits in the top bar and makes the fingers go limp.
At your paceOne phrase or the whole piece, at 50, 75 or 100 % speed, 1 to 10 rounds, only the fingers you practise.

Why it matters: in a care home or after a stroke, a hand that guides yours through a song you know. Our pitch ↓
First lessons ran on the real hand on 16 Nov. Next: measure what a learner gains.

Pitch deck

The four-minute pitch that won the Elderly and Rehabilitation track: music as the way into care homes.

The first slide of our pitch deck: Helga's song, a piano keyboard along the bottom ▶ Open the slides

The story in four lines

  • Carers are missing: 115,000 care posts are unfilled in Germany today (German Nursing Council, 2025).
  • Humanoid robots could help, but to residents they can feel scary. A robot that plays the songs they know becomes familiar.
  • The same hand can guide a patient's hand: music-supported therapy improves hand function after a stroke.
  • Start with a hand that plays. Grow into a humanoid that leads music sessions.

How it works: SBTO

How does a robot hand play a song it has never played? Nobody records the motion and nothing is trained: a computer finds the motion by trying.

The problem

The notes don't say how

A song only says which key and when. It doesn't say how 20 finger joints should move to put each fingertip there on time, on a piano that never stands exactly where we think it does. And once it plays, the hand can't look or correct itself.

The trick

Try, keep the best, repeat

Guess a motion. Play 48 slightly different copies of it in a simulator, each on five pianos that stand a little differently. Keep the 8 that play best across all five and guess again around them. Six rounds, then on to the next half second of music.

No training

One performance in, one motion out

No neural network, and nobody moves the robot to show it. The method is SBTO (sampling-based trajectory optimisation) from the ATARI Lab at TU Munich (paper). The piano version is ours, written that weekend.

  1. NotesA MIDI file: which key, and when.
  2. FingersWhich finger plays which key.
  3. First guessJoint angles that aim each fingertip at its key.
  4. SearchTry, score, keep the best. Try it below ↓
  5. Plan1,000 commands a second for the real hand.

Try it: help the robot hand find the keys

This is the search, made small and seen from above. You pick the keys, the hand finds them.

  1. Pick keysClick up to five keys between B and A, the ones the hand can reach. Each key gets a finger. Click a key again to drop it.
  2. Try 48 spotsA finger doesn't know exactly where the piano stands. So it tries 48 spots around its guess (the small dots), each one on five pianos that stand a tiny bit differently (the dashed outlines).
  3. Keep the 8 bestThe 8 spots that hit the key best win (the black dots). The finger moves to their middle and tries again, a little closer each round, until it hits on every piano.

Press ▶ Hear it before the search and after it: the hand plays your keys in the order you picked them, or the start of Ode to Joy. You can also drag a fingertip away and watch it find its way back. The rule is the one our real search uses (the cross-entropy method): 48 tries, the 8 best kept, the new spread (standard deviation) 60 % from the kept tries and 40 % from the old one. Here a try is a dot and the score is how near the middle of the key it lands on each piano; in the real search a try is a whole simulated hand.

The real search, in numbers

Wuji Hand 2.2: 20 joints, 1 kHz control, 800 g, 12 V
Wuji Hand 2.220 joints, controlled 1,000 times a second.
Mount: flange 6 cm above the white keys, 12 cm in front of the keys, level
Where the hand sitsLevel, 6 cm above the white keys. The wrist does not move.

Next: the arm moves the wrist

Real robot armFirst test on a real arm: Stille NachtOne hand on a RobCo robot arm plays Silent Night, and the arm moves the hand along the keyboard. A first test at the end of the weekend: one hand, slow on purpose. It shows where this goes next.
Until nowThe wrists stayed in place, so each hand reached five neighbouring keys.
NextThe search does not care which joints it moves. Add the joints of the arm and the wrist joins the same search: the whole keyboard instead of five keys per hand. In the lab's version, SBTO already plans a robot arm and a hand together.

In simulation the moving wrist already plays at full speed:

Für Elise, openingThe search plans the wrist too: 27 hand shifts in 25 s. 82 / 86 notes.
Following a pianist's wristMozart K.265. The recorded pianist's hands, see-through, over the robot plan made from their notes and wrist path. 75 / 80 notes.

Beyond the piano: human motion in, robot motion out

The search does not know what a piano is. It needs three things: what a human did, a simulator, and a score. That makes it a way to turn human motion into robot motion in general (retargeting), not only to play notes.

A humanoid at the piano

The whole player, not two hands

Record a person sitting at the piano in 3D, and the same search can fit a humanoid's body, arms and hands to that recording.

Holding, not only pressing

Objects in the hand

Swap the notes for a recording of hands and the object they hold. The search then finds how a robot arm and hand move that object the way the person did. This is the lab's DynaRetarget and Simon's thesis.

Another score

Any task a simulator can grade

Strings, valves, drum pads: change the simulator model and the score, keep the search.

The full method, with every number ↗How it works, in the README

On the real hands

Two Wuji Hand 2 on an upright piano, full speed. Every video on this page has sound. Korobeiniki is at the top.

Jingle Bells, both real hands15 Nov. Melody right, accompaniment left.
Ode to Joy, both real hands15 Nov. Melody right, accompaniment left.

The studio

One browser window for everything: pick a song, search a plan with a time estimate, play it on one or two hands, or give a lesson. It also runs from a laptop or phone next to the piano.

The studio's library: pieces on the left, the selected piece with its notes and its plans on the right
LibraryOur pieces, 14 Christmas songs, 153 recorded piano performances, and your own MIDI files.
Retarget: piece, hand, how detailed the search is, and the time it will take
RetargetThe search, for one hand or both, with the time it will take before you start.
Play: two hands, notes falling onto the keyboard in step with the hands
Play and TeachNotes fall onto the keyboard in step with the hands. While a hand moves, Stop sits in the top bar.
The studio's 3D view: the recorded pianist's hands, faint, and the simulated robot hand on one keyboard
3D viewThe recorded pianist, faint, and the robot plan made from it, on one keyboard and one clock.
Studio guide ↗Every page of the browser app, in docs/STUDIO.md

In simulation

Where every plan is found and rehearsed. The sound is synthesised from the keys the simulation pressed, wrong notes included.

Korobeiniki, two hands120 → 200 bpm. 78 + 123 notes, 0 wrong.
Ode to Joy, two hands62 + 127 notes, 0 wrong.
Jingle Bells, two hands51 + 123 notes, 0 wrong.
Pachelbel's Canon, two handsSimplified, 72 bpm. 26 + 26 notes, 0 wrong.
When the Saints, with a black keyD major: the middle finger plays F♯. 32 / 32 notes.
Pianist and robot, side by sideMozart K.265, real time, then slow motion.

Photos

From the weekend in Leukerbad: mountains, robots and one upright piano.

One of us with the carnival badge under the rock walls of Leukerbad, blue sky Leukerbad: the village under the rock walls, larches in autumn colours The carnival hall from the top row: two humanoid robots on stage, the audience around them Coding at the hackathon tables, the robot hand next to the laptop Trying the gloved robot hand on a tablet piano at the hackathon tables A laptop webcam tracking a raised hand while the robot hand copies it Leukerbad in fresh snow, clouds on the rock walls A Wuji hand in a black glove, mounted on a robot arm, at the upright piano A lesson at the upright piano with the robot hand resting on the learner's hand One of us holding a small humanoid robot among the robots at the carnival Robots unpacked from their cases on the floor, drinks in hand The gloved robot hand held up in the hall before the pitches

More of Simon's photography: Instagram @simonkruelle ↗

Team

Four players, one quartet, and the people who made it possible.

From left: Sima, Sebastian, Simon and Henry in Leukerbad, the rock walls and autumn larches behind
Sima Smadi on LinkedIn

Sima Smadi

Team management, pitch deck, strategy, presentation

Sebastian Serna on LinkedIn

Sebastian Serna

RobCo robot arms, webcam teleoperation, idea for Teach mode

Simon Kruelle on LinkedIn

Simon Kruelle

Idea · code and website

Henry Hehl on LinkedIn

Henry Hehl

Team management, robot arms, pitch deck

Acknowledgements

This project stands on other people's hardware and help. Thank you.

Edelweiss Innovation & Intelligence Institute (EIII)

Hardware support: EIII ↗

Thank you to the Edelweiss Innovation & Intelligence Institute (EIII) for the hardware support that made this project possible, and for the hackathon weekend at the Leukerbad Robotics Carnival '26.

Code and documentation

Everything is open: the code, the plans the hands played, and how to run it.