WorksComputer Science
AIRPiano: Piano Score Following with Tabletop Hand Gestures
Abstract
AIRPiano aims to bring sound to the common practice of rehearsing piano music on a tabletop. Guided by a known score, users make piano-like finger movements on a flat surface without reproducing absolute keyboard positions. The score supplies pitches, while hand motion determines which score events to play and when. We formulate this interaction as online alignment between tabletop hand motion and symbolic score events. To address the ambiguity of tabletop motion, its differences from piano-playing motion, and the scarcity of aligned motion-score data, we develop motion and score representations, build a data processing pipeline, and train a Transformer with supervised attention on existing piano performance recordings. We further design a streaming inference framework that combines local alignment predictions with sequence tracking for real-time interaction. We construct two evaluation sets, VSF-Piano and VSF-Tabletop, to assess alignment on piano and tabletop performances, respectively. After a post-hoc global timing adjustment, AIRPiano achieves a mean chord alignment rate of 74% within a 133 ms tolerance on the paired subset of VSF-Tabletop, compared with 79% on VSF-Piano.
Introduction
When a piano is unavailable, pianists may still want to rehearse a piece. Under the circumstances, they can tap their fingers on a table or their thighs or even in the air, either while reading a new score or recalling a familiar piece. A system that translates such movements into sound could support practice by helping pianists assess how their approximate finger movements correspond to the score. It could also enable expressive performance without a physical piano or the need to reproduce precise key locations, reducing technical demands particularly in passages involving large leaps.
Many existing virtual piano systems enable music-making without a physical piano by mapping fingertip taps to keys on a virtual or paper keyboard [1, 20, 37, 38, 40]. However, virtual or paper keyboards may not always be readily available, and a full-sized keyboard layout requires substantial surface space. Without tactile key boundaries, accurately targeting the key corresponding to the intended pitch can also be challenging.
Score-guided systems offer an alternative by supplying pitches from a known score while allowing performers to control aspects of timing and dynamics [5, 15, 24]. Some systems use visual hand tracking and score-aligned rehearsal references to follow performances on a physical keyboard [27, 34].

