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.
Figures & tables
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.
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.
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 At+δ from the observed motion history m≤t .
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.)
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
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.
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.
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.
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
Table 2: C-AR@8 (%) for ablation variants on the in-domain evaluation set PM60, and test sets VSF-Piano and VSF-Tabletop.
Synthesizing realistic piano hand motions requires both precision and naturalness. Physics-based methods achieve precision but produce stiff motions; data-driven models learn natural dynamics but struggle with positional accuracy. Piano motion exhibits a natural hierarchy: fingertip positions are nearly deterministic given piano geometry and fingering, while wrist and intermediate joints offer stylistic freedom. We present [OURS], a four-stage framework exploiting this hierarchy: (1) statistics-based fingertip positioning, (2) FiLM-conditioned trajectory refinement, (3) wrist estimation, and (4) STGCN-based pose synthesis. We contribute expert-annotated fingerings for the FürElise dataset (153 pieces, ~10 hours). Experiments demonstrate F1 = 0.910, substantially outperforming diffusion baselines (F1 = 0.121), with user study (N=41) confirming quality approaching motion capture. Expert evaluation by professional pianists (N=5) identified anticipatory motion as the key remaining gap, providing concrete directions for future improvement.
Joonhyung Bae, Kirak Kim, Hyeyoon Cho +9
Korea Advanced Institute of Science and Technology (KAIST), South Korea · Seoul National University, South Korea · YAMAHA, Japan
Expressive performance rendering (EPR) aims to generate realistic performances constrained on sequences of notes. However, flow matching audio editing models manipulate only synchronized music samples of the same duration, limiting their understanding of expressive timing. We introduce PianoKontext, a flow matching rendering model for classical piano music that generates variable-length performances in the latent space of a pretrained Music2Latent model. We synthesize MIDI scores into deadpan audio and employ Dynamic Time Warping (DTW) in the latent space to construct paired data for training. The aligned embeddings are concatenated in DiT blocks, allowing for a simple and effective learning of the dependencies between the score and performances. Audio samples are available at our demo page: https://realfolkcode.github.io/pianokontext_demo/.
Audio-driven bimanual piano motion generation requires precise modeling of complex musical structures and dynamic cross-hand coordination. However, existing methods often rely on acoustic-only representations lacking symbolic priors, employ inflexible interaction mechanisms, and are limited to computationally expensive short-sequence generation. To address these limitations, we propose PianoFlow, a flow-matching framework for precise and coordinated bimanual piano motion synthesis. Our approach strategically leverages MIDI as a privileged modality during training, distilling these structured musical priors to achieve deep semantic understanding while maintaining audio-only inference. Furthermore, we introduce an asymmetric role-gated interaction module to explicitly capture dynamic cross-hand coordination through role-aware attention and temporal gating. To enable real-time streaming generation for arbitrarily long sequences, we design an autoregressive flow continuation scheme that ensures seamless cross-chunk temporal coherence. Extensive experiments on the PianoMotion10M dataset demonstrate that PianoFlow achieves superior quantitative and qualitative performance, while accelerating inference by over 9\times compared to previous methods.
Xuan Wang, Kai Ruan, Jiayi Han +2
Zhejiang University Hangzhou, Zhejiang, China · Renmin University of China Beijing, China · Beijing Forestry University Beijing, China +1