SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2407.16564 · 2024

Audio Prompt Adapter: Unleashing Music Editing Abilities for Text-to-Music with Lightweight Finetuning

arXiv · PDF · Open in the Atlas

Code that ran

5 of 7 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 2 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2407.16564.json · badge: /api/ran/2407.16564.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
fundwotsai2001/ap-adapter canonical (classifier label)
classifier basis: census
5 ran · 2 no recorded run
FunctionStatusWhere it lives
add_special_tokens Ran
ran; our contract draft was wrong, not the code
fundwotsai2001/ap-adapter/pipeline/modeling_audioldm2.py
pointer only (licence: NONE) · get_code("cec37d613e438bcc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fundwotsai2001/ap-adapter when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_1d_sincos_pos_embed_from_grid Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
fundwotsai2001/ap-adapter/audio_encoder/models_mae.py
pointer only (licence: NONE); the stored copy get_code serves, from naver/croco, is pointer only (licence: NOASSERTION) · get_code("4bdd36eab04c3f62")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fundwotsai2001/ap-adapter when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_2d_sincos_pos_embed Ran
ran, honoured the contract we drafted
fundwotsai2001/ap-adapter/audio_encoder/models_mae.py
pointer only (licence: NONE) · get_code("caca77a0bdc72e75")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fundwotsai2001/ap-adapter when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_config Ran
ran; our contract draft was wrong, not the code
fundwotsai2001/ap-adapter/config.py
pointer only (licence: NOASSERTION) · get_code("bb120b552e83b8bb")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, fundwotsai2001/ap-adapter (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

prepare_inputs_for_generation Ran
ran; our contract draft was wrong, not the code
fundwotsai2001/ap-adapter/pipeline/pipeline_audioldm2.py
pointer only (licence: NOASSERTION) · get_code("d5a09007aef6b7ff")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, fundwotsai2001/ap-adapter (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

apply_time_mask Not yet run
unverified (harvested, no recorded run)
fundwotsai2001/ap-adapter/audio_encoder/AudioMAE.py
pointer only (licence: NOASSERTION) · get_code("8e54fedfb350285c")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, fundwotsai2001/ap-adapter (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_2d_sincos_pos_embed_from_grid Not yet run
unverified (harvested, no recorded run)
fundwotsai2001/ap-adapter/audio_encoder/models_mae.py
pointer only (licence: NONE); the stored copy get_code serves, from naver/croco, is pointer only (licence: NOASSERTION) · get_code("4fd80de79832745d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fundwotsai2001/ap-adapter when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 2 the same month, 4 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
get_2d_sincos_pos_embed_from_grid 190 other papers
96 dated earlier, 7 the same month, 86 later, 1 same year, order not determinable · 65 only as an assembly brick
1807.10221 (2018-07)
Unified Perceptual Parsing for Scene Understanding
2105.12723 (2021-05)
Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding
2111.06377 (2021-11)
Masked Autoencoders Are Scalable Vision Learners
and 187 more not named here
get_2d_sincos_pos_embed 95 other papers
58 dated earlier, 3 the same month, 33 later, 1 same year, order not determinable · 33 only as an assembly brick
1807.10221 (2018-07)
Unified Perceptual Parsing for Scene Understanding
2105.12723 (2021-05)
Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding
2111.06377 (2021-11)
Masked Autoencoders Are Scalable Vision Learners
and 92 more not named here
get_1d_sincos_pos_embed_from_grid 26 other papers
12 dated earlier, 14 later · 11 only as an assembly brick
1807.10221 (2018-07)
Unified Perceptual Parsing for Scene Understanding
2207.06405 (2022-07)
Masked Autoencoders that Listen
2210.10716 (2022-10)
CroCo: Self-Supervised Pre-training for 3D Vision Tasks by Cross-View Completion
and 23 more not named here
add_special_tokens 2 other papers
1 dated earlier, 1 later
2309.11140 (2023-09)
Investigating Personalization Methods in Text to Music Generation
2412.06660 (2024-12)
MuMu-LLaMA: Multi-modal Music Understanding and Generation via Large Language Models
prepare_inputs_for_generation 1 other paper
1 dated earlier
2309.11140 (2023-09)
Investigating Personalization Methods in Text to Music Generation

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Text-to-music models allow users to generate nearly realistic musical audio with textual commands. However, editing music audios remains challenging due to the conflicting desiderata of performing fine-grained alterations on the audio while maintaining a simple user interface. To address this challenge, we propose Audio Prompt Adapter (or AP-Adapter), a lightweight addition to pretrained text-to-music models. We utilize AudioMAE to extract features from the input audio, and construct attention-based adapters to feedthese features into the internal layers of AudioLDM2, a diffusion-based text-to-music model. With 22M trainable parameters, AP-Adapter empowers users to harness both global (e.g., genre and timbre) and local (e.g., melody) aspects of music, using the original audio and a short text as inputs. Through objective and subjective studies, we evaluate AP-Adapter on three tasks: timbre transfer, genre transfer, and accompaniment generation. Additionally, we demonstrate its effectiveness on out-of-domain audios containing unseen instruments during training.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2407.16564")
get_code_for_paper("2407.16564")
have("2407.16564")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2407.16564.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2407.16564.svg)](https://syntology.ai/paper/2407.16564)

Connect an agent — have() is free.