Figure 1. An illustration of our AIRPiano system. The score supplies the pitches, while tabletop hand motion determines which score events to play and when. The dashed arrow links the current video frame to the score event selected for real-time MIDI playback.
However, directly aligning tabletop hand motion to symbolic score events, without any keyboard or piece-specific rehearsal reference, remains underexplored. We consider the setting where a pianist rehearses a piece from a known score using piano-like finger movements within a limited tabletop area, without aiming for fixed key positions. We formulate this task as online motion-score alignment, a form of visual score following that uses hand motion instead of the more commonly used audio or MIDI inputs.
This alignment task presents several challenges. The main challenge is that tabletop movements need not preserve the absolute spatial arrangement of pitches on a full keyboard. Tap positions may follow the keyboard’s relative pitch ordering within a passage, but the same tabletop area can be reused across different pitch ranges, making absolute hand position an unreliable cue for alignment. Furthermore, hand motion and symbolic scores differ substantially in their representations and temporal structure. Paired motion-score data are scarce, and motion in existing piano performance recordings differs from that in tabletop interaction. Addressing these challenges could enable immediate musical feedback during tabletop practice and provide a foundation for richer expressive control, such as per-note velocity control.
In this paper, we introduce AIRPiano to address these challenges.1 Our main contributions are:
We formulate score-guided audible tabletop performance as an online motion-score alignment task and construct VSF-Piano and VSF-Tabletop evaluation sets for this new task with an event-level evaluation protocol.
We build a data processing pipeline to extract aligned motion and score data from existing piano performance recordings, develop representations that facilitate transfer from piano performance to tabletop interaction, and train a Transformer with supervised attention to learn correspondences between the two modalities.
We design a streaming inference framework that combines local alignment predictions with sequence tracking for real-time interaction.
Related Work
Score-Guided Visual Pianos
Vision-based virtual pianos. Many studies have explored virtual performance interfaces for different instruments. The piano is a popular example, and advances in computer vision have made it possible to capture piano-like gestures using widely available cameras or infrared hand-tracking devices. Some systems detect virtual keystrokes by tracking fingertip movements in single-view video or by detecting taps on an unmarked flat surface with an RGB-D camera [20, 40]. Others use a keyboard drawn on paper to inform players which tap locations correspond to which pitches [1, 37, 38].
On a physical piano, a camera can locate individual keys and detect when they are pressed [14]. Visual piano transcription systems can therefore estimate the pitches played on a real piano from video alone [16, 35]. A flat surface, however, provides no tactile boundaries between keys and no visible change in key state. This makes it harder for the player to specify a pitch and for the system to identify it. Matsusue et al. try to address this problem by combining fingertip position with a given chord progression to correct the detected pitch, but the choice is still limited to the key at the detected tap position or a neighboring key [22]. Piano Genie takes a different approach for improvisation, using a learned decoder to map presses on eight buttons to piano notes [8]. These approaches do not use a full score to guide performance.
Score-guided performance interfaces. Conducting is the art of guiding an ensemble’s interpretation of a musical score. Virtual conducting gives users a similar role, letting them shape tempo or dynamics of a performance given a score or a recording. Personal Orchestra and You’re the Conductor track baton movements to control the playback of orchestral recordings [3, 19]. Home Conducting maps movements captured by a webcam to expressive changes in the performance of a score [11]. Mermerci et al. estimate the conductor’s phase within a bar from body motion using an LSTM, then use the resulting beat cues to adjust playback speed [23].
The same idea of letting a performer shape a known piece also appears in score-guided piano interfaces. In Coloring-in Piano, each keypress triggers the next pitch in a stored sequence [24]. iFP combines the performer’s beat timing and dynamics with a performance template that shapes the notes within each beat [15]. In Con Espressione!, hand movements control overall tempo and loudness, while a model predicts local variations in timing, dynamics, and articulation for each note in the score [5].
The piano gesture-tracking component of IMuSE is closer to our setting because it follows the hand movements of a pianist. To synchronize the accompaniment, it matches live hand movements to prerecorded rehearsal trajectories aligned with the score [34]. However, this requires a reference trajectory for each piece rather than the symbolic score alone, and the pianist performs on a physical keyboard rather than a tabletop.
Score Following
Performance-score alignment links events in a score to the times at which they are played. Offline methods can use the entire performance to match individual notes, as in TheGlueNote, which learns note similarities between MIDI sequences [30]. Online score following tracks the musician as they play, enabling applications such as automatic accompaniment. For symbolic input, approaches range from Dannenberg’s [7] incremental matching of incoming notes to a tracking policy trained with offline reinforcement learning [29]. Audio-based systems can track score position online from acoustic features [25] or first transcribe the performance and then align the resulting note events to the score [28].
Compared with audio-based score following, video-based score following has received less attention. Nevertheless, video can provide evidence of score position when the audio is ambiguous or absent. Like IMuSE [34], the system of Pet and Maezawa uses a score-aligned rehearsal reference. It combines audio with hand and fingertip positions along the keyboard to improve tracking in noise, and was also evaluated using hand landmarks alone [27]. Movement can also provide an early cue to timing. As future work, Raphael and Gu proposed using piano-key motion to anticipate note strikes when the piano and orchestra enter together [32]. Research also shows that pianists exhibit pre-contact finger motion during tabletop tapping [21]. These movements could give an interactive system time to process a gesture before the intended onset.
However, directly aligning tabletop hand motion with a symbolic piano score remains underexplored. On a tabletop, the same tap location can correspond to different pitches, introducing spatial ambiguity that existing audio-based and keyboard-based visual score-following methods do not address.
Method
AIRPiano uses a Transformer to combine observed hand motion with pitch and rhythm patterns in the score and predict local motion-score alignments. Its streaming inference framework combines these predictions with sequence tracking to follow the pianist through the full score and schedule chord playback. The system predicts upcoming chord onsets from the observed motion history to allow for inference latency.
Problem Formulation
As discussed above, we formulate the task of AIRPiano as online motion-score alignment. We currently focus on onset events because they mark when notes begin and are the basic timing events needed to trigger score-guided playback. Let denote a known sequence of chord-onset events. Notes with the same quantized onset position in the score are grouped into chords, and events are ordered by these positions.
Let denote a sequence of hand motion video frames received sequentially. We represent the alignment at frame by a set containing the events assigned to that frame,
At each frame, zero, one, or multiple events may be triggered. An ideal alignment satisfies uniqueness, coverage, and monotonicity: specifically, for , , and and with imply . Nevertheless, the model is not explicitly constrained to satisfy all these properties.
At streaming step , the system uses the observed video history and the full score to predict which events should be triggered frames later, i.e., the set . Here denotes the anticipation in frames, following [26]. At a frame rate of , which we currently fix at 30 frames per second, the corresponding anticipation is seconds. A positive provides time for motion processing, model inference, and sound preparation before the predicted onset.
Motion and Score Representations
Motion. Instead of feeding a video frame directly into the model, we first extract hand poses to remove keyboard and background appearance from the input and provide a compact representation for the alignment backbone. We use WiLoR [31], a recent state-of-the-art hand localization and reconstruction model, to estimate 3D poses for both hands, each represented by 21 joints, following the tradition of MediaPipe [41]. For each detected hand, WiLoR outputs a complete set of joint estimates in physical units, inferring invisible joints when the hand is only partially visible, and marks a hand as missing only when it is not detected at all.
Let denote the estimated position of joint of hand at frame in metric camera coordinates, expressed in decimeters, where and denotes the wrist. We also define a binary presence flag , where iff hand is detected at frame , regardless of whether all its joints are visible. When , we set for all joints. For the 20 non-wrist joints, we compute their positions relative to the wrist,
Since similar finger movements can occur at different tabletop locations, this representation captures local articulation while reducing reliance on absolute hand position.
To retain information about hand translation, such as movement during large leaps, we also compute the wrist displacement between consecutive frames,
Each hand is therefore represented by wrist displacement in joint slot 0 and wrist-relative positions in the remaining 20 slots, as well as the presence flag .
Score. For each chord-onset event , its pitch content is encoded as a 128-dimensional multi-hot vector , whose entries indicate the presence of MIDI pitches from 0 to 127. To represent the score’s rhythmic structure, we encode the interval from each event to the next event in score time a.k.a. beat, which allows the model to use relative timing cues alongside pitch content when aligning hand movements with the score. Let denote the quantized onset tick of event , measured at 24 ticks per beat to support common binary and triplet subdivisions without rounding. Its inter-onset interval (IOI) feature is
For the final event, the interval extends to the latest offset of its notes. We clamp to [1, 96] ticks and encode it as a 96-dimensional one-hot vector .
Cross-Modal Alignment Learning
Model. For each frame , we process it as described above, flatten and for both hands, and append , yielding a 128-dimensional vector. An MLP embedding block projects it into a 512-dimensional token containing information from both hands. For each event , the pitch vector and IOI vector are separately projected into 512-dimensional embeddings and added together. Each embedding block consists of a linear layer followed by GELU, layer normalization, and dropout.
We use a Transformer encoder-decoder architecture [36], with sinusoidal positional encodings added to the motion and score tokens. The score tokens pass through four encoder layers with bidirectional self-attention; the motion tokens pass through four decoder layers with causal self-attention over motion frames and cross-attention to the encoded score. Thus, each motion token incorporates the observed motion history and the candidate score context.
Motivated by attention-based alignment in machine translation [13] and speech synthesis [33], we use a single supervised attention-style scoring head for motion-score alignment. For an input pair containing frames and candidate events, let and denote the resulting motion and score representations. The head computes an alignment matrix using attention-style scaled dot products,
where and are learned query and key projections to dimensions, is a learned scalar bias, and is the sigmoid function. We use an entrywise sigmoid instead of softmax normalization to allow zero, one, or multiple events to receive high scores at each motion frame. We still refer to this output as the supervised attention matrix.
Supervision. We construct a soft target matrix from aligned performances. Following the onset regression targets of Kong et al. [18], we use triangular temporal targets. Let denote the reference onset time of event in seconds. Using the global motion-frame index and frame rate , we define
where is the temporal radius and is a temporal offset. Figure 3 illustrates the resulting framewise targets and the motivation behind this design.
Figure 3. An example of triangular onset supervision. The smooth profile reduces abrupt label changes under small timing shifts, while a positive encourages the model to use preparatory hand movements for anticipatory alignment. Both can support the prediction of from the observed motion history .
We supervise with using binary cross-entropy averaged over valid frame-event pairs, excluding padded frames and events. Each predicted entry is therefore an onset score ranging from 0 to 1, trained to follow the temporal target for event at frame . During streaming inference, these continuous scores are converted into discrete decisions about which score events to trigger.
Streaming Inference
As described above, the model is trained on local score windows and their corresponding motion segments. To apply it to streaming hand motion of arbitrary duration, we design a streaming inference algorithm, inspired by Dannenberg’s incremental matching and sliding window strategy [7]. The algorithm maintains a score window , a motion history with starting frame index , and an anchor-time map . Upon receiving each frame , it runs the model on the score and motion windows, triggers events from the onset scores at frame , and schedules MIDI playback at the predicted onset times. It then uses DP tracking to decide whether to accept each triggered event as a timing anchor and updates accordingly. After each window update, is updated to match the beginning of using available anchors in . This process continues until the input motion frame stream ends. The main operations are detailed below.
Triggering of events. At frame , the last row of the predicted alignment matrix provides the onset scores for events in . An event is triggered when its score exceeds 0.5, and triggering is re-enabled only after the score falls below 0.5. This prevents a sustained response from generating repeated triggers. On the rising branch of the triangular profile defined in Eq. (6) and illustrated in Figure 3, solving for a target value of 0.5 gives the crossing time , which is seconds ahead of . Ideally, a nominal anticipation of seconds can therefore be obtained by choosing
The system then schedules the pitches of each triggered event for playback at with a fixed velocity and duration. Due to processing overhead, the scheduling decision for frame is made after its timestamp , but ideally before the scheduled onset , leaving time to prepare playback.
Dynamic programming. Following Dannenberg’s adaptation of the longest common subsequence (LCS) problem for online score following [7], we use dynamic programming (DP) to incrementally match triggered event indices against the sequence of score event indices . Specifically, for a triggered event index , let and denote the DP scores at score position before and after the update, with initial scores and boundary value . We update, for ,
Matching an event contributes 1, skipping an event costs 1, and an extra triggered event can be ignored without penalty. We accept a triggered event only when the DP update produces a new historical best. Following Dannenberg’s window-update strategy, an accepted event supplies a timing anchor and recenters around ; otherwise, the trigger still advances the window by one score event.
– Motion-history start estimation. To remain consistent with the training setup, we need to align the beginnings of the motion context and score window after each window update. To be more specific, we estimate the onset of the first event . We use if available; otherwise, we apply linear interpolation between surrounding anchors or extrapolation from the nearest endpoint pair using the target position and the anchors’ score positions. The starting frame index is hence updated as , clamped to .
Training
Training Data
As discussed above, to our knowledge, no public tabletop motion-score dataset is available. Piano performance datasets with symbolic scores are also scarce, with recent examples such as SKY-Piano [2] containing 11 hours of recordings. Synchronized piano video and audio, such as top-view recordings of piano performances, are more readily available. We use PianoMotion10M [12], which contains 116 hours of top-view piano performance videos collected from Bilibili. We observe that these recordings predominantly feature popular music and supplement them with classical piano performances from PianoYT [17], a dataset containing over 20 hours of piano performance videos collected from YouTube. Using the provided links, we download videos together with their corresponding audio. We select videos at a resolution of 1920 × 1080 pixels and 30 frames per second where available, resampling when necessary and excluding inaccessible recordings.
We use the training split of PianoYT and both the training and test splits of PianoMotion10M for training. Since we have our own test set, this allows us to make fuller use of the available recordings, particularly the substantial test split of PianoMotion10M, which is even larger than its training split. We retain the validation split of PianoMotion10M for in-domain evaluation.
Data Preparation
As illustrated in Figure 2, motion processing follows § 3.2, using the same pipeline during training and inference. Meanwhile, the score representation in § 3.2 assumes chord-onset events with pitch content and quantized score positions, which are not directly available in datasets with only synchronized piano video and audio. We therefore try to transcribe approximate scores by quantizing transcribed performance MIDI against an estimated beat grid. We also retain the original performance onset times to derive the reference onsets required for alignment supervision in § 3.3.
Figure 2. Overview of AIRPiano’s data processing and training framework. (a) WiLoR extracts 3D hand poses from video, which are converted into wrist-relative joint positions and wrist displacements. (b) TransKun [39] and Beat This! [10] extract MIDI notes and a beat grid from the corresponding audio. MIDI notes are quantized and grouped into chord-onset events, represented by pitch multi-hot and IOI one-hot vectors for model input, while original performance onset times provide soft alignment targets. (c) A score encoder and a causal motion decoder produce frame-to-chord alignment predictions through supervised attention. The model is trained using framewise binary cross-entropy between the predictions and soft targets.
Specifically, we transcribe each recording’s audio into MIDI notes with onset and offset times using TransKun 2.0 [39] and estimate beat times using Beat This! [10] with DBN postprocessing (ignoring downbeat labels) as shown in Figure 2(b). We use 24 ticks per beat, restricting candidate offsets within each beat to to cover common binary and triplet subdivisions. Candidate timestamps are obtained by linear interpolation between detected beats, and each transcribed note onset and offset is mapped to the candidate tick with the nearest timestamp. Notes sharing the same quantized onset form an event at tick . Its reference onset is the mean of its notes’ original transcribed onset times.
Sampling and Augmentation
We sample overlapping score windows of chord events with a stride of 12 events and extract the corresponding motion segments using their reference onset times. We discard windows in which neither hand is detected in more than 20% of the frames, helping filter out invalid segments such as video intros and outros.
For motion augmentation, we independently perturb the start and end of each motion segment by up to 0.5 seconds to reduce dependence on precise window boundaries. For score augmentation, we scale all IOI values within each segment by a shared factor sampled uniformly from to reduce reliance on their absolute scale.
Model Configuration and Training Setup
Each Transformer layer uses eight attention heads and a feed-forward dimension of 2048, with GELU activation, pre-layer normalization, and dropout of 0.1. For the triangular supervision in Eq. (6), we set seconds and seconds, corresponding to a nominal anticipation of seconds.
We train for 20 epochs using AdamW with a peak learning rate of , weight decay of 0.01, and gradient norm clipping at 1.0. We use linear warmup over the first 5% of optimizer steps followed by cosine decay. Training uses BF16 mixed precision and an effective batch size of 16, taking approximately 8 hours on a single NVIDIA RTX 4090 GPU with 24 GB of memory. We use the final-epoch checkpoint for evaluation.
Evaluation
VSF-Piano and VSF-Tabletop
Ground-truth motion-score alignments are difficult to obtain for tabletop performances, which produce no pitched sound. We therefore design a recording and annotation protocol in which participants follow playback of reference piano performances, allowing reference onset times to serve as pseudo ground truth. Using this protocol, illustrated in detail in Figure 4, we construct two test sets, VSF-Piano and VSF-Tabletop, where VSF stands for visual score following. VSF-Piano contains piano recordings from two pianists, while VSF-Tabletop contains tabletop recordings from four participants, including these two pianists. All four participants are amateur pianists who can read piano scores, and the pieces were selected to be within their piano playing abilities.

