DuET:用于钢琴演奏到乐谱转录的音符-帧双重编码
研究论文 · 2026/10/19
DuET 是一种双编码器 Transformer,联合学习音符级演奏 MIDI 到乐谱的转录(PM2S)和帧级节拍与强拍跟踪。通过双向交叉注意力连接音符编码器和帧编码器,自回归解码器交替使用两者的表示来预测结构化乐谱属性。引入 TimeRoPE 和 Time-Pitch 旋转位置编码(TPRoPE)以建立共享的演奏时间参考并显式编码相对时间和音高关系。在 ASAP 古典钢琴数据集和自建的 Gangqinpu 数据集(涵盖多种风格,侧重流行钢琴音乐)上评估,乐谱时序和记谱时值均有改进。与各数据集上最强基线相比,DuET 将 MUSTER 平均误差从 Gangqinpu 的 6.56% 降至 3.64%,从 ASAP 的 11.30% 降至 11.22%。消融实验支持帧级上下文、基于时间的位置编码和解码器历史掩码的优势。
该工作通过联合建模音符级转录与帧级节拍跟踪,显著降低了乐谱转录误差,并提出了有效的位置编码方法,对音乐信息检索领域具有参考价值。
Transcribing expressive piano performances into scores requires interpreting individual note timings within an underlying metrical structure. However, score attributes are associated with notes, whereas beats may occur without coincident note onsets. We introduce DuET, a Dual-Encoder Transformer that jointly learns note-level performance MIDI-to-score (PM2S) transcription and frame-level beat and downbeat tracking. Bidirectional cross-attention connects note and frame encoders, while an autoregressive decoder alternates between their representations to predict structured score attributes. We further introduce TimeRoPE and Time-Pitch Rotary Positional Encoding (TPRoPE) to establish a shared performance-time reference and explicitly encode relative temporal and pitch relationships. Evaluations on ASAP, a classical piano dataset, and our curated Gangqinpu dataset, which spans multiple genres with a focus on popular piano music, demonstrate improvements in score timing and notated duration. Compared with the strongest baseline on each dataset, DuET reduces MUSTER mean error from 6.56% to 3.64% on Gangqinpu and from 11.30% to 11.22% on ASAP. Ablations support the benefits of frame-level context, time-based positional encoding, and decoder-history masking. Code, weights, and demos are available at https://github.com/wei-zeng98/DuET.