PawCT and PagCT
choral singing to MIDI transcription
2 min readupdated
A pair of PyTorch checkpoints by Hanyu Meng for transcribing mixed-choir recordings into MIDI sheet music. PagCT merges all voices into a single combined track, while PawCT base splits the score into four separate parts: soprano, alto, tenor, and bass (SATB). The models tackle AMT (Automatic Music Transcription) with singing voice assignment. This tool is built for musicians, arrangers, choir directors, and MIR (Music Information Retrieval) researchers.
Key features
- Two output modes: a combined track in
pagct.pthor separate SATB tracks inpawct-base.pth. - Ready-to-use JSON configs (
pagct.jsonandpawct-base.json) with tuned thresholds for frame, onset, and offset detection. - End-to-end training with union supervision and a learned presence gate for PawCT.
- Verified reproducibility on the official YouChorale test split (30 recordings).
What you can do
- Digitize an archival or rehearsal recording of a mixed choir into an editable MIDI file for further work in a notation editor or DAW.
- Extract individual soprano, alto, tenor, and bass parts using PawCT base to quickly prepare rehearsal backing tracks or sheet music for choir singers.
Example
settings = json.loads(Path(f"{model_id}.json").read_text(encoding="utf-8"))
cfg = OmegaConf.merge(OmegaConf.load(checkout / "src" / "config.yaml"), settings["public_code_overrides"])
audio, _ = librosa.load(audio_path, sr=cfg.feature.sample_rate, mono=True)
transcriber = ChoralAMTTranscriber(cfg, settings["checkpoint_file"])
probabilities = transcriber.transcribe(audio)["output_dict"]
write_satb_midi(tracks, Path(f"{model_id}.mid"))Read more
DetailsYouChorale note F1 @ 50 ms metric (accounting for pitch and onset within 50 ms): 0.3790 for PagCT and 0.2248 for PawCT base.
Running the models requires the Paw Choral AMT repository (revision
b0718f8), librosa, and omegaconf.Based on the paper "Toward Part-Aware Choral Transcription with Singing Voice Assignment" (arXiv:2610.09861).










Comments