Figure 4. Collection and annotation of VSF-Piano and VSF-Tabletop. Given a score of a known piece, a piano performance is first recorded; each reference piano performance is followed by two tabletop participants, including the performer, who read the same score and try to match the timing of the playback using natural piano-like finger movements on the tabletop, without needing to reproduce absolute keyboard positions. The recordings are synchronized using the shared playback audio to transfer reference onset times from piano to tabletop recordings. We then use TransKun [39] to transcribe the piano audio and Parangonar [29] to align the score MIDI with the transcription, allowing for minor performance or transcription errors. The resulting aligned score MIDI contains score notes at estimated performance times for alignment annotation, while their quantized positions in the score are preserved for chord tokens through a timing map. (During real-time inference, quantized chord tokens can be obtained directly from score MIDI with marked beats; here, the aligned score MIDI also provides reference onset times for evaluation.)
We select 10 pieces covering different musical styles, tempi, rhythmic patterns, and musical textures. Ornaments such as trills are explicitly realized as note sequences in the score MIDI. Since these well-known pieces may also appear in the source training corpora, we compare MIDI sequences using flexible dynamic time warping (DTW) [4], accounting for tempo differences and transposition, and exclude the identified overlapping recordings from training. Recording durations range from approximately 30 to 150 s, covering both short and extended performances. All test videos are recorded from an overhead view at 1080p and 30 fps, with the line joining the wrists approximately parallel to the bottom edge of the video frame, similar to the training data. Backgrounds and exact camera viewpoints may vary across participants.
Other Evaluation Set
As mentioned above, we also use the held-out validation split of PianoMotion10M for in-domain alignment evaluation on piano-playing recordings from the same source as the training data. We construct 30, 60, and 120 s variants, denoted PM30, PM60, and PM120, respectively, to assess alignment performance over different sequence lengths. For each duration, we randomly extract one clip from each sufficiently long recording.
Model inputs and reference onset times are obtained using the same data processing pipeline as for training.
Evaluation Metric
It is challenging to establish a directly comparable baseline for our tabletop motion-score alignment setting. Nevertheless, we adapt alignment evaluation from conventional score following [6, 9] to provide an interpretable measure of absolute alignment performance. Following the alignment-rate definition, we use a chord-level variant, termed chord alignment rate (C-AR), as our main evaluation metric, defined as the proportion of reference chord events aligned within a specified timing tolerance. Specifically, given reference alignment sets obtained by quantizing onset times to the frame grid and predicted alignment sets , let and denote the reference and predicted onset frames of event , i.e., and . For a tolerance of frames,
where is the indicator function and is the number of reference chord-onset events. If an event has no predicted alignment, we set so that it counts as a failure; if multiple predicted alignments exist, we use the earliest frame. We report the mean C-AR across recordings (macro-averaging), giving each performance equal weight.
Results
Main Results
As shown in Table 1, our model achieves C-AR@8 above 96% on the in-domain evaluation sets PM30, PM60, and PM120. Performance remains similar across these durations, suggesting stable streaming alignment over the evaluated sequence lengths. C-AR@8 decreases to 80.71% on VSF-Piano, suggesting a domain gap between the source recordings and our collected performances. On VSF-Tabletop, C-AR@8 is 67.77%, while the paired subset achieves 73.08%, with a relative decrease of only 9.45% compared with VSF-Piano, supporting the model’s zero-shot transfer from piano to tabletop motion.
| Evaluation set | C-AR@2 | C-AR@4 | C-AR@8 | C-AR@16 |
| VSF-Piano | 6.10 | 26.64 | 80.71 | 88.90 |
| VSF-Tabletop | 9.24 | 26.71 | 67.77 | 76.17 |
| VSF-Tabletop (paired) | 6.20 | 23.20 | 73.08 | 83.82 |
| PM30 | 64.25 | 88.20 | 96.06 | 96.96 |
| PM60 | 63.48 | 87.29 | 96.09 | 96.92 |
| PM120 | 65.57 | 89.01 | 96.83 | 97.37 |
| VSF-Piano (+5 frames) | 58.83 | 79.46 | 85.98 | 88.79 |
| VSF-Tabletop (+5 frames) | 44.40 | 63.94 | 72.83 | 76.06 |
| VSF-Tabletop (paired, +5 frames) | 52.05 | 74.03 | 81.26 | 83.87 |
Table 1. Macro-averaged chord alignment rates (C-AR, %) on VSF-Piano, VSF-Tabletop, VSF-Tabletop (paired), PM30, PM60, and PM120, with tolerances of 2, 4, 8, and 16 frames. VSF-Tabletop (paired) includes tabletop recordings from the same two pianists as VSF-Piano, reducing differences in participant composition. For rows marked +5 frames, reference onset times are shifted later by five frames (approximately 166.67 ms at 30 fps), with predictions unchanged.
C-AR@2 and C-AR@4 are substantially lower on the VSF datasets than on the PM datasets. We search for the integer-frame shift of reference onset times that maximizes macro-averaged C-AR@4. A shift of +5 frames, moving the reference onsets later, is optimal for both VSF-Piano and VSF-Tabletop. This shift markedly increases C-AR@2 and C-AR@4, suggesting a systematic timing offset, with predictions tending to occur approximately five frames after the reference onsets. No comparable offset is observed on PM60, suggesting that the bias is likely related to differences between the training and VSF data. Differences in audio delays relative to video across recording devices may contribute to this bias, as reference onset times are derived from audio rather than video, and actual gesture onsets are not independently measured. Due to these uncertainties, which may particularly affect evaluation at strict tolerances, we use C-AR@8 with the original, unshifted reference onset times for the main analysis.
Analysis across Participants and Pieces
Figure 5 shows alignment performance for each participant-piece combination. Some recordings approach 100%, indicating nearly complete alignment, while others fall below 50%, reflecting major failures such as losing track partway through a performance. Overall, performance appears to vary more across pieces than across participants or piano/tabletop conditions. However, participant-specific failures also occur; for example, P3’s low score on S1 (Bach’s Prelude in C major, BWV 846) may be related to his distinctive fingering, while omitted tapping gestures during his tabletop performance of S3 (Beethoven’s Piano Sonata No. 8, III) may contribute to tracking errors.
Figure 5. Heat map of C-AR@8 (%) across four participants (P1 to P4) and excerpts from ten pieces (S1 to S10) on the VSF datasets. P1 and P2 contribute both piano and tabletop performances, while P3 and P4 contribute tabletop performances only, following playback of piano performances by P1 and P2, respectively.
Among the more challenging pieces, S6 (Debussy’s Clair de lune) presents difficulties in onset detection from the beginning (Figure 6(a)), suggesting that small hand movements during slow passages provide weak visual onset cues. In S8 (Mozart’s Piano Sonata No. 16, I), tracking failures occur during fast scale passages (Figure 6(b)), possibly because the limited number of motion frames per note makes successive movements difficult to distinguish. A higher frame rate may help capture these rapid movements. In contrast, S7 (Petzold’s Minuet in G major) and S4 (Chopin’s Grande valse brillante, Op. 18) generally perform better, potentially benefiting from simpler patterns or steady left-hand accompaniment that provides strong alignment cues.
Figure 6. Streaming alignment examples on VSF-Tabletop. (a) S6 (P2) exhibits weak or misplaced responses from the beginning. (b) S8 (P3) shows a tracking deviation during a rapid scale passage, where the steeper GT trajectory reflects more closely spaced onsets.
Ablation Study
Table 2 reports ablation results on both VSF datasets, with PM60 included to assess in-domain performance. For motion representation, row 2 replaces the non-wrist XY coordinates with the XY components of for , where is the mean wrist position computed over training data for normalization. Wrist-relative Z is retained because absolute depth estimates can be unstable, while wrist displacement remains unchanged. This improves VSF-Piano performance but reduces VSF-Tabletop performance greatly, supporting the role of wrist-relative coordinates in piano-to-tabletop transfer. In row 3, setting reduces overall performance, indicating that wrist translation provides useful information beyond local finger articulation. In row 4, we disable the independent perturbation of motion-segment start and end boundaries by up to 0.5 s. This slightly improves PM60 but lowers performance on both VSF datasets, particularly VSF-Tabletop, suggesting that boundary augmentation may help tolerate inaccurate motion-window placement when alignment predictions are less reliable.
| Row | Variant | PM60 | VSF-Piano | VSF-Tabletop |
| 1 | Ours | 96.09 | 80.71 | 67.77 |
| 2 | absolute joint XY | 95.88 | 82.83 | 58.42 |
| 3 | w/o wrist displacement | 95.14 | 70.20 | 61.49 |
| 4 | w/o hand-window jitter | 96.63 | 76.44 | 60.03 |
| 5 | w/o IOI feature | 92.79 | 80.29 | 66.17 |
| 6 | w/o IOI scaling | 94.90 | 61.48 | 48.83 |
| 7 | s, | 96.55 | 81.54 | 66.39 |
Table 2. C-AR@8 (%) for ablation variants on the in-domain evaluation set PM60, and test sets VSF-Piano and VSF-Tabletop.
For score representation, disabling IOI scaling augmentation (row 6) substantially reduces VSF performance, while completely disabling the embedding branch for the IOI vector (row 5) yields similar performance on VSF but lower performance on PM60. This pattern suggests that the model may rely on rhythmic patterns specific to the automatically constructed training scores, reflecting a possible gap between these transcribed scores and real scores used during inference. IOI augmentation may help reduce this gap. Training with performances aligned to real scores is therefore a potential direction for further improvement.
Finally, setting s and (row 7) yields similar performance while preserving the nominal anticipation s. Nevertheless, allowing a separate target shift provides flexibility: when the desired anticipation changes, we can jointly adjust and to match it while controlling the temporal spread of supervision.
Runtime and Latency
We measure per-frame processing time on a single RTX 4090, using 1,800 frames after a 60-frame warm-up for both WiLoR and AIRPiano inference. WiLoR has mean and 95th-percentile (P95) processing times of 60.45 and 62.13 ms, respectively, compared with 6.68 and 6.88 ms for AIRPiano, which accepts extracted hand poses directly. Hand extraction therefore accounts for most of the processing cost.
At 30 FPS, under ideal parallel execution, distributing alternating frames across two GPUs gives each GPU ms to process a frame, exceeding WiLoR’s P95 extraction time. The P95 processing times measured separately for WiLoR and AIRPiano sum to less than 100 ms. With an anticipation of ms, this should leave a nominal budget of over 100 ms for camera capture, audio output, and other overhead. We have implemented a live system and recorded a demonstration using WiLoR’s fast inference mode for its greater throughput and latency margins. Comprehensive end-to-end latency measurements and a user study are left to future work.
Conclusion
We presented AIRPiano, a score-guided system that turns tabletop piano gestures into sound through online motion-score alignment. By combining motion and score representations, supervised alignment learning, and streaming sequence tracking, AIRPiano learns from existing piano performance recordings to support tabletop interaction. Evaluation on VSF-Piano and VSF-Tabletop provides an initial assessment of this approach across piano and tabletop performances. Our evaluation focuses on alignment accuracy and processing time, which may not fully capture users’ experience of playing with live feedback. Future work will therefore refine the live system design and conduct user studies to evaluate perceived latency and compatibility with users’ existing playing habits. We will also explore expressive control such as note velocity, note-off timing, ornaments, and onset asynchrony within chords.
Acknowledgments
We thank the volunteers for contributing piano and tabletop recordings, as well as those who assisted with equipment procurement. We also thank Huiran Yu for recommending relevant literature, and Jiawei Yu and Haina Zhu for their helpful suggestions on manuscript writing.
References
References
- [1]Avola, D., Cinque, L., Marini, M.R., Princic, A., Venanzi, V.: Keyrtual: A lightweight virtual musical keyboard based on rgb-d and sensors fusion. In: International Conference on Computer Analysis of Images and Patterns. pp. 182–191. Springer (2023)DOI
- [2]Bae, J., Park, D., Kwon, T., Choi, Y.S., Hur, H., Obata, S., Kai, S., Wada, Y., Takahashi, Y., Maezawa, A., et al.: Sky-piano: A multimodal piano performance dataset. arXiv preprint arXiv:2607.27296 (2026)arxiv.org/abs/2607.27296
- [3]Borchers, J., Lee, E., Samminger, W., Mühlhäuser, M.: Personal orchestra: a real-time audio/video system for interactive conducting. Multimedia Systems 9(5), 458–465 (2004)
- [4]Bük(e)y, I., Zhang, J., Tsai, T.: Flextdw: Dynamic time warping with flexible boundary conditions. In: Proceedings of the 24th International Society for Music Information Retrieval Conference. pp. 733–740. ISMIR (Nov 2023). https://doi.org/10.5281/zenodo.10265393, https://doi.org/10.5281/zenodo.10265393
- [5]Cancino-Chacon, C.E., Balke, S., Henkel, F., Stussak, C., Widmer, G.: The con espressione! exhibit: Exploring human-machine collaboration in expressive performance. In: Late-Breaking and Demo Session of the International Conference on Music Information Retrieval (ISMIR). Delft, The Netherlands (2019)
- [6]Cont, A., Schwarz, D., Schnell, N., Raphael, C.: Evaluation of real-time audio-to-score alignment. In: International Society for Music Information Retrieval Conference (2007), https://api.semanticscholar.org/CorpusID:9901746DOI
- [7]Dannenberg, R.B.: An on-line algorithm for real-time accompaniment. In: International Computer Music Conference (1984), https://api.semanticscholar.org/CorpusID:9472796
- [8]Donahue, C., Simon, I., Dieleman, S.: Piano genie. In: Proceedings of the 24th International Conference on Intelligent User Interfaces. pp. 160–164 (2019)DOI
- [9]Duan, Z., Pardo, B.: A state space model for online polyphonic audio-score alignment. In: 2011 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). pp. 197–200. IEEE (2011)DOI
- [10]Foscarin, F., Schluter, J., Widmer, G.: Beat this! accurate beat tracking without dbn postprocessing. arXiv preprint arXiv:2407.21658 (2024)arxiv.org/abs/2407.21658
- [11]Friberg, A.: Home conducting: Control the overall musical expression with gestures. In: Proceedings of the 2005 International Computer Music Conference (2005)
- [12]Gan, Q., Wang, S., Wu, S., Zhu, J.: Pianomotion 10m: Dataset and benchmark for hand motion generation in piano performance. In: International Conference on Learning Representations. vol. 2025, pp. 52082–52099 (2025)arxiv.org/abs/2406.09326
- [13]Garg, S., Peitz, S., Nallamasy, U., Paulik, M.: Jointly learning to align and translate with transformer models. In: Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP). pp. 4453–4462 (2019)arxiv.org/abs/1909.02074
- [14]Kang, S., Kim, J., Yoon, S.e.: Virtual piano using computer vision. arXiv preprint arXiv:1910.12539 (2019)arxiv.org/abs/1910.12539
- [15]Katayose, H., Okudaira, K.: Using an expressive performance template in a music conducting interface. In: Proceedings of the 2004 conference on New interfaces for musical expression. pp. 124–129 (2004)DOI
- [16]Kim, Y., Sohn, H., Nam, J., Lerch, A.: Multi-task multi-frame visual piano transcription. arXiv preprint arXiv:2608.03419 (2026)arxiv.org/abs/2608.03419
- [17]Koepke, A.S., Wiles, O., Moses, Y., Zisserman, A.: Sight to sound: An end-to-end approach for visual piano transcription. In: ICASSP 2020-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). pp. 1838–1842. IEEE (2020)DOI
- [18]Kong, Q., Li, B., Song, X., Wan, Y., Wang, Y.: High-resolution piano transcription with pedals by regressing onset and offset times. IEEE/ACM Transactions on Audio, Speech, and Language Processing 29, 3707–3717 (2021)arxiv.org/abs/2010.01815
- [19]Lee, E., Nakra, T.M., Borchers, J.: You’re the conductor: a realistic interactive conducting system for children. In: Proceedings of the International Conference on New Interfaces for Musical Expression. pp. 68–73 (2004)DOI
- [20]Liang, H., Wang, J., Sun, Q., Liu, Y.J., Yuan, J., Luo, J., He, Y.: Barehanded music: real-time hand interaction for virtual piano. In: Proceedings of the 20th ACM SIGGRAPH Symposium on Interactive 3D Graphics and Games. pp. 87–94 (2016)DOI
- [21]Loehr, J.D., Palmer, C.: Cognitive and biomechanical influences in pianists’ finger tapping. Experimental brain research 178(4), 518–528 (2007)pubmed.ncbi.nlm.nih.gov/17093990
- [22]Matsusue, C., Funahashi, K., Mizuno, S.: Touch-type vr piano that corrects positional deviation of fingering based on music theory. ACM SIGGRAPH 2017 Posters (2017), https://api.semanticscholar.org/CorpusID:1382968DOI
- [23]Mermerci, M., Pascoe, E., Edström, F., Kjellström, H.: Real-time control of a virtual orchestra by recognition of conducting gestures. arXiv preprint arXiv:2604.27957 (2026)arxiv.org/abs/2604.27957
- [24]Nishimoto, K., Oshima, C., Miyagawa, Y., Shirosaki, T.: A musical instrument for facilitating musical expressions. In: CHI’02 Extended Abstracts on Human Factors in Computing Systems. pp. 722–723 (2002)
- [25]Park, J., Cancino-Chacón, C., Chiruthapudi, S., Nam, J.: Matchmaker: An open-source library for real-time piano score following and systematic evaluation. arXiv preprint arXiv:2510.10087 (2025)arxiv.org/abs/2510.10087
- [26]Pasini, M., Nistal, J., Hayes, B., Bjare, M.R., Lattner, S., Fazekas, G.: Liveband: Live accompaniment generation in the audio domain. arXiv preprint arXiv:2606.03803 (2026)arxiv.org/abs/2606.03803
- [27]Pet, K., Maezawa, A.: Combining hand pose estimation with audio for noise-robust piano score following. In: Proceedings of the Sound and Music Computing Conference (2024), https://kaitlinpet.com/papers/Yamaha_Research.pdfDOI
- [28]Peter, S., Hu, P., Widmer, G.: Pairing real-time piano transcription with symbol-level tracking for precise and robust score following. arXiv preprint arXiv:2505.05078 (2025)arxiv.org/abs/2505.05078
- [29]Peter, S.D.: Online symbolic music alignment with offline reinforcement learning. arXiv preprint arXiv:2401.00466 (2023)DOI
- [30]Peter, S.D., Widmer, G.: Thegluenote: Learned representations for robust and flexible note alignment. arXiv preprint arXiv:2408.04309 (2024)arxiv.org/abs/2408.04309
- [31]Potamias, R.A., Zhang, J., Deng, J., Zafeiriou, S.: Wilor: End-to-end 3d hand localization and reconstruction in-the-wild. In: 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 12242–12254. IEEE (2025)arxiv.org/abs/2409.12259
- [32]Raphael, C., Gu, Y.: Orchestral accompaniment for a reproducing piano. In: ICMC (2009)
- [33]Ren, Y., Ruan, Y., Tan, X., Qin, T., Zhao, S., Zhao, Z., Liu, T.Y.: Fast, robust and controllable text to speech. Advances in neural information processing systems 32 (2019)arxiv.org/abs/1905.09263
- [34]Ritter, M., Hamel, K., Pritchard, B.: Integrated multimodal score-following environment. In: ICMC (2013)
- [35]Su, K., Liu, X., Shlizerman, E.: Audeo: Audio generation for a silent performance video. Advances in Neural Information Processing Systems 33, 3325–3337 (2020)arxiv.org/abs/2006.14348
- [36]Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, Ł., Polosukhin, I.: Attention is all you need. In: Guyon, I., Luxburg, U.V., Bengio, S., Wallach, H., Fergus, R., Vishwanathan, S., Garnett, R. (eds.) Advances in Neural Information Processing Systems. vol. 30. Curran Associates, Inc. (2017), https://proceedings.neurips.cc/paper_files/paper/2017/file/3f5ee243547dee91bfd053c1c4845aa-Paper.pdfarxiv.org/abs/1706.03762
- [37]Venanzi, V., Princic, A., Marini, M.R., Foresti, G.L., Cinque, L.: Musikeyrtual: A framework to play a musical keyboard in augmented reality. International Journal of Human–Computer Interaction 42(11), 7893–7905 (2026)DOI
- [38]Vishal, B., Lawrence, K.D.: Paper piano—shadow analysis based touch interaction. In: 2017 2nd International Conference on Man and Machine Interfacing (MAMI). pp. 1–6. IEEE (2017)DOI
- [39]Yan, Y., Duan, Z.: Scoring time intervals using non-hierarchical transformer for automatic piano transcription. arXiv preprint arXiv:2404.09466 (2024)arxiv.org/abs/2404.09466
- [40]Yeh, C.H., Tseng, W.Y., Bai, J.C., Yeh, R.N., Wang, S.C., Sung, P.Y.: Virtual piano design via single-view video based on multifinger actions recognition. In: 2010 3rd International Conference on Human-Centric Computing. pp. 1–5. IEEE (2010)DOI
- [41]Zhang, F., Bazarevsky, V., Vakunov, A., Tkachenka, A., Sung, G., Chang, C.L., Grundmann, M.: Mediapipe hands: On-device real-time hand tracking. arXiv preprint arXiv:2006.10214 (2020)arxiv.org/abs/2006.10214



