SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.12404 · 2023

Loop Copilot: Conducting AI Ensembles for Music Generation and Iterative Editing

arXiv · PDF · Open in the Atlas

Code that ran

10 of 13 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 8 failures of our instrument; 3 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/2310.12404.json · badge: /api/ran/2310.12404.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
ldzhangyx/loop-copilot canonical (classifier label)
classifier basis: census
10 ran · 3 no recorded run
FunctionStatusWhere it lives
apply_mask Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ldzhangyx/loop-copilot/melodytalk/dependencies/vampnet/mask.py
code served (permissive licence) · get_code("7c70f983bb9174e5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 4, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create tensors with distinct dimensions for clarity
batch_size = 2
n_codebooks = 3
seq_length = 4

# x: shape (batch, n_codebooks, seq) with integer values
x = torch.randint(0, 100, (batch_size, n_codebooks, seq_length), dtype=torch.long)

# mask: shape (batch, n_codebooks, seq) with binary values (0 or 1)
mask = torch.randint(0, 2, (batch_size, n_codebooks, seq_length), dtype=torch.long)

# mask_token: an integer to fill in masked positions
mask_token = 42

ARGS = {
    'x': x,
    'mask': mask,
    'mask_token': mask_token
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 4, dtype family int — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
codebook_flatten Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ldzhangyx/loop-copilot/melodytalk/dependencies/vampnet/util.py
code served (permissive licence) · get_code("6e733e2a7236425e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 12) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from einops import rearrange

torch.manual_seed(0)

# Create a small tensor with shape (batch=2, codebook=4, time=3)
# batch=2, codebook=4, time=3 are distinct sizes for clarity
tokens = torch.randn(2, 4, 3)

ARGS = {
    "tokens": tokens
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 12) — shape (2, 12) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
cut_dialogue_history Ran
ran; our contract draft was wrong, not the code
ldzhangyx/loop-copilot/melodytalk/utils.py
code served (permissive licence) · get_code("0f0179451c7c8909")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# The function uses:
# - history_memory: a string (or None)
# - keep_last_n_words: an integer (default 500)
#
# The function:
# - Checks if history_memory is None or empty
# - Splits by whitespace to count tokens
# - Splits by newlines to get paragraphs
# - Returns a string
#
# We need to construct test cases for the parameters

# Test case 1: A non-trivial dialogue history with multiple paragraphs
history_memory = """Hello, how are you today?
I am doing well, thank you for asking.
The weather is nice outside.
Let's go for a walk in the park.
We can see the trees and flowers.
The birds are singing beautifully.
It's a perfect day for outdoor activities.
We should bring some snacks and water.
The trail near the park is very scenic.
I love spending time in nature with friends."""

keep_last_n_words = 500

ARGS = {
    "history_memory": history_memory,
    "keep_last_n_words": keep_last_n_words,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
empty_mask Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ldzhangyx/loop-copilot/melodytalk/dependencies/vampnet/mask.py
code served (permissive licence) · get_code("68f9cadae338bfc7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 3, dtype family int, shape (2, 4, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# x must be a 3D tensor with shape (batch, n_codebooks, seq)
x = torch.randn(2, 4, 3)  # batch=2, n_codebooks=4, seq=3

ARGS = {
    'x': x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family int, shape (2, 4, 3) — shape (2, 4, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
full_mask Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ldzhangyx/loop-copilot/melodytalk/dependencies/vampnet/mask.py
code served (permissive licence) · get_code("46c5a316df2a5de0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 3, dtype family int, shape (2, 4, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a 3D tensor with shape (batch, n_codebooks, seq)
# Using distinct sizes: batch=2, n_codebooks=4, seq=3
x = torch.randn(2, 4, 3)

ARGS = {
    'x': x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family int, shape (2, 4, 3) — shape (2, 4, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_init_fn Ran
ran; our contract draft was wrong, not the code
ldzhangyx/loop-copilot/melodytalk/dependencies/audiocraft/models/lm.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from kikyo-16/coco-mulla-repo, is pointer only (licence: NONE) · get_code("f09362f0b657d8b6")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from kikyo-16/coco-mulla-repo, and GitHub detected no licence in that repository 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.

mkdir Ran
ran; our contract draft was wrong, not the code
ldzhangyx/loop-copilot/melodytalk/dependencies/vampnet/beats.py
code served (permissive licence) · get_code("843cfb3ab9041539")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned PosixPath. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
from pathlib import Path

# The function takes a single parameter 'path' which should be a Union[Path, str]
# The function creates a directory at that path using Path.mkdir()
# We'll provide a temporary directory path as a string

temp_dir = tempfile.gettempdir()
test_path = str(Path(temp_dir) / "test_mkdir_dir" / "nested" / "path")

ARGS = {
    "path": test_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
prompts Ran
ran; our contract draft was wrong, not the code
ldzhangyx/loop-copilot/melodytalk/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from zhongyy/viotgpt, is pointer only (licence: NONE) · get_code("e8bafcb096991087")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from zhongyy/viotgpt, and GitHub detected no licence in that repository 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.

scalar_to_batch_tensor Ran
ran, honoured the contract we drafted
ldzhangyx/loop-copilot/melodytalk/dependencies/vampnet/util.py
code served (permissive licence) · get_code("590bc0634533f773")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family int, shape (3,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    "x": 42,
    "batch_size": 3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family int, shape (3,) — shape (3,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
seed_everything Ran
ran, honoured the contract we drafted
ldzhangyx/loop-copilot/melodytalk/utils.py
code served (permissive licence) · get_code("94ef2ffb5a8aef73")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import random
import torch
import numpy as np

# The function seed_everything takes a single parameter: seed (an integer)
# It uses this seed to initialize random number generators in:
# - random module
# - numpy
# - torch
# - torch.cuda (which will fail gracefully on CPU-only systems)

ARGS = {
    "seed": 42
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_compression_model Not yet run
unverified (harvested, no recorded run)
ldzhangyx/loop-copilot/melodytalk/dependencies/audiocraft/models/loaders.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from kikyo-16/coco-mulla-repo, is pointer only (licence: NONE) · get_code("4deb496341887485")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from kikyo-16/coco-mulla-repo, and GitHub detected no licence in that repository 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.

load_lm_model Not yet run
unverified (harvested, no recorded run)
ldzhangyx/loop-copilot/melodytalk/dependencies/audiocraft/models/loaders.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from kikyo-16/coco-mulla-repo, is pointer only (licence: NONE) · get_code("8b569f0c75f3f66d")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from kikyo-16/coco-mulla-repo, and GitHub detected no licence in that repository 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.

parallelize Not yet run
unverified (harvested, no recorded run)
ldzhangyx/loop-copilot/melodytalk/dependencies/vampnet/util.py
code served (permissive licence) · get_code("e1ca978c93c552a0")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 12 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 3 the same month, 3 later) and 1 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
prompts 4 other papers
3 dated earlier, 1 later
2305.02677 (2023-05)
Caption Anything: Interactive Image Description with Diverse Multimodal Controls
2309.06719 (2023-09)
TrafficGPT: Viewing, Processing and Interacting with Traffic Foundation Models
2309.16292 (2023-09)
DiLu: A Knowledge-Driven Approach to Autonomous Driving with Large Language Models
and 1 more not named here
cut_dialogue_history 2 other papers
2 dated earlier
2305.02677 (2023-05)
Caption Anything: Interactive Image Description with Diverse Multimodal Controls
2305.05662 (2023-05)
InternGPT: Solving Vision-Centric Tasks by Interacting with ChatGPT Beyond Language
get_init_fn 2 other papers
1 the same month, 1 later
2310.17162 (2023-10)
Content-based Controls For Music Large Language Modeling
2401.17800 (2024-01)
Dance-to-Music Generation with Encoder-based Textual Inversion
mkdir 2 other papers
1 dated earlier, 1 later
2307.04686 (2023-07)
VampNet: Music Generation via Masked Acoustic Token Modeling
2512.02206 (2025-12)
WhAM: Towards A Translative Model of Sperm Whale Vocalization
apply_mask 1 other paper
1 dated earlier
2307.04686 (2023-07)
VampNet: Music Generation via Masked Acoustic Token Modeling
codebook_flatten 1 other paper
1 dated earlier
2307.04686 (2023-07)
VampNet: Music Generation via Masked Acoustic Token Modeling
empty_mask 1 other paper
1 dated earlier
2307.04686 (2023-07)
VampNet: Music Generation via Masked Acoustic Token Modeling
full_mask 1 other paper
1 dated earlier
2307.04686 (2023-07)
VampNet: Music Generation via Masked Acoustic Token Modeling
load_compression_model 1 other paper
1 the same month
2310.17162 (2023-10)
Content-based Controls For Music Large Language Modeling
load_lm_model 1 other paper
1 the same month
2310.17162 (2023-10)
Content-based Controls For Music Large Language Modeling
parallelize 1 other paper
1 dated earlier
2307.04686 (2023-07)
VampNet: Music Generation via Masked Acoustic Token Modeling
scalar_to_batch_tensor 1 other paper
1 dated earlier
2307.04686 (2023-07)
VampNet: Music Generation via Masked Acoustic Token Modeling

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

Creating music is iterative, requiring varied methods at each stage. However, existing AI music systems fall short in orchestrating multiple subsystems for diverse needs. To address this gap, we introduce Loop Copilot, a novel system that enables users to generate and iteratively refine music through an interactive, multi-round dialogue interface. The system uses a large language model to interpret user intentions and select appropriate AI models for task execution. Each backend model is specialized for a specific task, and their outputs are aggregated to meet the user's requirements. To ensure musical coherence, essential attributes are maintained in a centralized table. We evaluate the effectiveness of the proposed system through semi-structured interviews and questionnaires, highlighting its utility not only in facilitating music creation but also its potential for broader applications.

For agents

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

get_harvested_code_for_paper("2310.12404")
get_code_for_paper("2310.12404")
have("2310.12404")

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

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

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

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

Connect an agent — have() is free.